diff --git a/orchagent/port.h b/orchagent/port.h index f99aaaa03707..16936f4c0bc2 100644 --- a/orchagent/port.h +++ b/orchagent/port.h @@ -64,7 +64,6 @@ class Port std::string m_alias; Type m_type; int m_index = 0; // PHY_PORT: index - int m_ifindex = 0; uint32_t m_mtu = DEFAULT_MTU; uint32_t m_speed = 0; // Mbps bool m_autoneg = 0; diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 9b0dad45ebda..864f28f52c47 100644 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -2235,16 +2235,6 @@ bool PortsOrch::initializePort(Port &p) /* Create host interface */ addHostIntfs(p, p.m_alias, p.m_hif_id); -#if 0 - // TODO: Assure if_nametoindex(p.m_alias.c_str()) != 0 - p.m_ifindex = if_nametoindex(p.m_alias.c_str()); - if (p.m_ifindex == 0) - { - SWSS_LOG_ERROR("Failed to get netdev index alias:%s", p.m_alias.c_str()); - return false; - } -#endif - /* Check warm start states */ vector tuples; bool exist = m_portTable->get(p.m_alias, tuples);