This patch fixes two bugs with respect to static route configuration
inside vrf contexts:
* Entering a negative form of a static route created the static route.
* Once created, static routes could not be deleted.
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
if (ret)
return ret;
- ret = shr1->safi - shr2->afi;
+ ret = shr1->safi - shr2->safi;
if (ret)
return ret;
return CMD_SUCCESS;
}
- listnode_add_sort(static_list, shr);
+ if (!negate)
+ listnode_add_sort(static_list, shr);
return CMD_SUCCESS;
}