From: Yu Watanabe Date: Thu, 12 Dec 2019 07:29:23 +0000 (+0900) Subject: test-network: add a test case for FQ X-Git-Tag: v245-rc1~275^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0baddbd5eef0bee7a290e294d7b7d25c1838d307;p=thirdparty%2Fsystemd.git test-network: add a test case for FQ --- diff --git a/test/test-network/conf/25-qdisc-fq.network b/test/test-network/conf/25-qdisc-fq.network new file mode 100644 index 00000000000..10e0e5b8591 --- /dev/null +++ b/test/test-network/conf/25-qdisc-fq.network @@ -0,0 +1,10 @@ +[Match] +Name=dummy98 + +[Network] +IPv6AcceptRA=no +Address=10.1.2.3/16 + +[TrafficControlQueueingDiscipline] +Parent=root +FairQueueTrafficPolicingPacketLimit=1000 diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index a72b9abf768..31ffba9ddaf 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -1509,6 +1509,7 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): '25-neighbor-ip-dummy.network', '25-neighbor-ip.network', '25-nexthop.network', + '25-qdisc-fq.network', '25-qdisc-netem-and-fqcodel.network', '25-qdisc-tbf-and-sfq.network', '25-route-ipv6-src.network', @@ -2102,6 +2103,17 @@ class NetworkdNetworkTests(unittest.TestCase, Utilities): self.assertRegex(output, 'qdisc sfq') self.assertRegex(output, 'perturb 5sec') + def test_qdisc2(self): + copy_unit_to_networkd_unit_path('25-qdisc-fq.network', '12-dummy.netdev') + start_networkd() + + self.wait_online(['dummy98:routable']) + + output = check_output('tc qdisc show dev dummy98') + print(output) + self.assertRegex(output, 'qdisc fq') + self.assertRegex(output, 'limit 1000p') + class NetworkdStateFileTests(unittest.TestCase, Utilities): links = [ 'dummy98',