tests: Enhance BGP Path attribute test cases

1. Added steps to modify BGP path attributes and verify
best path is changed

Signed-off-by: Kuldeep Kashyap <kashyapkas@gmail.com>
This commit is contained in:
Kuldeep Kashyap 2019-10-20 18:38:53 +00:00 committed by Kuldeep Kashyap
parent c7bb8a05ff
commit 4a252f7205
2 changed files with 917 additions and 73 deletions

View File

@ -12,6 +12,17 @@
"r2":{"ipv4":"auto", "ipv6":"auto"},
"r3":{"ipv4":"auto", "ipv6":"auto"}
},
"route_maps": {
"rmap_global": [{
"action": "permit",
"set": {
"ipv6": {
"nexthop": "prefer-global"
}
}
}
]
},
"bgp":{
"local_as":"555",
"address_family": {
@ -19,9 +30,35 @@
"unicast": {
"neighbor": {
"r2": {
"dest_link": {
"r1": {
"route_maps": [{
"name": "rmap_global",
"direction": "in"
}]
}
}
},
"r3": {
"dest_link": {
"r1": {}
}
}
}
}
},
"ipv6": {
"unicast": {
"neighbor": {
"r2": {
"dest_link": {
"r1": {
"route_maps": [{
"name": "rmap_global",
"direction": "in"
}]
}
}
},
"r3": {
"dest_link": {
@ -65,6 +102,27 @@
}
}
}
},
"ipv6": {
"unicast": {
"neighbor": {
"r1": {
"dest_link": {
"r2": {}
}
},
"r3": {
"dest_link": {
"r2": {}
}
},
"r4": {
"dest_link": {
"r2-link1": {}
}
}
}
}
}
}
}
@ -99,6 +157,27 @@
}
}
}
},
"ipv6": {
"unicast": {
"neighbor": {
"r1": {
"dest_link": {
"r3": {}
}
},
"r2": {
"dest_link": {
"r3": {}
}
},
"r5": {
"dest_link": {
"r3": {}
}
}
}
}
}
}
}
@ -128,6 +207,22 @@
}
}
}
},
"ipv6": {
"unicast": {
"neighbor": {
"r2": {
"dest_link": {
"r4-link1": {}
}
},
"r6": {
"dest_link": {
"r4": {}
}
}
}
}
}
}
}
@ -156,6 +251,22 @@
}
}
}
},
"ipv6": {
"unicast": {
"neighbor": {
"r3": {
"dest_link": {
"r5": {}
}
},
"r7": {
"dest_link": {
"r5": {}
}
}
}
}
}
}
}
@ -184,6 +295,22 @@
}
}
}
},
"ipv6": {
"unicast": {
"neighbor": {
"r4": {
"dest_link": {
"r6": {}
}
},
"r7": {
"dest_link": {
"r6": {}
}
}
}
}
}
}
}
@ -212,6 +339,22 @@
}
}
}
},
"ipv6": {
"unicast": {
"neighbor": {
"r5": {
"dest_link": {
"r7": {}
}
},
"r6": {
"dest_link": {
"r7": {}
}
}
}
}
}
}
}