diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-04-11 09:10:05 +0000 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-04-11 15:46:40 +0000 |
commit | dba6472c662c6bb189c11eb7cf77229f6b21d0b5 (patch) | |
tree | 0d2b940a9ddb18e6b77c304ffb14c1ca182f5557 /python | |
parent | ed3c5988e2334b2775eb0cb092df69567384ddd7 (diff) | |
download | vyos-1x-dba6472c662c6bb189c11eb7cf77229f6b21d0b5.tar.gz vyos-1x-dba6472c662c6bb189c11eb7cf77229f6b21d0b5.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`
(cherry picked from commit 29a20ce9f9792e23137be57358ca52ddee7ac54b)
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: |