]> git.puffer.fish Git - matthieu/frr.git/commit
isisd: fix wrong check for MT commands
authoranlan_cs <anlan_cs@126.com>
Sun, 6 Oct 2024 13:06:15 +0000 (21:06 +0800)
committeranlan_cs <anlan_cs@tom.com>
Mon, 7 Oct 2024 01:12:42 +0000 (09:12 +0800)
commit424cec61c0860c74436954a1f8ba6ee7fe8e04a5
tree92f9689b25304db220d6d9403d40b08b3fbf1db3
parent15991e1a08e7dda6c6decb0b2e2fca23f96b78f7
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>
isisd/isis_nb_config.c