summaryrefslogtreecommitdiff
path: root/lib/ns.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-08-01 19:09:59 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-08-01 19:09:59 -0400
commit228a811a2eaf41c5a6e547f67844ff570481716d (patch)
tree1873c183df013d043e4cc5afdbb8ffef42ba1073 /lib/ns.h
parentcf347baaef04c5c6a6fdc2288e1f7c0d23d1eb70 (diff)
zebra: Redistribution should be told about the old route
When we are sending a redistribute_update, pass the old_re in so that if we still have it around we can update the calling protocol. Test: router ospf redistribute sharp ! sharp install route 4.5.6.7 nexthop 192.168.201.1 1 Now add a `ip route 4.5.6.7/32 192.168.201.1`. This causes zebra to replace the sharp route with the static route. No update is sent to ospf and debug: 2019/08/01 19:02:38.271998 ZEBRA: 0:4.5.6.7/32: Redist update re 0x12fdbda0 (static), old 0x0 (None) With fix: 2019/08/01 19:15:09.644499 ZEBRA: 0:4.5.6.7/32: Redist update re 0x1ba5bce0 (static), old 0x1beea4e0 (sharp) 2019/08/01 19:15:09.645462 OSPF: ospf_zebra_read_route: from client sharp: vrf_id 0, p 4.5.6.7/32 Ticket: CM-25847 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/ns.h')
0 files changed, 0 insertions, 0 deletions