diff options
author | Christian Breunig <christian@breunig.cc> | 2025-01-08 19:44:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-08 19:44:47 +0100 |
commit | 7bf02bfb68139fca05523aa33f73a593211aa388 (patch) | |
tree | a29446e3e06ff84a6b2e8a3442a81a0c9dc0cf17 /src/conf_mode/vrf.py | |
parent | 5a4ab1ebc53d7f296faec876850b3624207a6f35 (diff) | |
parent | 3da9b7df7890afba2c9f3ec7ae2abd70e912c9e6 (diff) | |
download | vyos-1x-7bf02bfb68139fca05523aa33f73a593211aa388.tar.gz vyos-1x-7bf02bfb68139fca05523aa33f73a593211aa388.zip |
Merge pull request #4286 from c-po/T7024-vrf-up
vrf: T7024: instance name "up" and "down" are reserved and should not be used
Diffstat (limited to 'src/conf_mode/vrf.py')
-rwxr-xr-x | src/conf_mode/vrf.py | 5 |
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(): |