diff options
author | Gregor Herburger <gregor.herburger@ew.tq-group.com> | 2024-06-20 16:22:56 +0200 |
---|---|---|
committer | Gregor Herburger <gregor.herburger@ew.tq-group.com> | 2024-07-22 10:27:56 +0200 |
commit | 1aa74ad0487ff86fc197854aeb141261fce36c7e (patch) | |
tree | 321e51799131f8a4aa85c12166c8c5a4985c7aac /test/test-network | |
parent | networkctl: add support to display learned fdb entries (diff) | |
download | systemd-1aa74ad0487ff86fc197854aeb141261fce36c7e.tar.xz systemd-1aa74ad0487ff86fc197854aeb141261fce36c7e.zip |
test: systemd-networkd-tests: add fdb learned tests
Add a test for the new bridge netlink attributes IFLA_BR_FDB_N_LEARNED and
IFLA_BR_FDB_MAX_LEARNED.
Signed-off-by: Gregor Herburger <gregor.herburger@ew.tq-group.com>
Diffstat (limited to 'test/test-network')
-rw-r--r-- | test/test-network/conf/25-bridge.netdev | 1 | ||||
-rwxr-xr-x | test/test-network/systemd-networkd-tests.py | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/test-network/conf/25-bridge.netdev b/test/test-network/conf/25-bridge.netdev index 46a0f78299..9e7fa545b2 100644 --- a/test/test-network/conf/25-bridge.netdev +++ b/test/test-network/conf/25-bridge.netdev @@ -17,3 +17,4 @@ VLANFiltering=yes VLANProtocol=802.1ad STP=true MulticastIGMPVersion=3 +FDBMaxLearned=4 diff --git a/test/test-network/systemd-networkd-tests.py b/test/test-network/systemd-networkd-tests.py index ba8e65ee90..1b521d73ce 100755 --- a/test/test-network/systemd-networkd-tests.py +++ b/test/test-network/systemd-networkd-tests.py @@ -1590,12 +1590,16 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities): self.assertRegex(output, 'Priority: 9') self.assertRegex(output, 'STP: yes') self.assertRegex(output, 'Multicast IGMP Version: 3') + if 'FDB Max Learned' in output: + self.assertRegex(output, 'FDB Max Learned: 4') output = check_output('ip -d link show bridge99') print(output) self.assertIn('vlan_filtering 1 ', output) self.assertIn('vlan_protocol 802.1ad ', output) self.assertIn('vlan_default_pvid 9 ', output) + if 'fdb_max_learned' in output: + self.assertIn('fdb_max_learned 4 ', output) def test_bond(self): copy_network_unit('25-bond.netdev', '25-bond-balanced-tlb.netdev', '25-bond-property.netdev') |