-
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 update nexthop-group fib flag value #16332
base: master
Are you sure you want to change the base?
zebra: fix update nexthop-group fib flag value #16332
Conversation
the before and after output looks the same to me. Can you fix or better highlight what I am missing? |
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.
Need to understand what the actual problem is a bit better
zebra/zebra_nhg.c
Outdated
continue; | ||
if (CHECK_FLAG(nhop->flags, NEXTHOP_FLAG_RECURSIVE)) | ||
continue; | ||
SET_FLAG(nhop->flags, NEXTHOP_FLAG_FIB); |
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.
I want this flag set after we receive the correct response from the kernel / dplane that it has been properly installed. This is not the correct place to make this change. I thought we already did this though, so I am a bit confused here as well.
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.
Moved at the place where zebra_nhg_handle_install() is called.
This is for nexthop-groups. I have some issues with duplicate flag.
(see #16028 )
567c57b
to
257b34a
Compare
257b34a
to
589e240
Compare
@Mergifyio backport dev/10.1 |
🟠 Waiting for conditions to match
|
@chiragshah6 , any feedback ? |
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } expected: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Fix this by refreshing the fib flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } expected: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Fix this by refreshing the fib flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } expected: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Fix this by refreshing the fib flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
e1a9b08
to
731f74e
Compare
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
731f74e
to
21722d9
Compare
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
@Mergifyio backport stable/10.1 |
🟠 Waiting for conditions to match
|
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag value of its nexthops. > nexthop-group A > nexthop 192.168.1.55 loop1 > exit observed: > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:17", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 528 > ], > "nexthops":[ > { > "flags":1, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } The FIB flag is used to inform the user that a given nexthop is installed in the system, which is the case when using iproute2: > # ip nexthop show id 181818168 > id 181818168 group 15 proto 194 > # ip nexthop show id 15 > id 15 via 192.168.1.55 dev loop1 scope link proto 194 Fix this by refreshing the FIB flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed. > ubuntu2204# show nexthop-group rib 181818168 json > { > "181818168":{ > "type":"sharp", > "refCount":1, > "uptime":"00:00:25", > "vrf":"default", > "valid":true, > "installed":true, > "depends":[ > 574 > ], > "nexthops":[ > { > "flags":3, > "fib":true, > "ip":"192.168.1.55", > "afi":"ipv4", > "interfaceIndex":3, > "interfaceName":"loop1", > "vrf":"default", > "active":true, > "weight":1 > } > ] > } > } > Link: FRRouting#16332 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
A nexthop-group does not display the 'fib' flag
value of its nexthops.
observed:
expected:
Fix this by refreshing the fib flag value of its nexthops, when the dataplane result indicate the nexthop-group is installed.