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

Updates to bgp config and show commands with BGP_INTERNAL_NEIGHBOR table #1224

Merged
merged 3 commits into from
Nov 13, 2020

Conversation

judyjoseph
Copy link
Contributor

@judyjoseph judyjoseph commented Nov 8, 2020

- What I did
Updates to bgp config and show commands with the movement of internal bgp sessions to a new table BGP_INTERNAL_NEIGHBOR table.
With the introduction of BGP_INERNAL_NEIGHBOR table, the user cannot start/stop/remove internal neighbors which I feel is not needed as these internal bgp sessions which are supposed to be UP allways.

- How I did it
Updated the show/bgp util so that it gets the internal bgp sessions from BGP_INTERNAL_NEIGHBOR table.
Removed the API's to get the local_as in config/bgp which is not required now.

- How to verify it
Made sure that the output remain same with the new internal bgp neighbor table.


admin@:~$ show ip bgp summary  

IPv4 Unicast Summary:
asic0: BGP router identifier 10.0.107.16, local AS number 65100 vrf-id 0
BGP table version 21
asic1: BGP router identifier 10.0.107.17, local AS number 65100 vrf-id 0
BGP table version 24
asic2: BGP router identifier 10.0.107.18, local AS number 65100 vrf-id 0
BGP table version 21
asic3: BGP router identifier 10.0.107.19, local AS number 65100 vrf-id 0
BGP table version 24
RIB entries 116, using 21344 bytes of memory
Peers 32, using 669440 KiB of memory
Peer groups 16, using 1024 bytes of memory


Neighbhor       V     AS    MsgRcvd    MsgSent    TblVer    InQ    OutQ  Up/Down    State/PfxRcd    NeighborName
------------  ---  -----  ---------  ---------  --------  -----  ------  ---------  --------------  --------------
10.10.192.33    4  64001          0          0         0      0       0  never      Idle (Admin)    ARISTA01T0
10.10.192.35    4  64002          0          0         0      0       0  never      Idle (Admin)    ARISTA02T0
10.10.192.37    4  64003          0          0         0      0       0  never      Idle (Admin)    ARISTA03T0
10.10.192.39    4  64004          0          0         0      0       0  never      Idle (Admin)    ARISTA04T0
10.10.192.41    4  64005          0          0         0      0       0  never      Idle (Admin)    ARISTA05T0
10.10.192.43    4  64006          0          0         0      0       0  never      Idle (Admin)    ARISTA06T0
10.10.192.45    4  64007          0          0         0      0       0  never      Idle (Admin)    ARISTA07T0
10.10.192.47    4  64008          0          0         0      0       0  never      Idle (Admin)    ARISTA08T0
10.10.192.49    4  64009          0          0         0      0       0  never      Idle (Admin)    ARISTA09T0
10.10.192.51    4  64010          0          0         0      0       0  never      Idle (Admin)    ARISTA10T0
10.10.192.53    4  64011          0          0         0      0       0  never      Idle (Admin)    ARISTA11T0
10.10.192.55    4  64012          0          0         0      0       0  never      Idle (Admin)    ARISTA12T0
10.10.192.57    4  64013          0          0         0      0       0  never      Idle (Admin)    ARISTA13T0
10.10.192.59    4  64014          0          0         0      0       0  never      Idle (Admin)    ARISTA14T0
10.10.192.61    4  64015          0          0         0      0       0  never      Idle (Admin)    ARISTA15T0
10.10.192.63    4  64016          0          0         0      0       0  never      Idle (Admin)    ARISTA16T0
10.10.192.65    4  64017          0          0         0      0       0  never      Idle (Admin)    ARISTA17T0
10.10.192.67    4  64018          0          0         0      0       0  never      Idle (Admin)    ARISTA18T0
10.10.192.69    4  64019          0          0         0      0       0  never      Idle (Admin)    ARISTA19T0
10.10.192.71    4  64020          0          0         0      0       0  never      Idle (Admin)    ARISTA20T0
10.106.0.1      4  65200          0          0         0      0       0  never      Idle (Admin)    ARISTA01T2
10.106.0.5      4  65200          0          0         0      0       0  never      Idle (Admin)    ARISTA03T2
10.106.0.9      4  65200          0          0         0      0       0  never      Idle (Admin)    ARISTA05T2
10.106.0.13     4  65200          0          0         0      0       0  never      Idle (Admin)    ARISTA07T2

Total number of neighbors 24

