Skip to content

Commit 8bc3c49

Browse files
Vasanthm, RaviGitHub Enterprise
authored andcommitted
Added missing supported speeds (50GIGE/400GIGE) in CLI (#134)
1 parent 7d05466 commit 8bc3c49

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

CLI/actioner/sonic_cli_if.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ def invoke_api(func, args=[]):
343343
"10GIGE": "SPEED_10GB",
344344
"25GIGE": "SPEED_25GB",
345345
"40GIGE": "SPEED_40GB",
346+
"50GIGE": "SPEED_50GB",
346347
"100GIGE": "SPEED_100GB",
347348
"400GIGE": "SPEED_400GB",
348349
}

CLI/actioner/sonic_cli_if_range.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ def generate_body(func, args=[]):
325325
"10GIGE": "SPEED_10GB",
326326
"25GIGE": "SPEED_25GB",
327327
"40GIGE": "SPEED_40GB",
328+
"50GIGE": "SPEED_50GB",
328329
"100GIGE": "SPEED_100GB",
330+
"400GIGE": "SPEED_400GB",
329331
"SPEED_UNKNOWN": "SPEED_UNKNOWN",
330332
}
331333
if args[1] not in list(speed_map.keys()):

CLI/clitree/cli-xml/sonic_types.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ limitations under the License.
847847
<PTYPE
848848
name="INTF_SPEED"
849849
method="select"
850-
pattern="10(10MBPS) 100(100MBPS) 1000(1GIGE) 10000(10GIGE) 25000(25GIGE) 40000(40GIGE) 100000(100GIGE) 400000(400GIGE)"
850+
pattern="10(10MBPS) 100(100MBPS) 1000(1GIGE) 10000(10GIGE) 25000(25GIGE) 40000(40GIGE) 50000(50GIGE) 100000(100GIGE) 400000(400GIGE)"
851851
help="Port speed"
852852
/>
853853
<!--=======================================================-->

0 commit comments

Comments
 (0)