+ "vpp-ipv4-unicast-routing:vpp-ipv4-route": {}
+}
+
+# Peer configurations for traffic test
+dut1_peer = {
+ "bgp-openconfig-extensions:neighbor": [{
+ "neighbor-address": "192.168.1.1",
+ "config": {
+ "peer-type": "INTERNAL"
+ },
+ "timers": {
+ "config": {
+ "connect-retry": 3,
+ "hold-time": 60
+ }
+ },
+ "transport": {
+ "config": {
+ "remote-port": 179,
+ "passive-mode": False
+ }
+ },
+ "afi-safis": {
+ "afi-safi": [
+ {
+ "afi-safi-name": "openconfig-bgp-types:IPV4-UNICAST"
+ },
+ {
+ "afi-safi-name": "openconfig-bgp-types:IPV6-UNICAST"
+ },
+ {
+ "afi-safi-name": "LINKSTATE"
+ }
+ ]
+ }
+ }]
+}
+
+dut2_peer = {
+ "bgp-openconfig-extensions:neighbor": [{
+ "neighbor-address": "192.168.1.2",
+ "config": {
+ "peer-type": "INTERNAL"
+ },
+ "timers": {
+ "config": {
+ "connect-retry": 3,
+ "hold-time": 60
+ }
+ },
+ "transport": {
+ "config": {
+ "remote-port": 179,
+ "passive-mode": True
+ }
+ },
+ "afi-safis": {
+ "afi-safi": [
+ {
+ "afi-safi-name": "openconfig-bgp-types:IPV4-UNICAST"
+ },
+ {
+ "afi-safi-name": "openconfig-bgp-types:IPV6-UNICAST"
+ },
+ {
+ "afi-safi-name": "LINKSTATE"
+ }
+ ]
+ }
+ }]
+}
+
+# IPv4 route for traffic test
+dut1_route_address = "192.168.0.5/32"
+dut1_route_id = 0
+dut1_route = {
+ "bgp-inet:ipv4-route": [{
+ "route-key": dut1_route_address,
+ "path-id": dut1_route_id,
+ "prefix": dut1_route_address,
+ "attributes": {
+ "as-path": {},
+ "origin": {
+ "value": "igp"
+ },
+ "local-pref": {
+ "pref": 100
+ },
+ "ipv4-next-hop": {
+ "global": "192.168.1.3"
+ }
+ }
+ }]
+}
+
+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_oper["bgp-inet:ipv4-route"]
+ }
+ }
+ ]}
+}
+
+route_operational = {
+ "next-hop": {"next-hop-address": "192.168.1.3"},
+ "destination-prefix": dut1_route_address
+}
+
+# IPv6 route for traffic test
+dut1_route_ip6_prefix = "3ffe:62::/64"
+dut1_route_ip6_id = 0
+dut1_route_ip6 = {
+ "bgp-inet:ipv6-route": [{
+ "route-key": dut1_route_ip6_prefix,
+ "path-id": dut1_route_ip6_id,
+ "prefix": dut1_route_ip6_prefix,
+ "attributes": {
+ "as-path": {},
+ "origin": {
+ "value": "igp"
+ },
+ "local-pref": {
+ "pref": 100
+ },
+ "ipv6-next-hop": {
+ "global": "3ffe:63::1"
+ }
+ }
+ }]
+}
+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 = {
+ "loc-rib": {"tables": [
+ {
+ "afi": "bgp-types:ipv6-address-family",
+ "safi": "bgp-types:unicast-subsequent-address-family",
+ "bgp-inet:ipv6-routes": {
+ "ipv6-route": dut1_route_ip6_oper["bgp-inet:ipv6-route"]
+ }
+ }
+ ]}
+}
+
+route_ip6_operational = {
+ "next-hop": {"next-hop-address": "3ffe:63::1"},
+ "destination-prefix": dut1_route_ip6_prefix
+}