diff options
| author | Renato Westphal <renato@openbsd.org> | 2018-03-23 12:31:53 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-23 12:31:53 -0300 |
| commit | 9cf78d6cea4a655293afefca85c5e7efcb13285a (patch) | |
| tree | c96023b70176a8676e84591c7106795dae78b678 | |
| parent | aab81a046e4ee087a0d99832a839cbd42c8ce385 (diff) | |
| parent | b88689f2a77007007246df5c4265ceca9bdf4fd2 (diff) | |
Merge pull request #1945 from qlyoung/fix-vrf-static-routes
zebra: fix config of vrf static routes
| -rw-r--r-- | zebra/zebra_vty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index b65f4b8eb5..3285176103 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -156,7 +156,7 @@ static int static_list_compare(void *arg1, void *arg2) if (ret) return ret; - ret = shr1->safi - shr2->afi; + ret = shr1->safi - shr2->safi; if (ret) return ret; @@ -259,7 +259,8 @@ static int zebra_static_route_holdem(struct zebra_vrf *zvrf, return CMD_SUCCESS; } - listnode_add_sort(static_list, shr); + if (!negate) + listnode_add_sort(static_list, shr); return CMD_SUCCESS; } |
