diff --git a/pbrd/pbr_map.c b/pbrd/pbr_map.c index db17cdd8bd..21b23ae216 100644 --- a/pbrd/pbr_map.c +++ b/pbrd/pbr_map.c @@ -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) diff --git a/pbrd/pbr_map.h b/pbrd/pbr_map.h index 9d46de2a7d..7cd079d169 100644 --- a/pbrd/pbr_map.h +++ b/pbrd/pbr_map.h @@ -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);