summaryrefslogtreecommitdiff
path: root/src/validators
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2020-05-01 17:36:47 +0200
committerJernej Jakob <jernej.jakob@gmail.com>2020-05-04 22:59:39 +0200
commit109dbf9789bdc0b1e35b2b5ebd2fd0ce2a1ebe4a (patch)
treef544547cd26531389a5923f67ca5c8ce93cac962 /src/validators
parent6369d56ed5bd5a36c4ae3de21e0e316989f0da8e (diff)
downloadvyos-1x-109dbf9789bdc0b1e35b2b5ebd2fd0ce2a1ebe4a.tar.gz
vyos-1x-109dbf9789bdc0b1e35b2b5ebd2fd0ce2a1ebe4a.zip
ifconfig: T2241: fix section _basename vlan stripping
Previously the function returned the correct basename only for vif interfaces as it stopped at the 2nd dot. If we had a vif-s vif-c interface 'eth0.1.2' it would return 'eth0.'. It is now fixed to strip both vif-s and vif-c if 'vlan=True' (default).
Diffstat (limited to 'src/validators')
0 files changed, 0 insertions, 0 deletions