admin@:~$ show ip bgp summary -d all

IPv4 Unicast Summary:
asic0: BGP router identifier 10.0.107.16, local AS number 65100 vrf-id 0
BGP table version 21
asic1: BGP router identifier 10.0.107.17, local AS number 65100 vrf-id 0
BGP table version 24
asic2: BGP router identifier 10.0.107.18, local AS number 65100 vrf-id 0
BGP table version 21
asic3: BGP router identifier 10.0.107.19, local AS number 65100 vrf-id 0
BGP table version 24
RIB entries 170, using 31280 bytes of memory
Peers 40, using 836800 KiB of memory
Peer groups 20, using 1280 bytes of memory


Neighbhor       V     AS    MsgRcvd    MsgSent    TblVer    InQ    OutQ  Up/Down    State/PfxRcd    NeighborName
------------  ---  -----  ---------  ---------  --------  -----  ------  ---------  --------------  --------------
10.0.107.1      4  65100         16         22         0      0       0  00:09:02   4               ASIC0
10.0.107.3      4  65100         16         22         0      0       0  00:09:18   4               ASIC0
10.0.107.5      4  65100         16         18         0      0       0  00:09:00   4               ASIC1
10.0.107.7      4  65100         16         22         0      0       0  00:09:17   4               ASIC1
10.0.107.9      4  65100         21         23         0      0       0  00:10:59   4               ASIC2
10.0.107.11     4  65100         16         20         0      0       0  00:09:03   4               ASIC2
10.0.107.13     4  65100         16         22         0      0       0  00:09:02   4               ASIC3
10.0.107.15     4  65100         16         20         0      0       0  00:09:04   4               ASIC3
10.10.192.33    4  64001          0          0         0      0       0  never      Idle (Admin)    ARISTA01T0
10.10.192.35    4  64002          0          0         0      0       0  never      Idle (Admin)    ARISTA02T0
10.10.192.37    4  64003          0          0         0      0       0  never      Idle (Admin)    ARISTA03T0
10.10.192.39    4  64004          0          0         0      0       0  never      Idle (Admin)    ARISTA04T0
10.10.192.41    4  64005          0          0         0      0       0  never      Idle (Admin)    ARISTA05T0
10.10.192.43    4  64006          0          0         0      0       0  never      Idle (Admin)    ARISTA06T0
10.10.192.45    4  64007          0          0         0      0       0  never      Idle (Admin)    ARISTA07T0
10.10.192.47    4  64008          0          0         0      0       0  never      Idle (Admin)    ARISTA08T0
10.10.192.49    4  64009          0          0         0      0       0  never      Idle (Admin)    ARISTA09T0
10.10.192.51    4  64010          0          0         0      0       0  never      Idle (Admin)    ARISTA10T0
10.10.192.53    4  64011          0          0         0      0       0  never      Idle (Admin)    ARISTA11T0
10.10.192.55    4  64012          0          0         0      0       0  never      Idle (Admin)    ARISTA12T0
10.10.192.57    4  64013          0          0         0      0       0  never      Idle (Admin)    ARISTA13T0
10.10.192.59    4  64014          0          0         0      0       0  never      Idle (Admin)    ARISTA14T0
10.10.192.61    4  64015          0          0         0      0       0  never      Idle (Admin)    ARISTA15T0
10.10.192.63    4  64016          0          0         0      0       0  never      Idle (Admin)    ARISTA16T0
10.10.192.65    4  64017          0          0         0      0       0  never      Idle (Admin)    ARISTA17T0
10.10.192.67    4  64018          0          0         0      0       0  never      Idle (Admin)    ARISTA18T0
10.10.192.69    4  64019          0          0         0      0       0  never      Idle (Admin)    ARISTA19T0
10.10.192.71    4  64020          0          0         0      0       0  never      Idle (Admin)    ARISTA20T0
10.106.0.1      4  65200          0          0         0      0       0  never      Idle (Admin)    ARISTA01T2
10.106.0.5      4  65200          0          0         0      0       0  never      Idle (Admin)    ARISTA03T2
10.106.0.9      4  65200          0          0         0      0       0  never      Idle (Admin)    ARISTA05T2
10.106.0.13     4  65200          0          0         0      0       0  never      Idle (Admin)    ARISTA07T2

admin@:/$ sudo ip netns exec asic* show ip interfaces

