From 32aa07e5517fba7f78ae79d2ba83b56f72a53293 Mon Sep 17 00:00:00 2001 From: Jan Srnicek Date: Thu, 1 Dec 2016 18:15:52 +0100 Subject: HONEYCOMB-58 - Routing Plugin Structure Read/Write support for ipv4/6 static routes. Restriction due to vpp implementation described in readme. Change-Id: I328f406a9b7cb8781f8becf98eca293cebe66859 Signed-off-by: Jan Srnicek --- .../src/test/resources/init/state-data.json | 109 +++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 routing/routing-impl/src/test/resources/init/state-data.json (limited to 'routing/routing-impl/src/test/resources/init/state-data.json') diff --git a/routing/routing-impl/src/test/resources/init/state-data.json b/routing/routing-impl/src/test/resources/init/state-data.json new file mode 100644 index 000000000..7830c8e0a --- /dev/null +++ b/routing/routing-impl/src/test/resources/init/state-data.json @@ -0,0 +1,109 @@ +{ + "routing-state": { + "routing-instance": { + "name": "routing-3", + "router-id": "192.168.2.1", + "routing-protocols": { + "routing-protocol": [ + { + "name": "test-routing-protocol", + "type": "static", + "vpp-protocol-state-attributes": { + "primary-vrf": "1" + }, + "static-routes": { + "ipv4": { + "route": [ + { + "id": 1, + "destination-prefix": "192.168.2.3/32", + "next-hop": "192.168.2.8", + "outgoing-interface": "local0", + "vpp-ipv4-route-state": { + "secondary-vrf": "1" + } + }, + { + "id": 2, + "destination-prefix": "192.168.2.4/32", + "vpp-ipv4-route-state": { + "secondary-vrf": "1" + }, + "next-hop-list": { + "next-hop": [ + { + "id": "1", + "address": "192.168.2.5", + "outgoing-interface": "local0", + "weight": "1" + }, + { + "id": "2", + "address": "192.168.2.6", + "outgoing-interface": "local0", + "weight": "2" + } + ] + } + }, + { + "id": 3, + "destination-prefix": "192.168.2.5/32", + "special-next-hop": "receive" + } + ] + }, + "ipv6": { + "route": [ + { + "id": 1, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0001/64", + "next-hop": "2001:0db8:0a0b:12f0:0000:0000:0000:0002", + "outgoing-interface": "GigabitEthernet0/8/0", + "vpp-ipv6-route-state": { + "secondary-vrf": "1" + } + }, + { + "id": 2, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0008/64", + "vpp-ipv6-route-state": { + "secondary-vrf": "1" + }, + "next-hop-list": { + "next-hop": [ + { + "id": "1", + "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0003", + "outgoing-interface": "GigabitEthernet0/8/0", + "weight": "1" + }, + { + "id": "2", + "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0004", + "outgoing-interface": "GigabitEthernet0/8/0", + "weight": "2" + }, + { + "id": "3", + "address": "2001:0db8:0a0b:12f0:0000:0000:0000:0005", + "outgoing-interface": "GigabitEthernet0/8/0", + "weight": "3" + } + ] + } + }, + { + "id": 3, + "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0005/32", + "special-next-hop": "receive" + } + ] + } + } + } + ] + } + } + } +} \ No newline at end of file -- cgit 1.2.3-korg