File tree 2 files changed +0
-11
lines changed
2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ class Port
64
64
std::string m_alias;
65
65
Type m_type;
66
66
int m_index = 0 ; // PHY_PORT: index
67
- int m_ifindex = 0 ;
68
67
uint32_t m_mtu = DEFAULT_MTU;
69
68
uint32_t m_speed = 0 ; // Mbps
70
69
bool m_autoneg = 0 ;
Original file line number Diff line number Diff line change @@ -2235,16 +2235,6 @@ bool PortsOrch::initializePort(Port &p)
2235
2235
/* Create host interface */
2236
2236
addHostIntfs (p, p.m_alias , p.m_hif_id );
2237
2237
2238
- #if 0
2239
- // TODO: Assure if_nametoindex(p.m_alias.c_str()) != 0
2240
- p.m_ifindex = if_nametoindex(p.m_alias.c_str());
2241
- if (p.m_ifindex == 0)
2242
- {
2243
- SWSS_LOG_ERROR("Failed to get netdev index alias:%s", p.m_alias.c_str());
2244
- return false;
2245
- }
2246
- #endif
2247
-
2248
2238
/* Check warm start states */
2249
2239
vector<FieldValueTuple> tuples;
2250
2240
bool exist = m_portTable->get (p.m_alias , tuples);
You can’t perform that action at this time.
0 commit comments