]> git.puffer.fish Git - mirror/frr.git/commit
tools: frr-reload fixes for deleting vrf static routes 8390/head
authorDon Slice <dslice@nvidia.com>
Fri, 19 Mar 2021 19:10:14 +0000 (15:10 -0400)
committerChristian Poessinger <christian@poessinger.com>
Thu, 1 Apr 2021 17:13:51 +0000 (19:13 +0200)
commit9b6f57f1c6f17302dfcfa44305b44904be20baae
tree9914227b958bce6345696b85f8e37f25e5fd04d5
parente1062f87cbd96f60003271050c1bea8afc494755
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>
(cherry picked from commit 00302a580c57fce0bb45d3fd6af9d4408a417ceb)
tools/frr-reload.py