Interface        Master    IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
---------------  --------  -------------------  ------------  --------------  -------------
Loopback0                  172.16.132.64/32     up/up         N/A             N/A
Loopback4096               10.0.107.21/32       up/up         N/A             N/A
PortChannel4013            10.0.107.2/31        up/up         ASIC0           10.0.107.3
PortChannel4014            10.0.107.6/31        up/up         ASIC1           10.0.107.7
PortChannel4015            10.0.107.10/31       up/up         ASIC2           10.0.107.11
PortChannel4016            10.0.107.14/31       up/up         ASIC3           10.0.107.15
eth0                       240.127.1.7/24       up/up         N/A             N/A
lo                         127.0.0.1/8          up/up         N/A             N/A

admin@:/$ sudo ip netns exec asic* show ip interfaces

Interface        Master    IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
---------------  --------  -------------------  ------------  --------------  -------------
Loopback0                  172.16.132.64/32     up/up         N/A             N/A
Loopback4096               10.0.107.19/32       up/up         N/A             N/A
PortChannel1015            10.10.192.52/31      up/down       ARISTA11T0      10.10.192.53
PortChannel1016            10.10.192.54/31      up/down       ARISTA12T0      10.10.192.55
PortChannel1017            10.10.192.56/31      up/down       ARISTA13T0      10.10.192.57
PortChannel1018            10.10.192.58/31      up/down       ARISTA14T0      10.10.192.59
PortChannel1019            10.10.192.60/31      up/down       ARISTA15T0      10.10.192.61
PortChannel1020            10.10.192.62/31      up/down       ARISTA16T0      10.10.192.63
PortChannel1021            10.10.192.64/31      up/down       ARISTA17T0      10.10.192.65
PortChannel1022            10.10.192.66/31      up/down       ARISTA18T0      10.10.192.67
PortChannel1023            10.10.192.68/31      up/down       ARISTA19T0      10.10.192.69
PortChannel1024            10.10.192.70/31      up/down       ARISTA20T0      10.10.192.71
PortChannel4007            10.0.107.13/31       up/up         ASIC4           10.0.107.12
PortChannel4008            10.0.107.15/31       up/up         ASIC5           10.0.107.14
eth0                       240.127.1.2/24       up/up         N/A             N/A
lo                         127.0.0.1/8          up/up         N/A             N/A

admin@:~$ sudo config bgp shutdown all
Shutting down BGP session with neighbor 10.0.0.5...
Shutting down BGP session with neighbor fc00::6...
Shutting down BGP session with neighbor 10.0.0.1...
Shutting down BGP session with neighbor fc00::2...
Shutting down BGP session with neighbor fc00::e...
Shutting down BGP session with neighbor 10.0.0.9...
Shutting down BGP session with neighbor fc00::a...
Shutting down BGP session with neighbor 10.0.0.13...
Shutting down BGP session with neighbor fc00::4e...
Shutting down BGP session with neighbor 10.0.0.49...
Shutting down BGP session with neighbor fc00::4a...
Shutting down BGP session with neighbor fc00::5e...
Shutting down BGP session with neighbor 10.0.0.51...
Shutting down BGP session with neighbor 10.0.0.43...
Shutting down BGP session with neighbor 10.0.0.41...
Shutting down BGP session with neighbor fc00::46...
Shutting down BGP session with neighbor 10.0.0.47...
Shutting down BGP session with neighbor 10.0.0.45...
Shutting down BGP session with neighbor fc00::52...
Shutting down BGP session with neighbor 10.0.0.39...
Shutting down BGP session with neighbor fc00::5a...
Shutting down BGP session with neighbor fc00::56...
Shutting down BGP session with neighbor fc00::42...
Shutting down BGP session with neighbor 10.0.0.33...
Shutting down BGP session with neighbor fc00::66...
Shutting down BGP session with neighbor 10.0.0.37...
Shutting down BGP session with neighbor fc00::62...
Shutting down BGP session with neighbor 10.0.0.35...
Shutting down BGP session with neighbor fc00::8a...
Shutting down BGP session with neighbor 10.0.0.59...
Shutting down BGP session with neighbor 10.0.0.57...
Shutting down BGP session with neighbor 10.0.0.63...
Shutting down BGP session with neighbor fc00::8e...
Shutting down BGP session with neighbor 10.0.0.65...
Shutting down BGP session with neighbor 10.0.0.61...
Shutting down BGP session with neighbor fc00::7e...
Shutting down BGP session with neighbor 10.0.0.53...
Shutting down BGP session with neighbor fc00::82...
Shutting down BGP session with neighbor 10.0.0.55...
Shutting down BGP session with neighbor fc00::7a...
Shutting down BGP session with neighbor 10.0.0.71...
Shutting down BGP session with neighbor 10.0.0.67...
Shutting down BGP session with neighbor 10.0.0.69...
Shutting down BGP session with neighbor fc00::6a...
Shutting down BGP session with neighbor fc00::86...
Shutting down BGP session with neighbor fc00::76...
Shutting down BGP session with neighbor fc00::6e...
Shutting down BGP session with neighbor fc00::72...
admin@:~$ show ipv6 bgp summary 

