--- /dev/null
+{
+ "prefix":"198.10.1.1/32",
+ "paths":[
+ {
+ "aspath":{
+ "string":"65303 65354",
+ "segments":[
+ {
+ "type":"as-sequence",
+ "list":[
+ 65303,
+ 65354
+ ]
+ }
+ ],
+ "length":2
+ },
+ "valid":true,
+ "extendedCommunity":{
+ "string":"LB:65303:125000 (1.000 Mbps)"
+ },
+ "nexthops":[
+ {
+ "ip":"11.1.3.2"
+ }
+ ]
+ }
+ ]
+}
no bgp ebgp-requires-policy
neighbor 11.1.3.1 remote-as external
neighbor 11.1.3.1 timers 3 10
+ neighbor 11.1.3.1 disable-link-bw-encoding-ieee
neighbor 11.1.6.2 remote-as external
neighbor 11.1.6.2 timers 3 10
!
r1 = tgen.gears["r1"]
r2 = tgen.gears["r2"]
+ r3 = tgen.gears["r3"]
# Configure anycast IP on additional server r9
logger.info("Configure anycast IP on server r9")
tgen.net["r10"].cmd("ip addr add 198.10.1.1/32 dev r10-eth1")
+ # Check if bandwidth is properly encoded with non IEEE floatig-point (uint32) format on r3
+ logger.info(
+ "Check if bandwidth is properly encoded with non IEEE floatig-point (uint32) format on r3"
+ )
+ json_file = "{}/r3/bgp-route-1.json".format(CWD)
+ expected = json.loads(open(json_file).read())
+ test_func = partial(
+ topotest.router_json_cmp, r3, "show bgp ipv4 uni 198.10.1.1/32 json", expected
+ )
+ _, result = topotest.run_and_expect(test_func, None, count=200, wait=0.5)
+ assertmsg = "JSON output mismatch on r3"
+ assert result is None, assertmsg
+
# Check multipath on super-spine router r1
logger.info("Check multipath on super-spine router r1")
json_file = "{}/r1/bgp-route-2.json".format(CWD)