mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 05:13:07 +00:00
Merge pull request #3367 from karamalla0406/frr3333
bgpd: BGP daemon crashed when a L2VNI is unconfigured
This commit is contained in:
commit
4b53ce068d
@ -1696,10 +1696,10 @@ static void evpn_unconfigure_import_rt(struct bgp *bgp, struct bgpevpn *vpn,
|
|||||||
|
|
||||||
/* Delete all import RTs */
|
/* Delete all import RTs */
|
||||||
if (ecomdel == NULL) {
|
if (ecomdel == NULL) {
|
||||||
for (ALL_LIST_ELEMENTS(vpn->import_rtl, node, nnode, ecom))
|
for (ALL_LIST_ELEMENTS(vpn->import_rtl, node, nnode, ecom)) {
|
||||||
ecommunity_free(&ecom);
|
ecommunity_free(&ecom);
|
||||||
|
list_delete_node(vpn->import_rtl, node);
|
||||||
list_delete_all_node(vpn->import_rtl);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete a specific import RT */
|
/* Delete a specific import RT */
|
||||||
@ -1764,10 +1764,10 @@ static void evpn_unconfigure_export_rt(struct bgp *bgp, struct bgpevpn *vpn,
|
|||||||
/* Delete all export RTs */
|
/* Delete all export RTs */
|
||||||
if (ecomdel == NULL) {
|
if (ecomdel == NULL) {
|
||||||
/* Reset to default and process all routes. */
|
/* Reset to default and process all routes. */
|
||||||
for (ALL_LIST_ELEMENTS(vpn->export_rtl, node, nnode, ecom))
|
for (ALL_LIST_ELEMENTS(vpn->export_rtl, node, nnode, ecom)) {
|
||||||
ecommunity_free(&ecom);
|
ecommunity_free(&ecom);
|
||||||
|
list_delete_node(vpn->export_rtl, node);
|
||||||
list_delete_all_node(vpn->export_rtl);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete a specific export RT */
|
/* Delete a specific export RT */
|
||||||
|
Loading…
Reference in New Issue
Block a user