mirror of
https://github.com/systemd/systemd.git
synced 2025-02-24 17:57:34 +03:00
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>
This commit is contained in:
parent
5a3e759bd0
commit
1aa74ad048
@ -17,3 +17,4 @@ VLANFiltering=yes
|
||||
VLANProtocol=802.1ad
|
||||
STP=true
|
||||
MulticastIGMPVersion=3
|
||||
FDBMaxLearned=4
|
||||
|
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user