diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-04-11 09:10:05 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-04-11 09:10:05 +0000 |
commit | 29a20ce9f9792e23137be57358ca52ddee7ac54b (patch) | |
tree | 81eb309b65e854b308bfc8f63f2cfe714cf80563 /python | |
parent | 5d890037b177ce6971ac00f52e4cce2cac898f46 (diff) | |
download | vyos-1x-29a20ce9f9792e23137be57358ca52ddee7ac54b.tar.gz vyos-1x-29a20ce9f9792e23137be57358ca52ddee7ac54b.zip |
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 `<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`
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/ifconfig/section.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |