diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-04-23 20:57:14 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-05-12 07:33:08 -0400 |
| commit | ebd1a47c95dfc3b769c67db3c4872be52c898ba6 (patch) | |
| tree | 7ec3c864edfa33848c217836499c357b8257399e /tests/topotests/pim_basic/test_pim.py | |
| parent | 03b682be62823c3a4ff5ca6d09ef19401538bc7e (diff) | |
bgpd: reduce cut-n-paste code in bgp_pbr.c
Create a function bgp_bpr_bpa_remove that is this cut-n-paste code:
if (bpa->refcnt == 0) {
if (bpa->installed && bpa->table_id != 0) {
bgp_send_pbr_rule_action(bpa, NULL, false);
bgp_zebra_announce_default(bpa->bgp, &(bpa->nh),
AFI_IP,
bpa->table_id,
false);
bpa->installed = false;
}
}
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'tests/topotests/pim_basic/test_pim.py')
0 files changed, 0 insertions, 0 deletions
