summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rwxr-xr-xsrc/conf_mode/interfaces_ethernet.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces_ethernet.py b/src/conf_mode/interfaces_ethernet.py
index f01de48a1..554f0fa41 100755
--- a/src/conf_mode/interfaces_ethernet.py
+++ b/src/conf_mode/interfaces_ethernet.py
@@ -458,6 +458,14 @@ def apply(ethernet):
else:
vpp_api.disable_dhcp_client(ifname)
+ # Enable ip6-icmp-ra-punt feature for DHCPv6-configured interfaces.
+ if 'dhcpv6' in ethernet.get('address', []) or (
+ 'autoconf' in ethernet.get('ipv6', {}).get('address', {})
+ ):
+ vpp_api.enable_icmpv6_ra_punt(ifname)
+ else:
+ vpp_api.disable_icmpv6_ra_punt(ifname)
+
# If the interface is managed by the VPP DPDK driver, synchronize runtime
# parameters between Linux and the corresponding VPP LCP interface
# Find LCP pair