From 3da9b7df7890afba2c9f3ec7ae2abd70e912c9e6 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Tue, 7 Jan 2025 16:38:16 +0100 Subject: [PATCH] vrf: T7024: instance name "up" and "down" are reserved and should not be used --- src/conf_mode/vrf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/conf_mode/vrf.py b/src/conf_mode/vrf.py index 74780b6011..8baf558573 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():