Skip to content

Commit

Permalink
Merge pull request #4286 from c-po/T7024-vrf-up
Browse files Browse the repository at this point in the history
vrf: T7024: instance name "up" and "down" are reserved and should not be used
  • Loading branch information
c-po authored Jan 8, 2025
2 parents 5a4ab1e + 3da9b7d commit 7bf02bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/conf_mode/vrf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 7bf02bf

Please sign in to comment.