Skip to content

Commit 3a8807e

Browse files
Junchao-Mellanoxjudyjoseph
authored andcommitted
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
1 parent d627587 commit 3a8807e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sonic-yang-models/yang-models/sonic-types.yang

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ module sonic-types {
129129
enum UDP;
130130
}
131131
}
132-
132+
133133
typedef interface_type {
134134
type enumeration {
135135
enum CR;
@@ -151,6 +151,7 @@ module sonic-types {
151151
enum XAUI;
152152
enum XFI;
153153
enum XGMII;
154+
enum none;
154155
}
155156
}
156157

@@ -162,7 +163,7 @@ module sonic-types {
162163

163164
typedef meter_type {
164165
type enumeration {
165-
enum packets;
166+
enum packets;
166167
enum bytes;
167168
}
168169
}
@@ -178,5 +179,5 @@ module sonic-types {
178179
enum deny;
179180
enum transit;
180181
}
181-
}
182+
}
182183
}

0 commit comments

Comments
 (0)