]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-network: add test for teql 14784/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 6 Feb 2020 08:53:04 +0000 (17:53 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 7 Feb 2020 08:41:49 +0000 (17:41 +0900)
test/test-network/conf/25-qdisc-teql.network [new file with mode: 0644]
test/test-network/systemd-networkd-tests.py

diff --git a/test/test-network/conf/25-qdisc-teql.network b/test/test-network/conf/25-qdisc-teql.network
new file mode 100644 (file)
index 0000000..e506bb1
--- /dev/null
@@ -0,0 +1,10 @@
+[Match]
+Name=dummy98
+
+[Network]
+IPv6AcceptRA=no
+Address=10.1.2.3/16
+
+[TrivialLinkEqualizer]
+Parent=root
+Id=1
index 423815c73aaa1f71009e3d6d05595da811dc6e16..b62160bf59ba6671031a28d7be8b4164c90b785f 100755 (executable)
@@ -1622,6 +1622,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         '25-qdisc-ingress-root.network',
         '25-qdisc-netem-and-fqcodel.network',
         '25-qdisc-tbf-and-sfq.network',
+        '25-qdisc-teql.network',
         '25-route-ipv6-src.network',
         '25-route-static.network',
         '25-gateway-static.network',
@@ -2286,6 +2287,17 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities):
         self.assertRegex(output, 'limit 100 delay 50.0ms  10.0ms loss 20%')
         self.assertRegex(output, 'qdisc ingress')
 
+    def test_qdisc4(self):
+        copy_unit_to_networkd_unit_path('25-qdisc-teql.network', '12-dummy.netdev')
+        check_output('modprobe sch_teql max_equalizers=2')
+        start_networkd()
+
+        self.wait_online(['dummy98:routable'])
+
+        output = check_output('tc qdisc show dev dummy98')
+        print(output)
+        self.assertRegex(output, 'qdisc teql1')
+
 class NetworkdStateFileTests(unittest.TestCase, Utilities):
     links = [
         'dummy98',