IPv6 Unicast Summary:
asic0: BGP router identifier 8.0.0.0, local AS number 65100 vrf-id 0
BGP table version 23895
asic1: BGP router identifier 8.0.0.1, local AS number 65100 vrf-id 0
BGP table version 41349
asic2: BGP router identifier 8.0.0.2, local AS number 65100 vrf-id 0
BGP table version 23739
asic3: BGP router identifier 8.0.0.3, local AS number 65100 vrf-id 0
BGP table version 23687
RIB entries 382, using 70288 bytes of memory
Peers 32, using 669440 KiB of memory
Peer groups 16, using 1024 bytes of memory


Neighbhor      V     AS    MsgRcvd    MsgSent    TblVer    InQ    OutQ  Up/Down    State/PfxRcd    NeighborName
-----------  ---  -----  ---------  ---------  --------  -----  ------  ---------  --------------  --------------
fc00::2        4  65200       4504       5873         0      0       0  00:00:05   Idle (Admin)    ARISTA01T2
fc00::4a       4  64003       1320       7443         0      0       0  00:00:10   Idle (Admin)    ARISTA03T0
fc00::4e       4  64004       1320       7440         0      0       0  00:00:10   Idle (Admin)    ARISTA04T0
fc00::5a       4  64007       1320       7491         0      0       0  00:00:05   Idle (Admin)    ARISTA07T0
fc00::5e       4  64008       1320       7444         0      0       0  00:00:10   Idle (Admin)    ARISTA08T0
fc00::6        4  65200       4504       5323         0      0       0  00:00:06   Idle (Admin)    ARISTA03T2
fc00::6a       4  64011       1320       5031         0      0       0  00:00:06   Idle (Admin)    ARISTA11T0
fc00::6e       4  64012       1320       5035         0      0       0  00:00:06   Idle (Admin)    ARISTA12T0
fc00::7a       4  64015       1320       5028         0      0       0  00:00:07   Idle (Admin)    ARISTA15T0
fc00::7e       4  64016       1320       4979         0      0       0  00:00:11   Idle (Admin)    ARISTA16T0
fc00::8a       4  64019       1320       4970         0      0       0  00:00:12   Idle (Admin)    ARISTA19T0
fc00::8e       4  64020       1320       4976         0      0       0  00:00:11   Idle (Admin)    ARISTA20T0
fc00::42       4  64001       1320       7493         0      0       0  00:00:05   Idle (Admin)    ARISTA01T0
fc00::46       4  64002       1320       7448         0      0       0  00:00:09   Idle (Admin)    ARISTA02T0
fc00::52       4  64005       1320       7495         0      0       0  00:00:06   Idle (Admin)    ARISTA05T0
fc00::56       4  64006       1320       7498         0      0       0  00:00:05   Idle (Admin)    ARISTA06T0
fc00::62       4  64009       1320       7506         0      0       0  00:00:04   Idle (Admin)    ARISTA09T0
fc00::66       4  64010       1320       7502         0      0       0  00:00:04   Idle (Admin)    ARISTA10T0
fc00::72       4  64013       1320       5038         0      0       0  00:00:05   Idle (Admin)    ARISTA13T0
fc00::76       4  64014       1320       5034         0      0       0  00:00:06   Idle (Admin)    ARISTA14T0
fc00::82       4  64017       1320       5026         0      0       0  00:00:08   Idle (Admin)    ARISTA17T0
fc00::86       4  64018       1320       5032         0      0       0  00:00:06   Idle (Admin)    ARISTA18T0
fc00::a        4  65200       4504       7392         0      0       0  00:00:09   Idle (Admin)    ARISTA05T2
fc00::e        4  65200       4504       6882         0      0       0  00:00:09   Idle (Admin)    ARISTA07T2

