diff options
author | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2020-02-06 18:31:00 +0100 |
---|---|---|
committer | Anuradha Karuppiah <anuradhak@cumulusnetworks.com> | 2020-02-14 18:18:30 +0100 |
commit | 650d9ad1acf68b1c017a54139bddf5888fe3c835 (patch) | |
tree | 86f4b707a864d02665c42d3ef7e26ff9f7cfddb2 /pimd/pim_vxlan.h | |
parent | pimd: handle nht metric change correctly (diff) | |
download | frr-650d9ad1acf68b1c017a54139bddf5888fe3c835.tar.xz frr-650d9ad1acf68b1c017a54139bddf5888fe3c835.zip |
pimd: handle ipmr-lo operational state changes
ipmr-lo is an internally added device used for multicast vxlan tunnel
termination. This device is not expected to be managed by the admin
however in the case it is accidentally shut we need to be able handle
it by recovering when it is "no shut" again.
Ticket: CM-24985
Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_vxlan.h')
-rw-r--r-- | pimd/pim_vxlan.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pimd/pim_vxlan.h b/pimd/pim_vxlan.h index 7adba2eee..198d1c328 100644 --- a/pimd/pim_vxlan.h +++ b/pimd/pim_vxlan.h @@ -119,6 +119,12 @@ static inline bool pim_vxlan_is_local_sip(struct pim_upstream *up) if_is_loopback_or_vrf(up->rpf.source_nexthop.interface); } +static inline bool pim_vxlan_is_term_dev_cfg(struct pim_instance *pim, + struct interface *ifp) +{ + return pim->vxlan.term_if_cfg == ifp; +} + extern struct pim_vxlan *pim_vxlan_p; extern struct pim_vxlan_sg *pim_vxlan_sg_find(struct pim_instance *pim, struct prefix_sg *sg); |