mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 11:24:42 +00:00
pbrd: Allow pbr-policy add/removal to install/remove rules
The pbrm->installed variable was being used only in a couple of places and it has no real bearing on whether or not we should install a rule or not. Remove this value. Ticket: CM-20429 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
56c63eeb23
commit
d02e9432b5
@ -154,7 +154,7 @@ void pbr_map_add_interface(struct pbr_map *pbrm, struct interface *ifp_add)
|
||||
|
||||
bf_assign_index(pbrm->ifi_bitfield, pmi->install_bit);
|
||||
pbr_map_check_valid(pbrm->name);
|
||||
if (pbrm->valid && !pbrm->installed)
|
||||
if (pbrm->valid)
|
||||
pbr_map_install(pbrm);
|
||||
}
|
||||
|
||||
@ -311,8 +311,6 @@ struct pbr_map_sequence *pbrms_get(const char *name, uint32_t seqno)
|
||||
|
||||
QOBJ_REG(pbrms, pbr_map_sequence);
|
||||
listnode_add_sort(pbrm->seqnumbers, pbrms);
|
||||
|
||||
pbrm->installed = false;
|
||||
}
|
||||
|
||||
return pbrms;
|
||||
@ -566,8 +564,6 @@ void pbr_map_install(struct pbr_map *pbrm)
|
||||
for (ALL_LIST_ELEMENTS_RO(pbrm->seqnumbers, node, pbrms))
|
||||
for (ALL_LIST_ELEMENTS_RO(pbrm->incoming, inode, pmi))
|
||||
pbr_send_pbr_map(pbrms, pmi, true);
|
||||
|
||||
pbrm->installed = true;
|
||||
}
|
||||
|
||||
void pbr_map_init(void)
|
||||
|
@ -49,8 +49,6 @@ struct pbr_map {
|
||||
* what we think is the invalid reason
|
||||
*/
|
||||
bool valid;
|
||||
|
||||
bool installed;
|
||||
};
|
||||
|
||||
RB_HEAD(pbr_map_entry_head, pbr_map);
|
||||
|
Loading…
Reference in New Issue
Block a user