Skip to content

Commit

Permalink
Allow interface type value none (sonic-net#1991)
Browse files Browse the repository at this point in the history
*Allow user to set none value for interface type
  • Loading branch information
Junchao-Mellanox authored Nov 4, 2021
1 parent 71b9650 commit e03edb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ static map<string, sai_port_interface_type_t> interface_type_map =
// Interface type map used for auto negotiation
static map<string, sai_port_interface_type_t> interface_type_map_for_an =
{
{ "none", SAI_PORT_INTERFACE_TYPE_NONE },
{ "cr", SAI_PORT_INTERFACE_TYPE_CR },
{ "cr2", SAI_PORT_INTERFACE_TYPE_CR2 },
{ "cr4", SAI_PORT_INTERFACE_TYPE_CR4 },
Expand Down

0 comments on commit e03edb6

Please sign in to comment.