From 5c5716a84abac766ad72334e3f159fffb9644c8f Mon Sep 17 00:00:00 2001 From: Nataliia Solomko Date: Mon, 6 Jul 2026 18:07:00 +0300 Subject: vpp: T9018: Auto-enable promiscuous mode for interfaces with VLANs VPP drops VLAN-tagged frames unless the parent interface has promiscuous mode enabled, causing VLAN sub-interfaces to lose connectivity. Automatically enable promiscuous mode on VPP interfaces that have VLAN sub-interfaces (vif/vif-s) configured. --- python/vyos/vpp/control_vpp.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'python') diff --git a/python/vyos/vpp/control_vpp.py b/python/vyos/vpp/control_vpp.py index 0746282de..5cad2a646 100644 --- a/python/vyos/vpp/control_vpp.py +++ b/python/vyos/vpp/control_vpp.py @@ -688,3 +688,16 @@ class VPPControl: arc_name=arc_name, feature_name='ip6-icmp-ra-punt', ) + + @_Decorators.api_call + def set_promisc(self, ifname: str, enable: bool = True) -> None: + """Set promiscuous mode for interface + + Args: + ifname (str): name of an interface + enable (bool): enable or disable promiscuous mode + """ + self.__vpp_api_client.api.sw_interface_set_promisc( + sw_if_index=self.get_sw_if_index(ifname), + promisc_on=enable, + ) -- cgit v1.2.3