summaryrefslogtreecommitdiff
path: root/isisd
diff options
context:
space:
mode:
authoranlan_cs <anlan_cs@126.com>2024-10-06 21:06:15 +0800
committeranlan_cs <anlan_cs@tom.com>2024-10-07 09:12:42 +0800
commit424cec61c0860c74436954a1f8ba6ee7fe8e04a5 (patch)
tree92f9689b25304db220d6d9403d40b08b3fbf1db3 /isisd
parent15991e1a08e7dda6c6decb0b2e2fca23f96b78f7 (diff)
isisd: fix wrong check for MT commands
``` anlan# show run ! interface eth0 ip router isis A exit ! router isis A metric-style narrow <- NOT wide exit ! end anlan (config)# int eth0 anlan (config-if)# no isis topology ipv6-unicast % Configuration failed. Error type: validation Error description: Multi topology IS-IS can only be used with wide metrics ``` The MT commands are mainly controlled by the binded area, not by interface. Currently if there is any MT configuration in the area, `metric-style` must be with the `wide` mode, this requirement is sufficient. So, the unnecessary/wrong check for MT in the interface should be removed. Signed-off-by: anlan_cs <anlan_cs@126.com>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_nb_config.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/isisd/isis_nb_config.c b/isisd/isis_nb_config.c
index 7286a692f5..0f0c900ec2 100644
--- a/isisd/isis_nb_config.c
+++ b/isisd/isis_nb_config.c
@@ -4297,14 +4297,6 @@ static int lib_interface_isis_multi_topology_common(
switch (event) {
case NB_EV_VALIDATE:
- circuit = nb_running_get_entry(dnode, NULL, false);
- if (circuit && circuit->area && circuit->area->oldmetric) {
- snprintf(
- errmsg, errmsg_len,
- "Multi topology IS-IS can only be used with wide metrics");
- return NB_ERR_VALIDATION;
- }
- break;
case NB_EV_PREPARE:
case NB_EV_ABORT:
break;