1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

test-network: add missing tests for bridge properties

This commit is contained in:
Yu Watanabe 2022-02-10 18:04:34 +09:00
parent 6eb35be8e0
commit b6d5dab7bb
2 changed files with 13 additions and 3 deletions

View File

@ -6,10 +6,14 @@ Kind=bridge
[Bridge]
HelloTimeSec=9
MaxAgeSec=9
ForwardDelaySec=9
AgeingTimeSec=9
ForwardDelaySec=9
Priority=9
MulticastQuerier= true
MulticastSnooping=true
#GroupForwardMask=9 # This interferes other other settings
DefaultPVID=9
MulticastQuerier=yes
MulticastSnooping=yes
VLANFiltering=yes
VLANProtocol=802.1ad
STP=true
MulticastIGMPVersion=3

View File

@ -1185,6 +1185,12 @@ class NetworkdNetDevTests(unittest.TestCase, Utilities):
self.assertRegex(output, 'STP: yes')
self.assertRegex(output, 'Multicast IGMP Version: 3')
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)
def test_bond(self):
copy_unit_to_networkd_unit_path('25-bond.netdev', '25-bond-balanced-tlb.netdev')
start_networkd()