Total number of neighbors 24
admin@:~$ show ip bgp summary 

IPv4 Unicast Summary:
asic0: BGP router identifier 8.0.0.0, local AS number 65100 vrf-id 0
BGP table version 34102
asic1: BGP router identifier 8.0.0.1, local AS number 65100 vrf-id 0
BGP table version 34261
asic2: BGP router identifier 8.0.0.2, local AS number 65100 vrf-id 0
BGP table version 24878
asic3: BGP router identifier 8.0.0.3, local AS number 65100 vrf-id 0
BGP table version 25777
RIB entries 308, using 56672 bytes of memory
Peers 32, using 669440 KiB of memory
Peer groups 16, using 1024 bytes of memory


Neighbhor      V     AS    MsgRcvd    MsgSent    TblVer    InQ    OutQ  Up/Down    State/PfxRcd    NeighborName
-----------  ---  -----  ---------  ---------  --------  -----  ------  ---------  --------------  --------------
10.0.0.1       4  65200       4504       1359         0      0       0  00:00:18   Idle (Admin)    ARISTA01T2
10.0.0.5       4  65200       4504       1356         0      0       0  00:00:18   Idle (Admin)    ARISTA03T2
10.0.0.9       4  65200       4504       1365         0      0       0  00:00:18   Idle (Admin)    ARISTA05T2
10.0.0.13      4  65200       4504       1370         0      0       0  00:00:17   Idle (Admin)    ARISTA07T2
10.0.0.33      4  64001       1320       7762         0      0       0  00:00:13   Idle (Admin)    ARISTA01T0
10.0.0.35      4  64002       1320       7771         0      0       0  00:00:12   Idle (Admin)    ARISTA02T0
10.0.0.37      4  64003       1321       7767         0      0       0  00:00:13   Idle (Admin)    ARISTA03T0
10.0.0.39      4  64004       1320       7758         0      0       0  00:00:15   Idle (Admin)    ARISTA04T0
10.0.0.41      4  64005       1321       7739         0      0       0  00:00:18   Idle (Admin)    ARISTA05T0
10.0.0.43      4  64006       1320       7737         0      0       0  00:00:18   Idle (Admin)    ARISTA06T0
10.0.0.45      4  64007       1320       7755         0      0       0  00:00:15   Idle (Admin)    ARISTA07T0
10.0.0.47      4  64008       1320       7744         0      0       0  00:00:17   Idle (Admin)    ARISTA08T0
10.0.0.49      4  64009       1320       7730         0      0       0  00:00:19   Idle (Admin)    ARISTA09T0
10.0.0.51      4  64010       1322       7733         0      0       0  00:00:19   Idle (Admin)    ARISTA10T0
10.0.0.53      4  64011       1320       7785         0      0       0  00:00:17   Idle (Admin)    ARISTA11T0
10.0.0.55      4  64012       1320       7838         0      0       0  00:00:15   Idle (Admin)    ARISTA12T0
10.0.0.57      4  64013       1320       7743         0      0       0  00:00:20   Idle (Admin)    ARISTA13T0
10.0.0.59      4  64014       1320       7740         0      0       0  00:00:20   Idle (Admin)    ARISTA14T0
10.0.0.61      4  64015       1320       7751         0      0       0  00:00:19   Idle (Admin)    ARISTA15T0
10.0.0.63      4  64016       1320       7746         0      0       0  00:00:20   Idle (Admin)    ARISTA16T0
10.0.0.65      4  64017       1320       7749         0      0       0  00:00:19   Idle (Admin)    ARISTA17T0
10.0.0.67      4  64018       1320       7843         0      0       0  00:00:15   Idle (Admin)    ARISTA18T0
10.0.0.69      4  64019       1320       7846         0      0       0  00:00:14   Idle (Admin)    ARISTA19T0
10.0.0.71      4  64020       1320       7841         0      0       0  00:00:15   Idle (Admin)    ARISTA20T0

