summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_interfaces_geneve.py
diff options
context:
space:
mode:
authorfett0 <50275740+fett0@users.noreply.github.com>2023-07-05 12:03:20 -0300
committerGitHub <noreply@github.com>2023-07-05 17:03:20 +0200
commite47668d88a21f4077bfb88c1123de0c86679d868 (patch)
treedc7fdd14c3df3c16bee309ee1e75cbd3c7323b9a /smoketest/scripts/cli/test_interfaces_geneve.py
parent8afdb5ad5515a0a1ae716204f397f3d974cec714 (diff)
downloadvyos-1x-e47668d88a21f4077bfb88c1123de0c86679d868.tar.gz
vyos-1x-e47668d88a21f4077bfb88c1123de0c86679d868.zip
geneve: T5339: add option to use ipv4 instead of ethernet
Diffstat (limited to 'smoketest/scripts/cli/test_interfaces_geneve.py')
-rwxr-xr-xsmoketest/scripts/cli/test_interfaces_geneve.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/smoketest/scripts/cli/test_interfaces_geneve.py b/smoketest/scripts/cli/test_interfaces_geneve.py
index 24d350aeb..b2efb0349 100755
--- a/smoketest/scripts/cli/test_interfaces_geneve.py
+++ b/smoketest/scripts/cli/test_interfaces_geneve.py
@@ -43,6 +43,7 @@ class GeneveInterfaceTest(BasicInterfaceTest.TestCase):
self.cli_set(self._base_path + [intf, 'parameters', 'ip', 'df', 'set'])
self.cli_set(self._base_path + [intf, 'parameters', 'ip', 'tos', tos])
+ self.cli_set(self._base_path + [intf, 'parameters', 'ip', 'innerproto'])
self.cli_set(self._base_path + [intf, 'parameters', 'ip', 'ttl', str(ttl)])
ttl += 10
@@ -67,6 +68,11 @@ class GeneveInterfaceTest(BasicInterfaceTest.TestCase):
label = options['linkinfo']['info_data']['label']
self.assertIn(f'parameters ipv6 flowlabel {label}', self._options[interface])
+ if any('innerproto' in s for s in self._options[interface]):
+ inner = options['linkinfo']['info_data']['innerproto']
+ self.assertIn(f'parameters ip {inner}', self._options[interface])
+
+
self.assertEqual('geneve', options['linkinfo']['info_kind'])
self.assertEqual('set', options['linkinfo']['info_data']['df'])
self.assertEqual(f'0x{tos}', options['linkinfo']['info_data']['tos'])