From 650d9ad1acf68b1c017a54139bddf5888fe3c835 Mon Sep 17 00:00:00 2001 From: Anuradha Karuppiah Date: Thu, 6 Feb 2020 09:31:00 -0800 Subject: 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 --- pimd/pim_vxlan.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'pimd/pim_vxlan.h') 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); -- cgit v1.2.3