Total number of neighbors 24
admin@:~$ sudo config bgp startup all
Starting up BGP session with neighbor 10.0.0.5...
Starting up BGP session with neighbor fc00::6...
Starting up BGP session with neighbor 10.0.0.1...
Starting up BGP session with neighbor fc00::2...
Starting up BGP session with neighbor fc00::e...
Starting up BGP session with neighbor 10.0.0.9...
Starting up BGP session with neighbor fc00::a...
Starting up BGP session with neighbor 10.0.0.13...
Starting up BGP session with neighbor fc00::4e...
Starting up BGP session with neighbor 10.0.0.49...
Starting up BGP session with neighbor fc00::4a...
Starting up BGP session with neighbor fc00::5e...
Starting up BGP session with neighbor 10.0.0.51...
Starting up BGP session with neighbor 10.0.0.43...
Starting up BGP session with neighbor 10.0.0.41...
Starting up BGP session with neighbor fc00::46...
Starting up BGP session with neighbor 10.0.0.47...
Starting up BGP session with neighbor 10.0.0.45...
Starting up BGP session with neighbor fc00::52...
Starting up BGP session with neighbor 10.0.0.39...
Starting up BGP session with neighbor fc00::5a...
Starting up BGP session with neighbor fc00::56...
Starting up BGP session with neighbor fc00::42...
Starting up BGP session with neighbor 10.0.0.33...
Starting up BGP session with neighbor fc00::66...
Starting up BGP session with neighbor 10.0.0.37...
Starting up BGP session with neighbor fc00::62...
Starting up BGP session with neighbor 10.0.0.35...
Starting up BGP session with neighbor fc00::8a...
Starting up BGP session with neighbor 10.0.0.59...
Starting up BGP session with neighbor 10.0.0.57...
Starting up BGP session with neighbor 10.0.0.63...
Starting up BGP session with neighbor fc00::8e...
Starting up BGP session with neighbor 10.0.0.65...
Starting up BGP session with neighbor 10.0.0.61...
Starting up BGP session with neighbor fc00::7e...
Starting up BGP session with neighbor 10.0.0.53...
Starting up BGP session with neighbor fc00::82...
Starting up BGP session with neighbor 10.0.0.55...
Starting up BGP session with neighbor fc00::7a...
Starting up BGP session with neighbor 10.0.0.71...
Starting up BGP session with neighbor 10.0.0.67...
Starting up BGP session with neighbor 10.0.0.69...
Starting up BGP session with neighbor fc00::6a...
Starting up BGP session with neighbor fc00::86...
Starting up BGP session with neighbor fc00::76...
Starting up BGP session with neighbor fc00::6e...
Starting up BGP session with neighbor fc00::72...

admin:~$ show ip bgp summary 

IPv4 Unicast Summary:
asic0: BGP router identifier 8.0.0.0, local AS number 65100 vrf-id 0
BGP table version 46997
asic1: BGP router identifier 8.0.0.1, local AS number 65100 vrf-id 0
BGP table version 47222
asic2: BGP router identifier 8.0.0.2, local AS number 65100 vrf-id 0
BGP table version 34445
asic3: BGP router identifier 8.0.0.3, local AS number 65100 vrf-id 0
BGP table version 35084
RIB entries 51708, using 9514272 bytes of memory
Peers 32, using 669440 KiB of memory
Peer groups 16, using 1024 bytes of memory


Neighbhor      V     AS    MsgRcvd    MsgSent    TblVer    InQ    OutQ  Up/Down      State/PfxRcd  NeighborName
-----------  ---  -----  ---------  ---------  --------  -----  ------  ---------  --------------  --------------
10.0.0.1       4  65200       7699       1393         0      0       0  00:00:18             6370  ARISTA01T2
10.0.0.5       4  65200       7694       1385         0      0       0  00:00:18             6370  ARISTA03T2
10.0.0.9       4  65200       7694       1392         0      0       0  00:00:18             6370  ARISTA05T2
10.0.0.13      4  65200       7694       1397         0      0       0  00:00:18             6370  ARISTA07T2
10.0.0.33      4  64001       1326      10315         0      0     659  00:00:11               33  ARISTA01T0
10.0.0.35      4  64002       1326       9759         0      0    1224  00:00:08               33  ARISTA02T0
10.0.0.37      4  64003       1328       9830         0      0    1149  00:00:09               34  ARISTA03T0
10.0.0.39      4  64004       1326      10970         0      0       0  00:00:15               33  ARISTA04T0
10.0.0.41      4  64005       1328      11069         0      0       0  00:00:19               34  ARISTA05T0
10.0.0.43      4  64006       1326      11067         0      0       0  00:00:19               33  ARISTA06T0
10.0.0.45      4  64007       1326      11085         0      0       0  00:00:18               33  ARISTA07T0
10.0.0.47      4  64008       1326      11074         0      0       0  00:00:18               33  ARISTA08T0
10.0.0.49      4  64009       1326      11060         0      0       0  00:00:19               33  ARISTA09T0
10.0.0.51      4  64010       1328      11063         0      0       0  00:00:19               33  ARISTA10T0
10.0.0.53      4  64011       1326      11486         0      0       0  00:00:19               33  ARISTA11T0
10.0.0.55      4  64012       1326      11446         0      0       0  00:00:18               33  ARISTA12T0
10.0.0.57      4  64013       1326      11444         0      0       0  00:00:20               33  ARISTA13T0
10.0.0.59      4  64014       1326      11441         0      0       0  00:00:20               33  ARISTA14T0
10.0.0.61      4  64015       1326      11452         0      0       0  00:00:21               33  ARISTA15T0
10.0.0.63      4  64016       1326      11447         0      0       0  00:00:20               33  ARISTA16T0
10.0.0.65      4  64017       1326      11450         0      0       0  00:00:20               33  ARISTA17T0
10.0.0.67      4  64018       1326      11067         0      0       0  00:00:16               33  ARISTA18T0
10.0.0.69      4  64019       1326      10889         0      0     168  00:00:13               33  ARISTA19T0
10.0.0.71      4  64020       1326      11449         0      0       0  00:00:16               33  ARISTA20T0

