summaryrefslogtreecommitdiffstats
path: root/routing/routing-impl/src/test/resources
diff options
context:
space:
mode:
authorMichal Cmarada <michal.cmarada@pantheon.tech>2018-06-22 11:02:27 +0200
committerMarek Gradzki <mgradzki@cisco.com>2018-06-22 10:53:36 +0000
commit4e8127d8f74726b2ffdf8af89ae879cfa79466f6 (patch)
tree7e0b7932decf0c67781a4f556db6089cb0bec818 /routing/routing-impl/src/test/resources
parentb9e58bf303a099805ecb24ca3a97027b3c34a211 (diff)
HC2VPP-344: Add FIB table management for routing
- update models with FIB table management - fixes implementation for FIB table management Change-Id: I5cf397d6e827cb14df970e14ee268ef870931bd4 Signed-off-by: Michal Cmarada <michal.cmarada@pantheon.tech>
Diffstat (limited to 'routing/routing-impl/src/test/resources')
-rw-r--r--routing/routing-impl/src/test/resources/init/config-data.json111
-rw-r--r--routing/routing-impl/src/test/resources/init/state-data.json111
2 files changed, 0 insertions, 222 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
deleted file mode 100644
index 1f7a6a247..000000000
--- a/routing/routing-impl/src/test/resources/init/config-data.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "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"
- },
- {
- "id": 2,
- "destination-prefix": "192.168.2.4/32",
- "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"
- },
- {
- "id": 4,
- "destination-prefix": "192.168.2.6/32",
- "table-lookup-params": {
- "secondary-vrf": 4
- }
- }
- ]
- },
- "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"
- },
- {
- "id": 2,
- "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0008/64",
- "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"
- },
- {
- "id": 4,
- "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0006/32",
- "table-lookup-params": {
- "secondary-vrf": 2
- }
- }
- ]
- }
- }
- }
- ]
- }
- }
- }
-} \ 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
deleted file mode 100644
index fb4fac2e0..000000000
--- a/routing/routing-impl/src/test/resources/init/state-data.json
+++ /dev/null
@@ -1,111 +0,0 @@
-{
- "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"
- },
- {
- "id": 2,
- "destination-prefix": "192.168.2.4/32",
- "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"
- },
- {
- "id": 4,
- "destination-prefix": "192.168.2.6/32",
- "table-lookup-params": {
- "secondary-vrf": 4
- }
- }
- ]
- },
- "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"
- },
- {
- "id": 2,
- "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0008/64",
- "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"
- },
- {
- "id": 4,
- "destination-prefix": "2001:0db8:0a0b:12f0:0000:0000:0000:0006/32",
- "table-lookup-params": {
- "secondary-vrf": 2
- }
- }
- ]
- }
- }
- }
- ]
- }
- }
- }
-} \ No newline at end of file