-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
topotests: bgp_vpnv4_noretain, check presence of locpref in adj-rib-out
Add a test that check that the detailed command of show bgp advertised neighbors 10.125.0.2 displays the locpref value. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
1 parent
c620272
commit b7fd45c
Showing
2 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
105 changes: 105 additions & 0 deletions
105
tests/topotests/bgp_vpnv4_noretain/r1/ipv4_vpn_routes_advertised_10_125_0_2.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"bgpLocalRouterId":"192.0.2.1", | ||
"defaultLocPrf":100, | ||
"localAS":65500, | ||
"advertisedRoutes":{ | ||
"192.0.2.1:1":{ | ||
"rd":"192.0.2.1:1", | ||
"10.101.0.0/24":{ | ||
"prefix":"10.101.0.0/24", | ||
"advertisedTo":{ | ||
"10.125.0.2":{ | ||
"hostname":"r2" | ||
} | ||
}, | ||
"paths":[{ | ||
"aspath":{ | ||
"string":"Local", | ||
"segments":[], | ||
"length":0 | ||
}, | ||
"nhVrfName":"vrf1", | ||
"announceNexthopSelf":true, | ||
"origin":"incomplete", | ||
"metric":0, | ||
"locPrf":100, | ||
"weight":32768, | ||
"valid":true, | ||
"sourced":true, | ||
"local":true, | ||
"bestpath":{ | ||
"overall":true, | ||
"selectionReason":"First path received" | ||
}, | ||
"extendedCommunity":{ | ||
"string":"RT:192.0.2.1:100" | ||
}, | ||
"originatorId":"192.0.2.1", | ||
"remoteLabel":101, | ||
"nexthops":[{ | ||
"ip":"0.0.0.0", | ||
"hostname":"r1", | ||
"afi":"ipv4", | ||
"metric":0, | ||
"accessible":true, | ||
"used":true | ||
}], | ||
"peer":{ | ||
"peerId":"0.0.0.0", | ||
"routerId":"192.0.2.1" | ||
} | ||
}] | ||
} | ||
}, | ||
"192.0.2.1:3":{ | ||
"rd":"192.0.2.1:3", | ||
"10.103.0.0/24":{ | ||
"prefix":"10.103.0.0/24", | ||
"advertisedTo":{ | ||
"10.125.0.2":{ | ||
"hostname":"r2" | ||
} | ||
}, | ||
"paths":[{ | ||
"aspath":{ | ||
"string":"Local", | ||
"segments":[], | ||
"length":0 | ||
}, | ||
"nhVrfName":"vrf3", | ||
"announceNexthopSelf":true, | ||
"origin":"incomplete", | ||
"metric":0, | ||
"locPrf":100, | ||
"weight":32768, | ||
"valid":true, | ||
"sourced":true, | ||
"local":true, | ||
"bestpath":{ | ||
"overall":true, | ||
"selectionReason":"First path received" | ||
}, | ||
"extendedCommunity":{ | ||
"string":"RT:192.0.2.1:300" | ||
}, | ||
"originatorId":"192.0.2.1", | ||
"remoteLabel":103, | ||
"nexthops":[{ | ||
"ip":"0.0.0.0", | ||
"hostname":"r1", | ||
"afi":"ipv4", | ||
"metric":0, | ||
"accessible":true, | ||
"used":true | ||
}], | ||
"peer":{ | ||
"peerId":"0.0.0.0", | ||
"routerId":"192.0.2.1" | ||
} | ||
}] | ||
} | ||
} | ||
}, | ||
"totalPrefixCounter":2, | ||
"filteredPrefixCounter":0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters