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

ospfd: Assure OSPF AS External routes are installed after link flap #15593

Merged

Conversation

aceelindem
Copy link
Collaborator

OSPF intra/inter area routes were previously marked to assure they are re-installed after a fast link flap in the commit:

commit effee18
Author: Donald Sharp [email protected]
Date: Mon May 24 13:45:29 2021 -0400

ospfd: Fix quick interface down up event handling in ospf

This commit extends this fix to OSPF AS External routes as well.

@aceelindem aceelindem force-pushed the acee/ospf-link-flap-ase-route-change branch from ab5603f to f84a1b2 Compare March 21, 2024 19:06
@frrbot frrbot bot added the ospf label Mar 21, 2024
for (rn = route_top(table); rn; rn = route_next(rn)) {
or = rn->info;

if (!or)
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like the style-check doesn't like this - how about if (or == NULL) instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah - this is my second iteration as "git-clang-format --diff" suggested "if (! or)" but then that failed one of the platform builds. I'll try this and squash the commit. The funny thing is there are plenty of other null pointer checks in FRR using "!ptr".

Thanks,
Mark

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, I know the "pointer as boolean" thing is common; don't know why this particular instance is setting off the CI check.

OSPF intra/inter area routes were previously marked to assure they
are re-installed after a fast link flap in the commit:

commit effee18
Author: Donald Sharp <[email protected]>
Date:   Mon May 24 13:45:29 2021 -0400

    ospfd: Fix quick interface down up event handling in ospf

This commit extends this fix to OSPF AS External routes as well.

Signed-off-by: Acee <[email protected]>
@aceelindem aceelindem force-pushed the acee/ospf-link-flap-ase-route-change branch from f84a1b2 to 7ac1994 Compare March 21, 2024 20:19
@aceelindem
Copy link
Collaborator Author

CI:rerun

@mjstapp mjstapp merged commit 3249853 into FRRouting:master Mar 22, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants