Skip to content

Commit 68dfbfa

Browse files
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 738de2d commit 68dfbfa

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

@@ -167,7 +168,7 @@ module sonic-types {
167168
}
168169
typedef meter_type {
169170
type enumeration {
170-
enum packets;
171+
enum packets;
171172
enum bytes;
172173
}
173174
}
@@ -183,5 +184,5 @@ module sonic-types {
183184
enum deny;
184185
enum transit;
185186
}
186-
}
187+
}
187188
}

0 commit comments

Comments
 (0)