}]
}
+route_data_ipv4_oper = {
+ "bgp-inet:ipv4-route": [{
+ "route-key": route_address_ipv4,
+ "path-id": route_id_ipv4,
+ "prefix": route_address_ipv4,
+ "attributes": {
+ "origin": {
+ "value": "igp"
+ },
+ "local-pref": {
+ "pref": 100
+ },
+ "ipv4-next-hop": {
+ "global": "192.168.1.1"
+ }
+ }
+ }]
+}
+
# IPv4 route for testing Update operation
route_data_ipv4_update = {
"bgp-inet:ipv4-route": [{
}
}]
}
+route_data_ipv4_update_oper = {
+ "bgp-inet:ipv4-route": [{
+ "route-key": route_address_ipv4,
+ "path-id": route_id_ipv4,
+ "prefix": route_address_ipv4,
+ "attributes": {
+ "origin": {
+ "value": "egp"
+ },
+ "local-pref": {
+ "pref": 200
+ },
+ "ipv4-next-hop": {
+ "global": "192.168.1.2"
+ }
+ }
+ }]
+}
# IPv4 route for testing multiple routes
route_address_ipv4_2 = "192.168.0.6/32"
}]
}
+route_data_ipv4_2_oper = {
+ "bgp-inet:ipv4-route": [{
+ "route-key": route_address_ipv4_2,
+ "path-id": route_id_ipv4_2,
+ "prefix": route_address_ipv4_2,
+ "attributes": {
+ "origin": {
+ "value": "igp"
+ },
+ "local-pref": {
+ "pref": 100
+ },
+ "ipv4-next-hop": {
+ "global": "192.168.1.2"
+ }
+ }
+ }]
+}
+
# IPv6 route for CRUD test
route_address_ipv6 = "3ffe:62::1/64"
route_id_ipv6 = 0
}]
}
+dut1_route_oper = {
+ "bgp-inet:ipv4-route": [{
+ "route-key": dut1_route_address,
+ "path-id": dut1_route_id,
+ "prefix": dut1_route_address,
+ "attributes": {
+ "origin": {
+ "value": "igp"
+ },
+ "local-pref": {
+ "pref": 100
+ },
+ "ipv4-next-hop": {
+ "global": "192.168.1.3"
+ }
+ }
+ }]
+}
+
# IPv4 route in peer operational data
rib_operational = {
"loc-rib": {"tables": [
"afi": "bgp-types:ipv4-address-family",
"safi": "bgp-types:unicast-subsequent-address-family",
"bgp-inet:ipv4-routes": {
- "ipv4-route": dut1_route["bgp-inet:ipv4-route"]
+ "ipv4-route": dut1_route_oper["bgp-inet:ipv4-route"]
}
}
]}
route_operational = {
"next-hop": {"next-hop-address": "192.168.1.3"},
- "vpp-ipv4-unicast-routing:vpp-ipv4-route": {},
"destination-prefix": dut1_route_address
}
}
}]
}
+dut1_route_ip6_oper = {
+ "bgp-inet:ipv6-route": [{
+ "route-key": dut1_route_ip6_prefix,
+ "path-id": dut1_route_ip6_id,
+ "prefix": dut1_route_ip6_prefix,
+ "attributes": {
+ "origin": {
+ "value": "igp"
+ },
+ "local-pref": {
+ "pref": 100
+ },
+ "ipv6-next-hop": {
+ "global": "3ffe:63::1"
+ }
+ }
+ }]
+}
# IPv6 route in peer operational data
rib_ip6_operational = {
"afi": "bgp-types:ipv6-address-family",
"safi": "bgp-types:unicast-subsequent-address-family",
"bgp-inet:ipv6-routes": {
- "ipv6-route": dut1_route_ip6["bgp-inet:ipv6-route"]
+ "ipv6-route": dut1_route_ip6_oper["bgp-inet:ipv6-route"]
}
}
]}
route_ip6_operational = {
"next-hop": {"next-hop-address": "3ffe:63::1"},
- "vpp-ipv6-unicast-routing:vpp-ipv6-route": {},
"destination-prefix": dut1_route_ip6_prefix
}