Total number of neighbors 24
admin@:~$ show ipv6 bgp summary 

IPv6 Unicast Summary:
asic0: BGP router identifier 8.0.0.0, local AS number 65100 vrf-id 0
BGP table version 37050
asic1: BGP router identifier 8.0.0.1, local AS number 65100 vrf-id 0
BGP table version 54234
asic2: BGP router identifier 8.0.0.2, local AS number 65100 vrf-id 0
BGP table version 41098
asic3: BGP router identifier 8.0.0.3, local AS number 65100 vrf-id 0
BGP table version 39026
RIB entries 51700, using 9512800 bytes of memory
Peers 32, using 669440 KiB of memory
Peer groups 16, using 1024 bytes of memory


Neighbhor      V     AS    MsgRcvd    MsgSent    TblVer    InQ    OutQ  Up/Down      State/PfxRcd  NeighborName
-----------  ---  -----  ---------  ---------  --------  -----  ------  ---------  --------------  --------------
fc00::2        4  65200       7694      10477         0      0       0  00:00:29             6370  ARISTA01T2
fc00::4a       4  64003       1326      12223         0      0       0  00:00:30               33  ARISTA03T0
fc00::4e       4  64004       1326      12220         0      0       0  00:00:30               33  ARISTA04T0
fc00::5a       4  64007       1326      10702         0      0       0  00:00:24               33  ARISTA07T0
fc00::5e       4  64008       1326      12224         0      0       0  00:00:30               33  ARISTA08T0
fc00::6        4  65200       7694       9927         0      0       0  00:00:28             6370  ARISTA03T2
fc00::6a       4  64011       1326       8242         0      0       0  00:00:24               33  ARISTA11T0
fc00::6e       4  64012       1326       8246         0      0       0  00:00:21               33  ARISTA12T0
fc00::7a       4  64015       1326       8273         0      0       0  00:00:27               33  ARISTA15T0
fc00::7e       4  64016       1326      10377         0      0       0  00:00:31               33  ARISTA16T0
fc00::8a       4  64019       1326      10368         0      0       0  00:00:31               33  ARISTA19T0
fc00::8e       4  64020       1326      10374         0      0       0  00:00:31               33  ARISTA20T0
fc00::42       4  64001       1326      10704         0      0       0  00:00:23               33  ARISTA01T0
fc00::46       4  64002       1326      12228         0      0       0  00:00:29               33  ARISTA02T0
fc00::52       4  64005       1326      11413         0      0       0  00:00:28               33  ARISTA05T0
fc00::56       4  64006       1326      10709         0      0       0  00:00:23               33  ARISTA06T0
fc00::62       4  64009       1326      10717         0      0       0  00:00:21               33  ARISTA09T0
fc00::66       4  64010       1326      10713         0      0       0  00:00:21               33  ARISTA10T0
fc00::72       4  64013       1326       8250         0      0       0  00:00:21               33  ARISTA13T0
fc00::76       4  64014       1326       8246         0      0       0  00:00:22               33  ARISTA14T0
fc00::82       4  64017       1326      10424         0      0       0  00:00:30               33  ARISTA17T0
fc00::86       4  64018       1326       8243         0      0       0  00:00:22               33  ARISTA18T0
fc00::a        4  65200       7694      11631         0      0       0  00:00:29             6370  ARISTA05T2
fc00::e        4  65200       7694      11121         0      0       0  00:00:30             6370  ARISTA07T2

