Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zebra: Add ability to pretend routes are offloaded
In the fpm_listener add a -r option to allow for routes to be notified back to zebra that the route has been `offloaded` properly. fpm_listener output: New route 4.5.6.7/32, Prot: Static(196), Metric: 20, nhgid: 23 Route Static(196) reflecting back FPM message - Type: 1, Length 56 New route 169.254.0.0/16, Prot: Kernel(2), Metric: 20, nhgid: 2 FPM message - Type: 1, Length 56 New route 192.168.99.0/24, Prot: Kernel(2), Metric: 20, nhgid: 42 FPM message - Type: 1, Length 56 New route 192.168.99.1/32, Prot: Kernel(2), Metric: 20, nhgid: 42 FPM message - Type: 1, Length 56 New route 192.168.119.0/24, Prot: OSPF(188), Metric: 20, nhgid: 20 Route OSPF(188) reflecting back Zebra output: 2024-03-06 21:48:54.613 [DEBG] zebra: [TJXPZ-RC5XQ] default(0:254):4.5.6.7/32 Processing dplane notif ctx 0x7160b4008780 2024-03-06 21:48:54.613 [DEBG] zebra: [TJXPZ-RC5XQ] default(0:254):192.168.119.0/24 Processing dplane notif ctx 0x7160b4008780 eva# show ip route 4.5.6.7 json { "4.5.6.7/32":[ { "prefix":"4.5.6.7/32", "prefixLen":32, "protocol":"static", "vrfId":0, "vrfName":"default", "selected":true, "destSelected":true, "distance":1, "metric":0, "installed":true, "offloaded":true, .... and eva# show ip route 192.168.119.0 json { "192.168.119.0/24":[ { "prefix":"192.168.119.0/24", "prefixLen":24, "protocol":"ospf", "vrfId":0, "vrfName":"default", "selected":true, "destSelected":true, "distance":110, "metric":100, "installed":true, "offloaded":true, ... Signed-off-by: Donald Sharp <[email protected]>
- Loading branch information