Skip to content

Commit

Permalink
vrf: T7024: instance name "up" and "down" are reserved and should not…
Browse files Browse the repository at this point in the history
… be used
  • Loading branch information
c-po committed Jan 7, 2025
1 parent fe50656 commit 3da9b7d
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 3da9b7d

Please sign in to comment.