Skip to content
New issue

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

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

Already on GitHub? # to your account

show [ip|ipv6] interfaces cmds #194

Merged
merged 19 commits into from
Dec 16, 2018
Merged

Conversation

nikos-github
Copy link
Contributor

@nikos-github nikos-github commented Jan 27, 2018

We have a requirement for show [ip|ipv6] interfaces cmds which will display all IP addresses from all scopes of all interfaces along with admin/oper states, which is similar to existing vendor output.

Change depends on sonic-net/sonic-buildimage#1353

Output of commands is below. Unfortunately the PR editor is not displaying the alignment properly.

root@lnos-x1-a-asw01:/home/admin# show ip int
Interface    IPv4 address/mask    Admin/Oper
-----------  -------------------  ------------
Ethernet0    10.0.0.0/31          up/down
Ethernet4    10.0.0.2/31          up/down
Ethernet8    10.0.0.4/31          up/down
Ethernet12   10.0.0.6/31          up/down
Ethernet16   10.0.0.8/31          up/down
Ethernet20   10.0.0.10/31         up/down
Ethernet24   10.0.0.12/31         up/down
Ethernet28   10.0.0.14/31         up/down
Ethernet32   10.0.0.16/31         up/down
Ethernet36   10.0.0.18/31         up/down
Ethernet40   10.0.0.20/31         up/down
Ethernet44   10.0.0.22/31         up/down
Ethernet48   10.0.0.24/31         up/down
Ethernet52   10.0.0.26/31         up/down
Ethernet56   10.0.0.28/31         up/down
Ethernet60   10.0.0.30/31         up/down
Ethernet64   10.0.0.32/31         up/down
Ethernet68   10.0.0.34/31         up/down
Ethernet72   10.0.0.36/31         up/down
Ethernet76   10.0.0.38/31         up/down
Ethernet80   10.0.0.40/31         up/down
Ethernet84   10.0.0.42/31         up/down
Ethernet88   10.0.0.44/31         up/down
Ethernet92   10.0.0.46/31         up/down
Ethernet96   10.0.0.48/31         up/down
Ethernet100  10.0.0.50/31         up/down
Ethernet104  10.0.0.52/31         up/down
Ethernet108  10.0.0.54/31         up/down
Ethernet112  10.0.0.56/31         up/down
Ethernet116  10.0.0.58/31         up/down
Ethernet120  10.0.0.60/31         up/down
Ethernet124  10.0.0.62/31         up/up
docker0      240.127.1.1/24       up/down
eth0         172.25.11.43/24      up/up
lo           127.0.0.1/8          up/up
             10.1.0.32/32
root@lnos-x1-a-asw01:/home/admin# show ipv6 int
Interface    IPv6 address/mask                       Admin/Oper
-----------  --------------------------------------  ------------
Bridge       fe80::705b:cfff:fee9:c4d%Bridge/64      up/up
Ethernet124  fe80::2e0:ecff:fe3c:a0a%Ethernet124/64  up/up
eth0         fe80::2e0:ecff:fe3c:a0a%eth0/64         up/up
lo           ::1/128                                 up/up`

@nikos-github
Copy link
Contributor Author

@jleveque Comments addressed.

@jleveque
Copy link
Contributor

Merge pending on sonic-net/sonic-buildimage#1353

@lguohan
Copy link
Contributor

lguohan commented Dec 15, 2018

retest this please

@lguohan lguohan merged commit 6d3114a into sonic-net:master Dec 16, 2018
@nikos-github nikos-github deleted the showip branch December 17, 2018 04:10
vdahiya12 pushed a commit to vdahiya12/sonic-utilities that referenced this pull request Jul 23, 2021
…t#194)

The Python 3 version of sonic-config-engine now depends on sonic-yang-mgmt and sonic-yang-models, so we now need to install them as part of continuous integration to get the CI working again
mihirpat1 pushed a commit to mihirpat1/sonic-utilities that referenced this pull request Sep 15, 2023
…tus (sonic-net#194)

Add common definitions for getting SFP error status

- Platform API definition: `get_sfp_status`
- Related constant definitions

Signed-off-by: Stephen Sun <stephens@nvidia.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants