Skip to content

Commit 48e0e1b

Browse files
vasant17jleveque
authored andcommitted
Changing "show runningconfiguration interface" to "show runningconfiguration ports" (sonic-net#600)
Signed-off-by: Vasant Patil <[email protected]>
1 parent 81fe2bd commit 48e0e1b

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

doc/Command-Reference.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2958,7 +2958,7 @@ This sub-section explains the show commands for displaying the running configura
29582958
4) snmp
29592959
5) all
29602960
6) acl
2961-
7) interface
2961+
7) ports
29622962

29632963
**show runningconfiguration all**
29642964

@@ -3038,21 +3038,21 @@ This command displays the running configuration of the snmp module.
30383038
admin@sonic:~$ show runningconfiguration acl
30393039
```
30403040

3041-
**show runningconfiguration interface <interfacename>**
3041+
**show runningconfiguration ports <portname>**
30423042

30433043
This command displays the running configuration of the ports
30443044

30453045
- Usage:
3046-
show runningconfiguration interface <interfacename>
3046+
show runningconfiguration ports <portname>
30473047

30483048

30493049
- Example:
30503050
```
3051-
admin@sonic:~$ show runningconfiguration interface
3051+
admin@sonic:~$ show runningconfiguration ports
30523052
```
30533053

30543054
```
3055-
admin@sonic:~$ show runningconfiguration interface <interfacename>
3055+
admin@sonic:~$ show runningconfiguration ports <portname>
30563056
```
30573057

30583058
Go Back To [Beginning of the document](#SONiC-COMMAND-LINE-INTERFACE-GUIDE) or [Beginning of this section](#Startup--Running-Configuration)

show/main.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1420,16 +1420,16 @@ def acl(verbose):
14201420
run_command(cmd, display_cmd=verbose)
14211421

14221422

1423-
# 'interface' subcommand ("show runningconfiguration interface <interfacename>")
1423+
# 'ports' subcommand ("show runningconfiguration ports <portname>")
14241424
@runningconfiguration.command()
1425-
@click.argument('interfacename', required=False)
1425+
@click.argument('portname', required=False)
14261426
@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"""
14291429
cmd = "sonic-cfggen -d --var-json PORT"
14301430

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)
14331433

14341434
run_command(cmd, display_cmd=verbose)
14351435

0 commit comments

Comments
 (0)