summaryrefslogtreecommitdiffstats
path: root/routing/routing-impl/src/test/resources/init
diff options
context:
space:
mode:
authorJan Srnicek <jsrnicek@cisco.com>2016-12-01 18:15:52 +0100
committerJan Srnicek <jsrnicek@cisco.com>2016-12-01 18:16:47 +0100
commit32aa07e5517fba7f78ae79d2ba83b56f72a53293 (patch)
tree26256f30f2dc5c3521403ef3fcd2e038b2f9bca6 /routing/routing-impl/src/test/resources/init
parent9c9935c83ce9869ca36cbde7865423ef02f19db8 (diff)
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 <jsrnicek@cisco.com>
Diffstat (limited to 'routing/routing-impl/src/test/resources/init')
-rw-r--r--routing/routing-impl/src/test/resources/init/config-data.json109
-rw-r--r--routing/routing-impl/src/test/resources/init/state-data.json109
2 files changed, 218 insertions, 0 deletions
diff --git a/routing/routing-impl/src/test/resources/init/config-data.json b/routing/routing-impl/src/test/resources/init/config-data.json
new file mode 100644
index 000000000..05a888b30
--- /dev/null
+++ b/routing/routing-impl/src/test/resources/init/config-data.json
@@ -0,0 +1,109 @@
+{
+ "routing": {
+ "routing-instance": {
+ "name": "routing-3",
+ "router-id": "192.168.2.1",
+ "routing-protocols": {
+ "routing-protocol": [
+ {
+ "name": "test-routing-protocol",
+ "type": "static",
+ "vpp-protocol-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": {
+ "secondary-vrf": "1"
+ }
+ },
+ {
+ "id": 2,
+ "destination-prefix": "192.168.2.4/32",
+ "vpp-ipv4-route": {
+ "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": {
+ "secondary-vrf": "1"
+ }
+ },
+ {
+ "id": 2,
+ "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0008/64",
+ "vpp-ipv6-route": {
+ "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
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