Total number of neighbors 24

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

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

@pavel-shirshov
Copy link
Contributor

pavel-shirshov commented Nov 9, 2020

@judyjoseph Should we remove the internal sessions from show commands too? I feel it as an implementation details.
If we need to investigate bgp issues with the local sessions in the future , we could use vtysh

@judyjoseph
Copy link
Contributor Author

@judyjoseph Should we remove the internal sessions from show commands too? I feel it as an implementation details.
If we need to investigate bgp issues with the local sessions in the future , we could use vtysh

Yes Pavel, we don't display the internal bgp sessions by default, I have added the o/p of "show ip bgp summary" in the PR description. It will be shown only if user gives the option "-d all" explicitly as the command below.
"show ip bgp summary -d all"

pavel-shirshov
pavel-shirshov previously approved these changes Nov 9, 2020
@judyjoseph
Copy link
Contributor Author

@pavel-shirshov @arlakshm, please take a look. I wanted to update the unit tests as well..

@rlhui
Copy link
Contributor

rlhui commented Nov 14, 2020

@judyjoseph - is this one still needed to be cherry-picked to 201911?

@arlakshm - please review/approve? Thanks.

@abdosi
Copy link
Contributor

abdosi commented Nov 14, 2020

@rlhui already in 201911 via direct pr for 201911

@judyjoseph judyjoseph deleted the bgp_internal_neighbor branch November 15, 2020 03:42
stepanblyschak pushed a commit to stepanblyschak/sonic-utilities that referenced this pull request Apr 28, 2022
c0df635 (HEAD -> 201911, origin/201911) Updates to bgp config and show commands with BGP_INTERNAL_NEIGHBOR table (sonic-net#1224) (sonic-net#1237)
d683bb4 [CLI][show][platform] Added ASIC count in the output. (sonic-net#1185) (sonic-net#1227)
4585be1 [show] Fix 'show int neigh expected' (sonic-net#1189)
29e4469 [201911][fwutil]: Use logger from sonic-py-common (sonic-net#1190)

Signed-off-by: Abhishek Dosi <abdosi@microsoft.com>
StormLiangMS pushed a commit to StormLiangMS/sonic-buildimage that referenced this pull request Jul 18, 2022
Reintroduce the msft templates for multi-asic(3164) after the following sonic public PR's ( for internal BGP neighbors) are available in internal-201911 branch.

sonic-net#5520
sonic-net#5760
sonic-net/sonic-swss-common#389
sonic-net/sonic-utilities#1224

How did I verify
-----------------
1. Verified the external and internal BGP sessions are up, shown correctly in "show ip bgp summary -d all" and show ip interface commands.

2. Ran related 3164 tests to make sure it is passing.

bgp/test_bgp_fact.py::test_bgp_facts[0-0] PASSED                                                                                                           [ 16%]
bgp/test_bgp_fact.py::test_bgp_facts[0-1] PASSED                                                                                                                [ 33%]
bgp/test_bgp_fact.py::test_bgp_facts[0-2] PASSED                                                                                                                [ 50%]
bgp/test_bgp_fact.py::test_bgp_facts[0-3] PASSED                                                                                                                [ 66%]
bgp/test_bgp_fact.py::test_bgp_facts[0-4] PASSED                                                                                                                [ 83%]
bgp/test_bgp_fact.py::test_bgp_facts[0-5] PASSED                                                                                                                [100%]
bgp/test_bgp_multipath_relax.py::test_bgp_multipath_relax[0] PASSED                                                                                             [ 57%]
bgp/test_bgp_multipath_relax.py::test_bgp_multipath_relax[1] PASSED                                                                                             [ 63%]
bgp/test_bgp_multipath_relax.py::test_bgp_multipath_relax[2] SKIPPED                                                                                            [ 68%]
bgp/test_bgp_multipath_relax.py::test_bgp_multipath_relax[3] SKIPPED                                                                                            [ 73%]
bgp/test_bgp_multipath_relax.py::test_bgp_multipath_relax[4] SKIPPED                                                                                            [ 78%]
bgp/test_bgp_multipath_relax.py::test_bgp_multipath_relax[5] SKIPPED                                                                                            [ 84%]
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.

4 participants