]> git.puffer.fish Git - matthieu/frr.git/commit
tools: frr-reload fixes for deleting vrf static routes
authorDon Slice <dslice@nvidia.com>
Fri, 19 Mar 2021 19:10:14 +0000 (15:10 -0400)
committerDon Slice <dslice@nvidia.com>
Wed, 31 Mar 2021 16:38:59 +0000 (09:38 -0700)
commit00302a580c57fce0bb45d3fd6af9d4408a417ceb
tree591123af13564ea33852d8352a0c5880d8552a92
parent880dcb06e4166c3c861bd0e04361af12d85ef056
tools: frr-reload fixes for deleting vrf static routes

Problems reported that in certain cases, frr-reload.py would
delete vrf static routes inadvertantly due to two different
reasons. First, vrf statics with null0 or Null0 nexthops would
fail the match since rendered as blackholes.  This was already
fixed for non-vrf statics so added for vrf-based.  Second,
frr-reload would fail to match due to different formats for
adding the command. If entered in the old way
"ip route x.x.x.x/x y.y.y.y vrf NAME" and rendered
in the new sway "vrf NAME\nip route x.x.x.x/x y.y.y.y" it would
fail to match do an inadvertant delete.

Ticket: 2570270
Signed-off-by: Don Slice <dslice@nvidia.com>
tools/frr-reload.py