File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -2958,7 +2958,7 @@ This sub-section explains the show commands for displaying the running configura
2958
2958
4 ) snmp
2959
2959
5 ) all
2960
2960
6 ) acl
2961
- 7 ) interface
2961
+ 7 ) ports
2962
2962
2963
2963
** show runningconfiguration all**
2964
2964
@@ -3038,21 +3038,21 @@ This command displays the running configuration of the snmp module.
3038
3038
admin@sonic:~$ show runningconfiguration acl
3039
3039
```
3040
3040
3041
- ** show runningconfiguration interface < interfacename >**
3041
+ ** show runningconfiguration ports < portname >**
3042
3042
3043
3043
This command displays the running configuration of the ports
3044
3044
3045
3045
- Usage:
3046
- show runningconfiguration interface < interfacename >
3046
+ show runningconfiguration ports < portname >
3047
3047
3048
3048
3049
3049
- Example:
3050
3050
```
3051
- admin@sonic:~$ show runningconfiguration interface
3051
+ admin@sonic:~$ show runningconfiguration ports
3052
3052
```
3053
3053
3054
3054
```
3055
- admin@sonic:~$ show runningconfiguration interface <interfacename >
3055
+ admin@sonic:~$ show runningconfiguration ports <portname >
3056
3056
```
3057
3057
3058
3058
Go Back To [ Beginning of the document] ( #SONiC-COMMAND-LINE-INTERFACE-GUIDE ) or [ Beginning of this section] ( #Startup--Running-Configuration )
Original file line number Diff line number Diff line change @@ -1420,16 +1420,16 @@ def acl(verbose):
1420
1420
run_command (cmd , display_cmd = verbose )
1421
1421
1422
1422
1423
- # 'interface ' subcommand ("show runningconfiguration interface <interfacename >")
1423
+ # 'ports ' subcommand ("show runningconfiguration ports <portname >")
1424
1424
@runningconfiguration .command ()
1425
- @click .argument ('interfacename ' , required = False )
1425
+ @click .argument ('portname ' , required = False )
1426
1426
@click .option ('--verbose' , is_flag = True , help = "Enable verbose output" )
1427
- def interface (interfacename , verbose ):
1428
- """Show port running configuration"""
1427
+ def ports (interfacename , verbose ):
1428
+ """Show ports running configuration"""
1429
1429
cmd = "sonic-cfggen -d --var-json PORT"
1430
1430
1431
- if interfacename is not None :
1432
- cmd += " {0} {1}" .format ("--interface " , interfacename )
1431
+ if portname is not None :
1432
+ cmd += " {0} {1}" .format ("--port " , portname )
1433
1433
1434
1434
run_command (cmd , display_cmd = verbose )
1435
1435
You can’t perform that action at this time.
0 commit comments