mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 04:26:12 +00:00
Merge pull request #16810 from anlancs/fix/pimd-interface-crash-commands
pimd: fix crash for two commands
This commit is contained in:
commit
084858722c
@ -2058,6 +2058,10 @@ int lib_interface_pim_address_family_bsm_modify(struct nb_cb_modify_args *args)
|
|||||||
case NB_EV_APPLY:
|
case NB_EV_APPLY:
|
||||||
ifp = nb_running_get_entry(args->dnode, NULL, true);
|
ifp = nb_running_get_entry(args->dnode, NULL, true);
|
||||||
pim_ifp = ifp->info;
|
pim_ifp = ifp->info;
|
||||||
|
if (!pim_ifp) {
|
||||||
|
pim_ifp = pim_if_new(ifp, false, true, false, false);
|
||||||
|
ifp->info = pim_ifp;
|
||||||
|
}
|
||||||
pim_ifp->bsm_enable = yang_dnode_get_bool(args->dnode, NULL);
|
pim_ifp->bsm_enable = yang_dnode_get_bool(args->dnode, NULL);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@ -2083,6 +2087,10 @@ int lib_interface_pim_address_family_unicast_bsm_modify(
|
|||||||
case NB_EV_APPLY:
|
case NB_EV_APPLY:
|
||||||
ifp = nb_running_get_entry(args->dnode, NULL, true);
|
ifp = nb_running_get_entry(args->dnode, NULL, true);
|
||||||
pim_ifp = ifp->info;
|
pim_ifp = ifp->info;
|
||||||
|
if (!pim_ifp) {
|
||||||
|
pim_ifp = pim_if_new(ifp, false, true, false, false);
|
||||||
|
ifp->info = pim_ifp;
|
||||||
|
}
|
||||||
pim_ifp->ucast_bsm_accept =
|
pim_ifp->ucast_bsm_accept =
|
||||||
yang_dnode_get_bool(args->dnode, NULL);
|
yang_dnode_get_bool(args->dnode, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user