summaryrefslogtreecommitdiff
path: root/smoketest/scripts/cli/test_vpp.py
diff options
context:
space:
mode:
authorNataliia Solomko <natalirs1985@gmail.com>2026-02-03 11:57:29 +0200
committerNataliia Solomko <natalirs1985@gmail.com>2026-02-03 11:57:29 +0200
commit5299c50f2e85c9e4c3cbf28ac9cf31cd7d10a896 (patch)
tree591bf531e42520490457af7c00db81e243214478 /smoketest/scripts/cli/test_vpp.py
parente31c302a024720da060889ea98eaf8d4069613fd (diff)
downloadvyos-1x-5299c50f2e85c9e4c3cbf28ac9cf31cd7d10a896.tar.gz
vyos-1x-5299c50f2e85c9e4c3cbf28ac9cf31cd7d10a896.zip
vpp: T8207: Enable ip6-icmp-ra-punt feature on interfaces with DHCPv6 address configured
Diffstat (limited to 'smoketest/scripts/cli/test_vpp.py')
-rwxr-xr-xsmoketest/scripts/cli/test_vpp.py24
1 files changed, 22 insertions, 2 deletions
diff --git a/smoketest/scripts/cli/test_vpp.py b/smoketest/scripts/cli/test_vpp.py
index 8923b8f2c..6166b427a 100755
--- a/smoketest/scripts/cli/test_vpp.py
+++ b/smoketest/scripts/cli/test_vpp.py
@@ -180,9 +180,29 @@ class TestVPP(VyOSUnitTestSHIM.TestCase):
self.cli_set(['interfaces', 'ethernet', interface, 'address', 'dhcp'])
self.cli_commit()
+ vpp = VPPControl()
+
# check 'ip4-dhcp-client-detect' feature is enabled on interface
- _, out = rc_cmd(f'sudo vppctl show interface features {interface}')
- self.assertIn(f'ip4-dhcp-client-detect', out)
+ client_detect_feature = vpp.api.feature_is_enabled(
+ sw_if_index=vpp.get_sw_if_index(interface),
+ feature_name='ip4-dhcp-client-detect',
+ arc_name='ip4-unicast',
+ )
+ self.assertTrue(client_detect_feature.is_enabled)
+
+ # set interface address as dhcpv6
+ self.cli_set(['interfaces', 'ethernet', interface, 'address', 'dhcpv6'])
+ self.cli_commit()
+
+ # check 'ip6-icmp-ra-punt' feature is enabled on interface
+ # for ip6-unicast and ip6-multicast arcs
+ for arc_name in ['ip6-unicast', 'ip6-multicast']:
+ icmpv6_ra_punt_feature = vpp.api.feature_is_enabled(
+ sw_if_index=vpp.get_sw_if_index(interface),
+ feature_name='ip6-icmp-ra-punt',
+ arc_name=arc_name,
+ )
+ self.assertTrue(icmpv6_ra_punt_feature.is_enabled)
def test_02_vpp_vxlan(self):
vni = '23'