Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed 'show ip route' command: ipv6 -> ipv4. #179

Open
wants to merge 22 commits into
base: 201709
Choose a base branch
from

Conversation

nazarii-gnydyn
Copy link

- What I did
Fixed 'show ip route' command: ipv6 -> ipv4.

- How I did it

@ip.command()
@click.argument('ipaddress', required=False)
def route(ipaddress):
    """Show IPv6 routing table"""

@ipv6.command()
@click.argument('ipaddress', required=False)
def route(ipaddress):
    """Show IPv6 routing table"""

- How to verify it

admin@sonic:~$ show ip route
Command: sudo vtysh -c "show ip route"
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel,
       > - selected route, * - FIB route

K>* 0.0.0.0/0 via 10.7.0.1, eth0
C>* 10.1.1.0/24 is directly connected, Ethernet101
C>* 10.2.2.0/24 is directly connected, Ethernet102
C>* 10.3.3.0/24 is directly connected, Ethernet103
C>* 10.4.4.0/24 is directly connected, Ethernet104
C>* 10.7.0.0/22 is directly connected, eth0
C>* 101.101.101.0/24 is directly connected, lo
C>* 127.0.0.0/8 is directly connected, lo
C>* 240.127.1.0/24 is directly connected, docker0

- Previous command output (if the output of a command-line utility has changed)

admin@sonic:~$ show ip route
Command: sudo vtysh -c "show ipv6 route"
Codes: K - kernel route, C - connected, S - static, R - RIPng,
       O - OSPFv6, I - IS-IS, B - BGP, A - Babel,
       > - selected route, * - FIB route

C>* ::1/128 is directly connected, lo
C * fe80::/64 is directly connected, Ethernet101
C * fe80::/64 is directly connected, Ethernet103
C * fe80::/64 is directly connected, Ethernet102
C * fe80::/64 is directly connected, Ethernet104
C>* fe80::/64 is directly connected, eth0

- New command output (if the output of a command-line utility has changed)

admin@sonic:~$ show ip route
Command: sudo vtysh -c "show ip route"
Codes: K - kernel route, C - connected, S - static, R - RIP,
       O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel,
       > - selected route, * - FIB route

K>* 0.0.0.0/0 via 10.7.0.1, eth0
C>* 10.1.1.0/24 is directly connected, Ethernet101
C>* 10.2.2.0/24 is directly connected, Ethernet102
C>* 10.3.3.0/24 is directly connected, Ethernet103
C>* 10.4.4.0/24 is directly connected, Ethernet104
C>* 10.7.0.0/22 is directly connected, eth0
C>* 101.101.101.0/24 is directly connected, lo
C>* 127.0.0.0/8 is directly connected, lo
C>* 240.127.1.0/24 is directly connected, docker0

pavel-shirshov and others added 22 commits August 14, 2017 15:45
This sparse file is HUGE and without ignoring this file, it will take
forever to gzip this file and ultimately causing the script to hang.
…licate commands ('bgp,' 'route') from under root group (sonic-net#102)
* CLI support to show MAC/FDB entries learnt in Hardware
* Updated to use common library API to get bridge port mapping
* Rearranged imports
* Addressed review comments, check-logic modified
* Show command hookup added
sonic-net#113)

- added script to get interface status.
- added few subcommands under "show interfaces" command.
- enhanced "show process" to get all processes sorted by CPU & memory.
- added "show services" command to get all the running process from all the dockers.
- added "show vlan" command.
- enhanced multiple subcommands under
- added debug', and 'undebug' CLI utilities.
* Flush DB first when loading from minigraph and add a config reload command to flush db and reload from json.
* [show]: Remove default groups; add missing docstrings

* Copy all bash completion files by glob
Fixed parser logic to handle non mandatory TLV.
@stcheng
Copy link
Contributor

stcheng commented Jan 3, 2018

it seems that the pull request includes more than needed.

@nazarii-gnydyn
Copy link
Author

nazarii-gnydyn commented Jan 4, 2018

@stcheng This is because #176 is not merged yet.
This is done in scope of our previous conversation here: sonic-net/sonic-buildimage#1199.

vdahiya12 pushed a commit to vdahiya12/sonic-utilities that referenced this pull request Jul 23, 2021
Added "hardware revision" field to list of platform fields to sync to STATE_DB for the PSU. Also updated relevant unit tests. 

Now that hardware revision exists as a platform 2.0 field for all devices, it is appropriate to synchronize this field to STATE_DB for PSUs as is done with all other fields. This will allow this field to be exposed to CLI tools through psushow in the future which reads state from STATE_DB.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants