Skip to content

Commit 559be45

Browse files
committed
Use the BGP_INTERNAL_NEIGHBOR table in unit test.
1 parent 41cacc1 commit 559be45

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/bgp_commands_test.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
10.0.0.55 4 64012 0 0 0 0 0 never Active ARISTA12T0
3939
10.0.0.57 4 64013 0 0 0 0 0 never Active ARISTA13T0
4040
10.0.0.59 4 64014 0 0 0 0 0 never Active ARISTA14T0
41-
10.0.0.61 4 64015 0 0 0 0 0 never Active ARISTA15T0
42-
10.0.0.63 4 64016 0 0 0 0 0 never Active ARISTA16T0
41+
10.0.0.61 4 64015 0 0 0 0 0 never Active INT_NEIGH0
42+
10.0.0.63 4 64016 0 0 0 0 0 never Active INT_NEIGH1
4343
4444
Total number of neighbors 24
4545
"""
@@ -78,8 +78,8 @@
7878
fc00::62 4 64009 0 0 0 0 0 never Active ARISTA09T0
7979
fc00::66 4 64010 0 0 0 0 0 never Active ARISTA10T0
8080
fc00::72 4 64013 0 0 0 0 0 never Active ARISTA13T0
81-
fc00::76 4 64014 0 0 0 0 0 never Active ARISTA14T0
82-
fc00::a 4 65200 6665 6671 0 0 0 2d09h38m 6402 ARISTA03T2
81+
fc00::76 4 64014 0 0 0 0 0 never Active INT_NEIGH0
82+
fc00::a 4 65200 6665 6671 0 0 0 2d09h38m 6402 INT_NEIGH1
8383
8484
Total number of neighbors 24
8585
"""

tests/mock_tables/config_db.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -986,21 +986,21 @@
986986
"nhopself": "0",
987987
"rrclient": "0"
988988
},
989-
"BGP_NEIGHBOR|10.0.0.61": {
989+
"BGP_INTERNAL_NEIGHBOR|10.0.0.61": {
990990
"asn": "64015",
991991
"holdtime": "10",
992992
"keepalive": "3",
993993
"local_addr": "10.0.0.60",
994-
"name": "ARISTA15T0",
994+
"name": "INT_NEIGH0",
995995
"nhopself": "0",
996996
"rrclient": "0"
997997
},
998-
"BGP_NEIGHBOR|10.0.0.63": {
998+
"BGP_INTERNAL_NEIGHBOR|10.0.0.63": {
999999
"asn": "64016",
10001000
"holdtime": "10",
10011001
"keepalive": "3",
10021002
"local_addr": "10.0.0.62",
1003-
"name": "ARISTA16T0",
1003+
"name": "INT_NEIGH1",
10041004
"nhopself": "0",
10051005
"rrclient": "0"
10061006
},
@@ -1202,21 +1202,21 @@
12021202
"nhopself": "0",
12031203
"rrclient": "0"
12041204
},
1205-
"BGP_NEIGHBOR|fc00::76": {
1205+
"BGP_INTERNAL_NEIGHBOR|fc00::76": {
12061206
"asn": "64014",
12071207
"holdtime": "10",
12081208
"keepalive": "3",
12091209
"local_addr": "fc00::75",
1210-
"name": "ARISTA14T0",
1210+
"name": "INT_NEIGH0",
12111211
"nhopself": "0",
12121212
"rrclient": "0"
12131213
},
1214-
"BGP_NEIGHBOR|fc00::a": {
1214+
"BGP_INTERNAL_NEIGHBOR|fc00::a": {
12151215
"asn": "65200",
12161216
"holdtime": "10",
12171217
"keepalive": "3",
12181218
"local_addr": "fc00::9",
1219-
"name": "ARISTA03T2",
1219+
"name": "INT_NEIGH1",
12201220
"nhopself": "0",
12211221
"rrclient": "0"
12221222
},

0 commit comments

Comments
 (0)