Change-Id: I0e524b5d7c02a099b6ce84e6a0c116b19200879d
Signed-off-by: Neale Ranns <nranns@cisco.com>
{
}
+bool
+vxlan_tunnel::operator==(const vxlan_tunnel& other) const
+{
+ return ((m_tep == other.m_tep) && (m_mode == other.m_mode));
+}
+
const handle_t&
vxlan_tunnel::handle() const
{
/*
* the desired state is always that the interface should be created
*/
- if (!m_hdl) {
+ if (rc_t::OK != m_hdl.rc()) {
if (mode_t::STANDARD == m_mode)
HW::enqueue(new vxlan_tunnel_cmds::create_cmd(
m_hdl, name(), m_tep,
*/
vxlan_tunnel(const vxlan_tunnel& o);
+ /**
+ * comparison operator
+ */
+ bool operator==(const vxlan_tunnel& vx) const;
+
/**
* Return the matching 'singular instance'
*/