Skip to content

Commit 742852d

Browse files
author
Shuotian Cheng
authored
[portsorch]: Remove SAI_PORT_ATTR_BIND_MODE (#262)
This attribute is removed in the SAI master. Port can be part of .1D bridge and VLANs at the same time. Hence bind mode is not necessary.
1 parent e521a35 commit 742852d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

orchagent/portsorch.cpp

-14
Original file line numberDiff line numberDiff line change
@@ -1181,20 +1181,6 @@ bool PortsOrch::addVlanMember(Port vlan, Port port, string& tagging_mode)
11811181
SWSS_LOG_NOTICE("Set untagged port %s VLAN ID to %hu", port.m_alias.c_str(), vlan.m_vlan_id);
11821182
}
11831183

1184-
#if 0
1185-
// Set port bind mode
1186-
sai_attribute_t port_attr;
1187-
port_attr.id = SAI_PORT_ATTR_BIND_MODE;
1188-
port_attr.value.s32 = SAI_PORT_BIND_MODE_PORT;
1189-
status = sai_port_api->set_port_attribute(port.m_port_id, &port_attr);
1190-
if (status != SAI_STATUS_SUCCESS)
1191-
{
1192-
SWSS_LOG_ERROR("Failed to set port pid:%lx bind mode to port: %d",
1193-
port.m_port_id, status);
1194-
return false;
1195-
}
1196-
#endif
1197-
11981184
port.m_vlan_id = vlan.m_vlan_id;
11991185
port.m_port_vlan_id = vlan.m_vlan_id;
12001186
port.m_vlan_member_id = vlan_member_id;

0 commit comments

Comments
 (0)