diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-03-06 20:53:20 -0500 |
|---|---|---|
| committer | ton31337 <3352707+ton31337@users.noreply.github.com> | 2024-03-13 07:38:28 +0000 |
| commit | cca4bb65272938a0c15e736e793a9bf81375fd42 (patch) | |
| tree | 179da74af70ab65893c4b37dbe54c0af8d02f14e /lib/lib_errors.c | |
| parent | 4676c23cd848f0a316e54ff5719c2c0b927a3ef7 (diff) | |
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 <sharpd@nvidia.com>
Diffstat (limited to 'lib/lib_errors.c')
0 files changed, 0 insertions, 0 deletions
