Skip to content

Commit

Permalink
[portsorch]: Create a bridge port with admin status set to UP (sonic-…
Browse files Browse the repository at this point in the history
  • Loading branch information
Shuotian Cheng authored Jul 20, 2017
1 parent 9c2046e commit e521a35
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1025,8 +1025,7 @@ bool PortsOrch::addBridgePort(Port &port)
/* Create a bridge port with admin status set to UP */
attr.id = SAI_BRIDGE_PORT_ATTR_ADMIN_STATE;
attr.value.booldata = true;
// FIXME: Right now this attribute is not supported
// attrs.push_back(attr);
attrs.push_back(attr);

sai_status_t status = sai_bridge_api->create_bridge_port(&port.m_bridge_port_id, gSwitchId, attrs.size(), attrs.data());
if (status != SAI_STATUS_SUCCESS)
Expand Down

0 comments on commit e521a35

Please sign in to comment.