diff options
author | Sarita Patra <saritap@vmware.com> | 2019-02-22 16:29:24 +0100 |
---|---|---|
committer | Sarita Patra <saritap@vmware.com> | 2019-02-25 08:27:08 +0100 |
commit | 1250cb5df29b7ac663fc57ee75ec18899cb6e608 (patch) | |
tree | 1c8785c1a7e2cedc6faddf283ea49871a97aafdc /pimd/pim_upstream.c | |
parent | pimd: clear rp_info source_nexthop when RP becomes not reachable (diff) | |
download | frr-1250cb5df29b7ac663fc57ee75ec18899cb6e608.tar.xz frr-1250cb5df29b7ac663fc57ee75ec18899cb6e608.zip |
pimd: clear upstream rpf information when RP becomes not reachable
When route to RP gets modified, FRR receives a notification from
zebra, and call the function pim_resolve_upstream_nh() to compute the
nexthop and update upstream->rpf structure.
Issue: In case when RP becomes not reachable, FRR only uninstall
the mroute from the kernal, but not update the upstream->rpf structure.
Fix: When FRR receives a notification from zebra saying RP becomes
not reachable, then update the following fields.
1. update channel_oil incoming interface as MAXVIFS
2. Un-install the mroute from the kernel.
3. Switch upstream state from JOINED to NOTJOINED.
4. Clear the nexthop information of the upstream.
Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_upstream.c')
-rw-r--r-- | pimd/pim_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_upstream.c b/pimd/pim_upstream.c index 2a2b94435..f1fb99832 100644 --- a/pimd/pim_upstream.c +++ b/pimd/pim_upstream.c @@ -941,7 +941,7 @@ void pim_upstream_update_join_desired(struct pim_instance *pim, PIM_UPSTREAM_FLAG_UNSET_DR_JOIN_DESIRED(up->flags); /* switched from false to true */ - if (is_join_desired && !was_join_desired) { + if (is_join_desired) { pim_upstream_switch(pim, up, PIM_UPSTREAM_JOINED); return; } |