summaryrefslogtreecommitdiffstats
path: root/vpp-common/vpp-translate-utils/src/test/resources
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 /vpp-common/vpp-translate-utils/src/test/resources
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 'vpp-common/vpp-translate-utils/src/test/resources')
-rw-r--r--vpp-common/vpp-translate-utils/src/test/resources/multi-mapping.json35
-rw-r--r--vpp-common/vpp-translate-utils/src/test/resources/naming.json14
2 files changed, 49 insertions, 0 deletions
diff --git a/vpp-common/vpp-translate-utils/src/test/resources/multi-mapping.json b/vpp-common/vpp-translate-utils/src/test/resources/multi-mapping.json
new file mode 100644
index 000000000..c20401fc0
--- /dev/null
+++ b/vpp-common/vpp-translate-utils/src/test/resources/multi-mapping.json
@@ -0,0 +1,35 @@
+{
+ "mappings": {
+ "mapping": [
+ {
+ "name": "parent-1",
+ "value": [
+ {
+ "index": 1,
+ "name": "child-1"
+ },
+ {
+ "index": 2,
+ "name": "child-2"
+ },
+ {
+ "index": 3,
+ "name": "child-3"
+ }
+ ]
+ },
+ {
+ "name": "parent-2"
+ },
+ {
+ "name": "parent-3",
+ "value": [
+ {
+ "index": 1,
+ "name": "child-1"
+ }
+ ]
+ }
+ ]
+ }
+} \ No newline at end of file
diff --git a/vpp-common/vpp-translate-utils/src/test/resources/naming.json b/vpp-common/vpp-translate-utils/src/test/resources/naming.json
new file mode 100644
index 000000000..0248264d2
--- /dev/null
+++ b/vpp-common/vpp-translate-utils/src/test/resources/naming.json
@@ -0,0 +1,14 @@
+{
+ "mappings": {
+ "mapping": [
+ {
+ "name": "name-1",
+ "index": 1
+ },
+ {
+ "name": "name-2",
+ "index": 2
+ }
+ ]
+ }
+} \ No newline at end of file