Skip to content

Commit

Permalink
tests:tunnels: make use of iface_json()
Browse files Browse the repository at this point in the history
iproute2 v6.4 changed its CLI output, the JSON output is expected to
stay stable, so we should migrate to using iface_json() over time.

https://bugs.debian.org/1040004
  • Loading branch information
slyon committed Jul 11, 2023
1 parent 19bb7fa commit 6af204a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/integration/tunnels.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,13 @@ def test_tunnel_vxlan(self):
' l3miss ', ' ttl 64 ', ' ageing 100 '])
if self.backend == 'networkd':
# checksums are not supported on the NetworkManager backend
self.assert_iface('vx0', [' udpcsum ', ' udp6zerocsumtx ',
' udp6zerocsumrx ', ' remcsumtx ',
' remcsumrx '])
json = self.iface_json('vx0')
data = json.get('linkinfo', {}).get('info_data', {})
self.assertTrue(data.get('udp_csum'))
self.assertTrue(data.get('udp_zero_csum6_tx'))
self.assertTrue(data.get('udp_zero_csum6_rx'))
self.assertTrue(data.get('remcsum_tx'))
self.assertTrue(data.get('remcsum_rx'))


@unittest.skipIf("networkd" not in test_backends,
Expand Down

0 comments on commit 6af204a

Please sign in to comment.