From e03edb6a937356d099fb1d5600fbb0a3f0bf99db Mon Sep 17 00:00:00 2001 From: Junchao-Mellanox <57339448+Junchao-Mellanox@users.noreply.github.com> Date: Thu, 4 Nov 2021 22:14:50 +0800 Subject: [PATCH] Allow interface type value none (#1991) *Allow user to set none value for interface type --- orchagent/portsorch.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/orchagent/portsorch.cpp b/orchagent/portsorch.cpp index 0f6ef956940c..b58670451571 100755 --- a/orchagent/portsorch.cpp +++ b/orchagent/portsorch.cpp @@ -128,6 +128,7 @@ static map interface_type_map = // Interface type map used for auto negotiation static map 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 },