-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
zebra: fix wrong linkdown flag #17403
base: master
Are you sure you want to change the base?
Conversation
Add this one line command to one down interface (mask is 192.168.0.0/24): ``` ip link set dev enp2s0 up;ip route add 3.3.3.3/32 via 192.168.0.1 dev enp2s0 proto kernel onlink ``` Before: ``` K>* 3.3.3.3/32 [0/0] via 192.168.0.1, enp2s0 onlink linkdown, weight 1, 00:00:02 ``` After: ``` K>* 3.3.3.3/32 [0/0] via 192.168.0.1, enp2s0 onlink, weight 1, 00:00:02 ``` It's only display problem, just correct this linkdown flag. Signed-off-by: anlan_cs <anlan_cs@126.com>
@Mergifyio backport stable/10.2 stable/10.1 stable/10.0 stable/9.1 stable/9.0 |
🟠 Waiting for conditions to match
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this not being set on link up?
It is the time issue. If with two commands in two lines, there is no this issue. Now they are combined into one line, so the UP message of netlink comes later. @donaldsharp |
I am not seeing this problem:
How exactly do you reproduce? |
@donaldsharp Use the REAL interface, try your enp13s0? |
if the up comes later we should scan the kernel routes and set the flag there. Hence this is the wrong spot to do the work. |
imo just check this UP interface at this spot is enough, can't find a better spot… @donaldsharp |
Add this one line command to one down interface (mask is 192.168.0.0/24):
Before:
After:
It's only display problem, just correct this linkdown flag.