aboutsummaryrefslogtreecommitdiffstats
path: root/extras/vom
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-03-01 02:27:46 -0800
committerNeale Ranns <nranns@cisco.com>2019-03-01 11:39:20 +0000
commit038243064ba0a6b587213ba56fffd9e3fddcf0ee (patch)
tree5a5dc2b295b686844e5e000156ac9ec2f500c61d /extras/vom
parenta279d9cf615bd60439085ba103125e6f2fa3b27c (diff)
VOM: vxlan-tunnel mcast interface fix
Change-Id: Ica6a0b4133ccc1997ef0547274982d0cc9761724 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'extras/vom')
-rw-r--r--extras/vom/vom/vxlan_tunnel.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/extras/vom/vom/vxlan_tunnel.cpp b/extras/vom/vom/vxlan_tunnel.cpp
index faf49bd93cd..248aadfeade 100644
--- a/extras/vom/vom/vxlan_tunnel.cpp
+++ b/extras/vom/vom/vxlan_tunnel.cpp
@@ -113,13 +113,15 @@ vxlan_tunnel::vxlan_tunnel(const vxlan_tunnel& o)
: interface(o)
, m_tep(o.m_tep)
, m_mode(o.m_mode)
+ , m_mcast_itf(o.m_mcast_itf)
{
}
bool
vxlan_tunnel::operator==(const vxlan_tunnel& other) const
{
- return ((m_tep == other.m_tep) && (m_mode == other.m_mode));
+ return ((m_tep == other.m_tep) && (m_mode == other.m_mode) &&
+ (m_mcast_itf == other.m_mcast_itf));
}
const handle_t&
@@ -173,6 +175,8 @@ vxlan_tunnel::to_string() const
std::ostringstream s;
s << "vxlan-tunnel: " << m_hdl.to_string() << " " << m_mode.to_string() << " "
<< m_tep.to_string();
+ if (m_mcast_itf)
+ s << " " << m_mcast_itf->to_string();
return (s.str());
}