Merge pull request #1945 from qlyoung/fix-vrf-static-routes

zebra: fix config of vrf static routes
This commit is contained in:
Renato Westphal 2018-03-23 12:31:53 -03:00 committed by GitHub
commit 9cf78d6cea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,6 +259,7 @@ static int zebra_static_route_holdem(struct zebra_vrf *zvrf,
return CMD_SUCCESS;
}
if (!negate)
listnode_add_sort(static_list, shr);
return CMD_SUCCESS;