Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

isisd: fix wrong check for MT commands #17014

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

anlancs
Copy link
Contributor

@anlancs anlancs commented Oct 7, 2024

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.

```
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 <[email protected]>
@louis-6wind
Copy link
Contributor

LGTM

@louis-6wind
Copy link
Contributor

ci:rerun

@louis-6wind
Copy link
Contributor

By default, all MT topologies are enabled on interface but are actually enabled when the topology is enabled using:

router isis <instance>
 topology <mt>

We cannot set narrow with a configured topology. This check is sufficient

rt1(config)# router isis 1
rt1(config-router)# topology ipv6-unicast 
rt1(config-router)# metric-style narrow 
% Configuration failed.

Error type: validation
Error description: YANG error(s):
 Path: Data location "/frr-isisd:isis/instance[area-tag='1'][vrf='default']/metric-style".
 Error: Must condition ". = 'wide' or count(../multi-topology/*) = 0" not satisfied.

rt1(config-router)# 

@pguibert6WIND
Copy link
Member

@Mergifyio backport stable/10.1

@pguibert6WIND
Copy link
Member

@Mergifyio backport stable/10.0

Copy link

mergify bot commented Oct 7, 2024

backport stable/10.1

✅ Backports have been created

Copy link
Member

@pguibert6WIND pguibert6WIND left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

mergify bot commented Oct 7, 2024

backport stable/10.0

✅ Backports have been created

@ton31337 ton31337 merged commit 4bf780f into FRRouting:master Oct 8, 2024
16 checks passed
donaldsharp added a commit that referenced this pull request Oct 8, 2024
isisd: fix wrong check for MT commands (backport #17014)
donaldsharp added a commit that referenced this pull request Oct 8, 2024
isisd: fix wrong check for MT commands (backport #17014)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants