mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 02:53:55 +00:00
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>
This commit is contained in:
parent
15991e1a08
commit
424cec61c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user