From 3a8807e72fa23470bda8f005ab41ee09802718c2 Mon Sep 17 00:00:00 2001 From: Junchao-Mellanox <57339448+Junchao-Mellanox@users.noreply.github.com> Date: Sat, 6 Nov 2021 10:09:14 +0800 Subject: [PATCH] Allow interface type value none (#9098) This PR allow user to set none value to interface type. So there is a way to achieve the goal via CLI: config interface type XXX none config interface speed XXX 10000 config interface type XXX CR --- src/sonic-yang-models/yang-models/sonic-types.yang | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/sonic-yang-models/yang-models/sonic-types.yang b/src/sonic-yang-models/yang-models/sonic-types.yang index 1e5d6dc29d..10ef8ca8d5 100644 --- a/src/sonic-yang-models/yang-models/sonic-types.yang +++ b/src/sonic-yang-models/yang-models/sonic-types.yang @@ -129,7 +129,7 @@ module sonic-types { enum UDP; } } - + typedef interface_type { type enumeration { enum CR; @@ -151,6 +151,7 @@ module sonic-types { enum XAUI; enum XFI; enum XGMII; + enum none; } } @@ -162,7 +163,7 @@ module sonic-types { typedef meter_type { type enumeration { - enum packets; + enum packets; enum bytes; } } @@ -178,5 +179,5 @@ module sonic-types { enum deny; enum transit; } - } + } }