Change-Id: Ica6a0b4133ccc1997ef0547274982d0cc9761724
Signed-off-by: Neale Ranns <nranns@cisco.com>
: 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&
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());
}