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

Vtysh support for multi asic #5479

Merged
merged 1 commit into from
Sep 29, 2020
Merged

Vtysh support for multi asic #5479

merged 1 commit into from
Sep 29, 2020

Conversation

arlakshm
Copy link
Contributor

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan arlakshm@microsoft.com

- Why I did it
Add the option -n to specify the bgp container running in a namespace.

- How I did it
Update the vtysh script with new option -n <namespace_id>
This option is no applicable for single asic.

- How to verify it

admin@str-acs-2:~/arlakshm$ vtysh
Usage: /usr/bin/vtysh -n [0 to 5] [OPTION]... 
admin@str-acs-2:~/arlakshm$ vtysh -n 0 -c "show ip bgp summary"

IPv4 Unicast Summary:
BGP router identifier 8.0.0.0, local AS number 65100 vrf-id 0
BGP table version 12826
RIB entries 12833, using 2306 KiB of memory
Peers 4, using 82 KiB of memory
Peer groups 4, using 256 bytes of memory

Neighbor        V         AS MsgRcvd MsgSent   TblVer  InQ OutQ  Up/Down State/PfxRcd
10.0.0.1        4      65200   81661   82715        0    0    0 2d17h22m         6402
10.0.0.5        4      65200   81664   82714        0    0    0 2d17h22m         6402
10.1.0.0        4      65100    6414    3325        0    0    0 2d17h22m         6417
10.1.0.2        4      65100    4056    3211        0    0    0 2d17h22m         6417

Total number of neighbors 4
admin@str-acs-2:~/arlakshm$ 

- Which release branch to backport (provide reason below if selected)

  • 201811
  • [X ] 201911
  • [ X] 202006

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
@abdosi
Copy link
Contributor

abdosi commented Sep 29, 2020

retest this please

@abdosi abdosi merged commit e3a0fea into sonic-net:master Sep 29, 2020
arlakshm added a commit to sonic-net/sonic-utilities that referenced this pull request Sep 29, 2020
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>

Modify the run_bgp_command function to call vtysh with correct instance_id and vtysh cmd.
The vtysh script is modified to take the namespace id in this PR sonic-net/sonic-buildimage#5479
abdosi pushed a commit to sonic-net/sonic-utilities that referenced this pull request Sep 29, 2020
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>

Modify the run_bgp_command function to call vtysh with correct instance_id and vtysh cmd.
The vtysh script is modified to take the namespace id in this PR sonic-net/sonic-buildimage#5479
abdosi pushed a commit that referenced this pull request Sep 29, 2020
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
santhosh-kt pushed a commit to santhosh-kt/sonic-buildimage that referenced this pull request Feb 25, 2021
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>
malletvapid23 added a commit to malletvapid23/Sonic-Utility that referenced this pull request Aug 3, 2023
Signed-off-by: Arvindsrinivasan Lakshmi Narasimhan <arlakshm@microsoft.com>

Modify the run_bgp_command function to call vtysh with correct instance_id and vtysh cmd.
The vtysh script is modified to take the namespace id in this PR sonic-net/sonic-buildimage#5479
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants