mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
test-network: compare LLDP sender and receiver information
This commit is contained in:
@@ -6660,6 +6660,13 @@ class NetworkdLLDPTests(unittest.TestCase, Utilities):
|
||||
print(output)
|
||||
self.assertRegex(output, r'Connected To: .* on port veth-peer')
|
||||
|
||||
# Compare the json output from sender and receiver
|
||||
sender_json = get_link_description('veth-peer')['LLDP']
|
||||
receiver_json = json.loads(networkctl('--json=short', 'lldp', 'veth99'))['Neighbors'][0]['Neighbors'][0]
|
||||
print(sender_json)
|
||||
print(receiver_json)
|
||||
self.assertEqual(sender_json, receiver_json)
|
||||
|
||||
class NetworkdRATests(unittest.TestCase, Utilities):
|
||||
|
||||
def setUp(self):
|
||||
|
||||
Reference in New Issue
Block a user