From 29a20ce9f9792e23137be57358ca52ddee7ac54b Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Thu, 11 Apr 2024 09:10:05 +0000 Subject: T6222: VRRP show prefix for long rfc3768-compatibility interfaces If we use rfc3768-compatibility with long interface names like eth1.100.200 it converts the VRRP interface name name to `v` For example `eth2.100.200v10v4` The limit for interface name is 15 symbols and it causes that interface name is ignoring by keepalived VMAC interface name 'eth2.100.200v10v4' too long or invalid characters - ignoring And it uses the default prefix `vrrp` for such cases. It works fine, but such interfaces are not displayed in the op-mode Allow prefix `vrrp` for the op-mode for `show interfaces` --- python/vyos/ifconfig/section.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/vyos/ifconfig/section.py') diff --git a/python/vyos/ifconfig/section.py b/python/vyos/ifconfig/section.py index 5e98cd510..50273cf67 100644 --- a/python/vyos/ifconfig/section.py +++ b/python/vyos/ifconfig/section.py @@ -97,7 +97,7 @@ class Section: for ifname in interfaces: ifsection = cls.section(ifname) - if not ifsection: + if not ifsection and not ifname.startswith('vrrp'): continue if section and ifsection != section: -- cgit v1.2.3