Skip to content

Commit e03edb6

Browse files
Allow interface type value none (sonic-net#1991)
*Allow user to set none value for interface type
1 parent 71b9650 commit e03edb6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

orchagent/portsorch.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ static map<string, sai_port_interface_type_t> interface_type_map =
128128
// Interface type map used for auto negotiation
129129
static map<string, sai_port_interface_type_t> interface_type_map_for_an =
130130
{
131+
{ "none", SAI_PORT_INTERFACE_TYPE_NONE },
131132
{ "cr", SAI_PORT_INTERFACE_TYPE_CR },
132133
{ "cr2", SAI_PORT_INTERFACE_TYPE_CR2 },
133134
{ "cr4", SAI_PORT_INTERFACE_TYPE_CR4 },

0 commit comments

Comments
 (0)