summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2025-01-07 16:38:16 +0100
committerChristian Breunig <christian@breunig.cc>2025-01-07 16:38:16 +0100
commit3da9b7df7890afba2c9f3ec7ae2abd70e912c9e6 (patch)
treeeefead8a4e28b07688fb3b777f8c8a413f5d92b8 /src
parentfe50656a6f1509976d04e8a750083d54bad28ecc (diff)
downloadvyos-1x-3da9b7df7890afba2c9f3ec7ae2abd70e912c9e6.tar.gz
vyos-1x-3da9b7df7890afba2c9f3ec7ae2abd70e912c9e6.zip
vrf: T7024: instance name "up" and "down" are reserved and should not be used
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/vrf.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conf_mode/vrf.py b/src/conf_mode/vrf.py
index 74780b601..8baf55857 100755
--- a/src/conf_mode/vrf.py
+++ b/src/conf_mode/vrf.py
@@ -149,8 +149,9 @@ def verify(vrf):
f'static routes installed!')
if 'name' in vrf:
- reserved_names = ["add", "all", "broadcast", "default", "delete", "dev",
- "get", "inet", "mtu", "link", "type", "vrf"]
+ reserved_names = ['add', 'all', 'broadcast', 'default', 'delete', 'dev',
+ 'down', 'get', 'inet', 'link', 'mtu', 'type', 'up', 'vrf']
+
table_ids = []
vnis = []
for name, vrf_config in vrf['name'].items():