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

topotests: fix ignore routes with linkdown #15633

Merged

Conversation

pguibert6WIND
Copy link
Member

In topotest, a given interface has only the ignore routes bit turned on for IPv6 only, whereas topotest is expected to turn it on for all address families.

show interface

Interface r2-r3-eth2 is up, line protocol is up
[..]
flags: <UP,BROADCAST,RUNNING,MULTICAST>
Ignore all v6 routes with linkdown
Type: Ethernet
[..]

This is because the only the 'default' ipv6 ignore sysctl is set to

  1. Use the /proc/sys/net/conf//default/ignore_routes_with_linkdown flag instead, to have same behaviour for ipv4 and ipv6.

Fixes: 4958158 ("tests: micronet: update infra")

Copy link
Contributor

@idryzhov idryzhov left a comment

Choose a reason for hiding this comment

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

Shouldn't we set both all and default? With default only, all previously created interfaces won't have this setting enabled. I'm not sure if there's such a case when running topotests, but I think it's safer to have both anyway.

In topotest, a given interface has only the ignore routes bit turned
on for IPv6 only, whereas topotest is expected to turn it on for all
address families.

> # show interface
> Interface r2-r3-eth2 is up, line protocol is up
> [..]
>  flags: <UP,BROADCAST,RUNNING,MULTICAST>
>  Ignore all v6 routes with linkdown
>  Type: Ethernet
>  [..]

This is because the only the 'default' ipv6 ignore sysctl is set to
1. Set also the /proc/sys/net/conf/<family>/default/ignore_routes_with_linkdown
flag, to have same behaviour for ipv4 and ipv6.

Fixes: 4958158 ("tests: micronet: update infra")

Signed-off-by: Philippe Guibert <[email protected]>
@pguibert6WIND
Copy link
Member Author

Shouldn't we set both all and default? With default only, all previously created interfaces won't have this setting enabled. I'm not sure if there's such a case when running topotests, but I think it's safer to have both anyway.

The default setting can be kept, even if CI passes.

@pguibert6WIND pguibert6WIND force-pushed the ipv4_ignore_routes_with_linkdown branch from cefebd8 to c2e0060 Compare April 3, 2024 12:38
Copy link
Member

@riw777 riw777 left a comment

Choose a reason for hiding this comment

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

looks good

@riw777 riw777 merged commit 51afc9e into FRRouting:master Apr 4, 2024
9 checks passed
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.

3 participants