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

staticd: fix missing static routes (backport #16373) #16388

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Jul 15, 2024

Use vtysh with this input file:

ip route A nh1
ip route A nh2
ip route B nh1
ip route B nh2

When running "ip route B" with "nh1" and "nh2", the procedure maybe is:

  1. Create the two nexthops: "nh1" and "nh2".
  2. Register "nh1" with static_zebra_nht_register(), then the states of both
    "nh1" and "nht2" are set to "STATIC_SENT_TO_ZEBRA".
  3. Register "nh2" with static_zebra_nht_register(), then only the routes with
    nexthop of "STATIC_START" will be sent to zebra.

So, send the routes with the nexthop of "STATIC_SENT_TO_ZEBRA" to zebra.


This is an automatic backport of pull request #16373 done by Mergify.

Use `vtysh` with this input file:
```
ip route A nh1
ip route A nh2
ip route B nh1
ip route B nh2
```

When running "ip route B" with "nh1" and "nh2", the procedure maybe is:
1) Create the two nexthops: "nh1" and "nh2".
2) Register "nh1" with `static_zebra_nht_register()`, then the states of both
   "nh1" and "nht2" are set to "STATIC_SENT_TO_ZEBRA".
3) Register "nh2" with `static_zebra_nht_register()`, then only the routes with
   nexthop of "STATIC_START" will be sent to zebra.

So, send the routes with the nexthop of "STATIC_SENT_TO_ZEBRA" to zebra.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
(cherry picked from commit 4518d38)
@Jafaral Jafaral merged commit 0037fb4 into stable/10.0 Jul 16, 2024
14 checks passed
@mergify mergify bot deleted the mergify/bp/stable/10.0/pr-16373 branch July 16, 2024 13:56
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.

2 participants