mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 13:46:45 +00:00
Merge pull request #1945 from qlyoung/fix-vrf-static-routes
zebra: fix config of vrf static routes
This commit is contained in:
commit
9cf78d6cea
@ -156,7 +156,7 @@ static int static_list_compare(void *arg1, void *arg2)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
ret = shr1->safi - shr2->afi;
|
ret = shr1->safi - shr2->safi;
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
@ -259,7 +259,8 @@ static int zebra_static_route_holdem(struct zebra_vrf *zvrf,
|
|||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
listnode_add_sort(static_list, shr);
|
if (!negate)
|
||||||
|
listnode_add_sort(static_list, shr);
|
||||||
|
|
||||||
return CMD_SUCCESS;
|
return CMD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user