Skip to content

Commit

Permalink
T6222: VRRP show prefix for long rfc3768-compatibility interfaces
Browse files Browse the repository at this point in the history
If we use rfc3768-compatibility with long interface names like
eth1.100.200 it converts the VRRP interface name name
to `<interface>v<VRID><IP version>`
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`
  • Loading branch information
sever-sever committed Apr 11, 2024
1 parent 5d89003 commit 29a20ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/vyos/ifconfig/section.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _intf_under_section (cls,section='',vlan=True):

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:
Expand Down

0 comments on commit 29a20ce

Please sign in to comment.