summaryrefslogtreecommitdiffstats
path: root/tests/data_plane/configs/odl/multihoming
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2016-08-10 01:57:14 +0200
committerFlorin Coras <fcoras@cisco.com>2016-08-11 20:11:41 +0200
commit76ab005261dba3fd5bec32df2ad253e4185116f0 (patch)
treea6fef93a09a7043b73ba6c49dbcab34295ee7a87 /tests/data_plane/configs/odl/multihoming
parent8912471cd3744954661f702ee8cf8cc58957e4b8 (diff)
Add multihoming tests
Change-Id: Ifc6d1ea02bc72b13ecca9a7e1ede0cd873687daf Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'tests/data_plane/configs/odl/multihoming')
-rw-r--r--tests/data_plane/configs/odl/multihoming/4o4/update_vpp2.json29
-rw-r--r--tests/data_plane/configs/odl/multihoming/4o4/vpp1.json43
-rw-r--r--tests/data_plane/configs/odl/multihoming/4o4/vpp2.json43
-rw-r--r--tests/data_plane/configs/odl/multihoming/6o6/update_vpp2.json29
-rw-r--r--tests/data_plane/configs/odl/multihoming/6o6/vpp1.json43
-rw-r--r--tests/data_plane/configs/odl/multihoming/6o6/vpp2.json43
-rw-r--r--tests/data_plane/configs/odl/multihoming/l2o4/update_vpp2.json30
-rw-r--r--tests/data_plane/configs/odl/multihoming/l2o4/vpp1.json44
-rw-r--r--tests/data_plane/configs/odl/multihoming/l2o4/vpp2.json44
9 files changed, 348 insertions, 0 deletions
diff --git a/tests/data_plane/configs/odl/multihoming/4o4/update_vpp2.json b/tests/data_plane/configs/odl/multihoming/4o4/update_vpp2.json
new file mode 100644
index 0000000..089516b
--- /dev/null
+++ b/tests/data_plane/configs/odl/multihoming/4o4/update_vpp2.json
@@ -0,0 +1,29 @@
+{
+ "input": {
+ "mapping-record": {
+ "recordTtl": 1440,
+ "action": "NoAction",
+ "authoritative": true,
+ "eid": {
+ "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
+ "ipv4-prefix": "6.0.2.0/24"
+ },
+ "LocatorRecord": [
+ {
+ "locator-id": "ISP1",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.3.20"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/multihoming/4o4/vpp1.json b/tests/data_plane/configs/odl/multihoming/4o4/vpp1.json
new file mode 100644
index 0000000..4bd3b6e
--- /dev/null
+++ b/tests/data_plane/configs/odl/multihoming/4o4/vpp1.json
@@ -0,0 +1,43 @@
+{
+ "input": {
+ "mapping-record": {
+ "recordTtl": 1440,
+ "action": "NoAction",
+ "authoritative": true,
+ "eid": {
+ "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
+ "ipv4-prefix": "6.0.1.0/24"
+ },
+ "LocatorRecord": [
+ {
+ "locator-id": "ISP1",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.3.1"
+ }
+ },
+ {
+ "locator-id": "ISP2",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.4.1"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/multihoming/4o4/vpp2.json b/tests/data_plane/configs/odl/multihoming/4o4/vpp2.json
new file mode 100644
index 0000000..097b264
--- /dev/null
+++ b/tests/data_plane/configs/odl/multihoming/4o4/vpp2.json
@@ -0,0 +1,43 @@
+{
+ "input": {
+ "mapping-record": {
+ "recordTtl": 1440,
+ "action": "NoAction",
+ "authoritative": true,
+ "eid": {
+ "address-type": "ietf-lisp-address-types:ipv4-prefix-afi",
+ "ipv4-prefix": "6.0.2.0/24"
+ },
+ "LocatorRecord": [
+ {
+ "locator-id": "ISP1",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.3.2"
+ }
+ },
+ {
+ "locator-id": "ISP2",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.4.2"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/multihoming/6o6/update_vpp2.json b/tests/data_plane/configs/odl/multihoming/6o6/update_vpp2.json
new file mode 100644
index 0000000..6cd17a8
--- /dev/null
+++ b/tests/data_plane/configs/odl/multihoming/6o6/update_vpp2.json
@@ -0,0 +1,29 @@
+{
+ "input": {
+ "mapping-record": {
+ "recordTtl": 1440,
+ "action": "NoAction",
+ "authoritative": true,
+ "eid": {
+ "address-type": "ietf-lisp-address-types:ipv6-prefix-afi",
+ "ipv6-prefix": "6:0:2::0/64"
+ },
+ "LocatorRecord": [
+ {
+ "locator-id": "ISP1",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv6-afi",
+ "ipv6": "6:0:3::20"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/multihoming/6o6/vpp1.json b/tests/data_plane/configs/odl/multihoming/6o6/vpp1.json
new file mode 100644
index 0000000..b47dd5f
--- /dev/null
+++ b/tests/data_plane/configs/odl/multihoming/6o6/vpp1.json
@@ -0,0 +1,43 @@
+{
+ "input": {
+ "mapping-record": {
+ "recordTtl": 1440,
+ "action": "NoAction",
+ "authoritative": true,
+ "eid": {
+ "address-type": "ietf-lisp-address-types:ipv6-prefix-afi",
+ "ipv6-prefix": "6:0:1::0/64"
+ },
+ "LocatorRecord": [
+ {
+ "locator-id": "ISP1",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv6-afi",
+ "ipv6": "6:0:3::1"
+ }
+ },
+ {
+ "locator-id": "ISP2",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv6-afi",
+ "ipv6": "6:0:4::1"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/multihoming/6o6/vpp2.json b/tests/data_plane/configs/odl/multihoming/6o6/vpp2.json
new file mode 100644
index 0000000..9915e58
--- /dev/null
+++ b/tests/data_plane/configs/odl/multihoming/6o6/vpp2.json
@@ -0,0 +1,43 @@
+{
+ "input": {
+ "mapping-record": {
+ "recordTtl": 1440,
+ "action": "NoAction",
+ "authoritative": true,
+ "eid": {
+ "address-type": "ietf-lisp-address-types:ipv6-prefix-afi",
+ "ipv6-prefix": "6:0:2::0/64"
+ },
+ "LocatorRecord": [
+ {
+ "locator-id": "ISP1",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv6-afi",
+ "ipv6": "6:0:3::2"
+ }
+ },
+ {
+ "locator-id": "ISP2",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv6-afi",
+ "ipv6": "6:0:4::2"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/multihoming/l2o4/update_vpp2.json b/tests/data_plane/configs/odl/multihoming/l2o4/update_vpp2.json
new file mode 100644
index 0000000..c95ddbc
--- /dev/null
+++ b/tests/data_plane/configs/odl/multihoming/l2o4/update_vpp2.json
@@ -0,0 +1,30 @@
+{
+ "input": {
+ "mapping-record": {
+ "recordTtl": 1440,
+ "action": "NoAction",
+ "authoritative": true,
+ "eid": {
+ "virtual-network-id": 10,
+ "address-type": "ietf-lisp-address-types:mac-afi",
+ "mac": "08:22:22:22:22:22"
+ },
+ "LocatorRecord": [
+ {
+ "locator-id": "ISP1",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": true,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.3.20"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/multihoming/l2o4/vpp1.json b/tests/data_plane/configs/odl/multihoming/l2o4/vpp1.json
new file mode 100644
index 0000000..210b372
--- /dev/null
+++ b/tests/data_plane/configs/odl/multihoming/l2o4/vpp1.json
@@ -0,0 +1,44 @@
+{
+ "input": {
+ "mapping-record": {
+ "recordTtl": 1440,
+ "action": "NoAction",
+ "authoritative": true,
+ "eid": {
+ "virtual-network-id": 10,
+ "address-type": "ietf-lisp-address-types:mac-afi",
+ "mac": "08:11:11:11:11:11"
+ },
+ "LocatorRecord": [
+ {
+ "locator-id": "ISP1",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": false,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.3.1"
+ }
+ },
+ {
+ "locator-id": "ISP2",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": false,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.4.1"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/multihoming/l2o4/vpp2.json b/tests/data_plane/configs/odl/multihoming/l2o4/vpp2.json
new file mode 100644
index 0000000..19e173c
--- /dev/null
+++ b/tests/data_plane/configs/odl/multihoming/l2o4/vpp2.json
@@ -0,0 +1,44 @@
+{
+ "input": {
+ "mapping-record": {
+ "recordTtl": 1440,
+ "action": "NoAction",
+ "authoritative": true,
+ "eid": {
+ "virtual-network-id": 10,
+ "address-type": "ietf-lisp-address-types:mac-afi",
+ "mac": "08:22:22:22:22:22"
+ },
+ "LocatorRecord": [
+ {
+ "locator-id": "ISP1",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": false,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.3.2"
+ }
+ },
+ {
+ "locator-id": "ISP2",
+ "priority": 1,
+ "weight": 1,
+ "multicastPriority": 255,
+ "multicastWeight": 0,
+ "localLocator": true,
+ "rlocProbed": false,
+ "routed": false,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.4.2"
+ }
+ }
+ ]
+ }
+ }
+}