summaryrefslogtreecommitdiffstats
path: root/tests/data_plane/configs
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2016-07-29 23:24:17 +0200
committerFlorin Coras <fcoras@cisco.com>2016-08-01 17:31:29 +0200
commit8719d3152d10974926175f63975d1b0290fd7237 (patch)
treeafa1450104ebf5a44d4fde88c3acc0dc46bc640c /tests/data_plane/configs
parent51b44223b063eeccccd078d39ab08f5d16629e22 (diff)
Basic l2 over ip4 tests
Change-Id: I8bd9253bac3759018ca752574cae575b129df3e6 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'tests/data_plane/configs')
-rw-r--r--tests/data_plane/configs/odl/basic/l2o4/vpp1.json30
-rw-r--r--tests/data_plane/configs/odl/basic/l2o4/vpp2.json30
-rw-r--r--tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp1.config16
-rw-r--r--tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp2.config16
4 files changed, 92 insertions, 0 deletions
diff --git a/tests/data_plane/configs/odl/basic/l2o4/vpp1.json b/tests/data_plane/configs/odl/basic/l2o4/vpp1.json
new file mode 100644
index 0000000..4869c49
--- /dev/null
+++ b/tests/data_plane/configs/odl/basic/l2o4/vpp1.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: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"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/basic/l2o4/vpp2.json b/tests/data_plane/configs/odl/basic/l2o4/vpp2.json
new file mode 100644
index 0000000..7c49929
--- /dev/null
+++ b/tests/data_plane/configs/odl/basic/l2o4/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": false,
+ "rloc": {
+ "address-type": "ietf-lisp-address-types:ipv4-afi",
+ "ipv4": "6.0.3.2"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp1.config b/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp1.config
new file mode 100644
index 0000000..f58c606
--- /dev/null
+++ b/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp1.config
@@ -0,0 +1,16 @@
+create host-interface name vpp1
+set int state host-vpp1 up
+set int ip address host-vpp1 6.0.1.1/24
+
+create host-interface name intervpp1
+set int state host-intervpp1 up
+set int ip address host-intervpp1 6.0.3.1/24
+
+lisp enable
+
+lisp locator-set add ls1 iface host-intervpp1 p 1 w 1
+lisp map-resolver add 6.0.3.100
+
+lisp eid-table map vni 10 bd 10
+set interface l2 bridge host-vpp1 10
+lisp eid-table add vni 10 eid 08:11:11:11:11:11 locator-set ls1
diff --git a/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp2.config b/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp2.config
new file mode 100644
index 0000000..97dc81e
--- /dev/null
+++ b/tests/data_plane/configs/vpp_lite_config/basic/l2o4/vpp2.config
@@ -0,0 +1,16 @@
+create host-interface name vpp2
+set int state host-vpp2 up
+set int ip address host-vpp2 6.0.1.2/24
+
+create host-interface name intervpp2
+set int state host-intervpp2 up
+set int ip address host-intervpp2 6.0.3.2/24
+
+lisp enable
+
+lisp locator-set add ls1 iface host-intervpp2 p 1 w 1
+lisp map-resolver add 6.0.3.100
+
+lisp eid-table map vni 10 bd 10
+set interface l2 bridge host-vpp2 10
+lisp eid-table add vni 10 eid 08:22:22:22:22:22 locator-set ls1