summaryrefslogtreecommitdiffstats
path: root/tests/data_plane/configs
diff options
context:
space:
mode:
authorAndrej Kozemcak <akozemca@cisco.com>2016-05-11 10:57:58 +0200
committerAndrej Kozemcak <akozemca@cisco.com>2016-05-11 16:45:56 +0200
commit676362e1714afe4e7bb1557828580e710670b602 (patch)
tree2a4c31822d0267eeb2d784eca5346b9f37465831 /tests/data_plane/configs
parentabfb56e73fed33d0b2f738ace59ae5b37cd2b60d (diff)
Create LISP test for csit_topology and for vpp_lite_topology
Change-Id: If0a886c761a41c9914c10d2ae3abf9f7711151c6 Signed-off-by: Andrej Kozemcak <akozemca@cisco.com>
Diffstat (limited to 'tests/data_plane/configs')
-rw-r--r--tests/data_plane/configs/odl/add_ipv4_odl1.txt29
-rw-r--r--tests/data_plane/configs/odl/add_ipv4_odl2.txt29
-rw-r--r--tests/data_plane/configs/odl/add_ipv6_odl1.txt29
-rw-r--r--tests/data_plane/configs/odl/add_ipv6_odl2.txt29
-rw-r--r--tests/data_plane/configs/odl/replace_ipv4_odl2.txt29
-rw-r--r--tests/data_plane/configs/odl/replace_ipv6_odl2.txt29
-rw-r--r--tests/data_plane/configs/vpp_csit_config/vpp1.conf10
-rw-r--r--tests/data_plane/configs/vpp_csit_config/vpp1_6.conf10
-rw-r--r--tests/data_plane/configs/vpp_csit_config/vpp2.conf9
-rw-r--r--tests/data_plane/configs/vpp_csit_config/vpp2_6.conf9
-rw-r--r--tests/data_plane/configs/vpp_csit_config/vpp2_reconf.conf3
-rw-r--r--tests/data_plane/configs/vpp_csit_config/vpp2_reconf_6.conf3
-rw-r--r--tests/data_plane/configs/vpp_lite_config/vpp1.conf13
-rw-r--r--tests/data_plane/configs/vpp_lite_config/vpp1_6.conf13
-rw-r--r--tests/data_plane/configs/vpp_lite_config/vpp1_ip4_6.conf17
-rw-r--r--tests/data_plane/configs/vpp_lite_config/vpp2.conf13
-rw-r--r--tests/data_plane/configs/vpp_lite_config/vpp2_6.conf13
-rw-r--r--tests/data_plane/configs/vpp_lite_config/vpp2_ip4_6.conf17
18 files changed, 304 insertions, 0 deletions
diff --git a/tests/data_plane/configs/odl/add_ipv4_odl1.txt b/tests/data_plane/configs/odl/add_ipv4_odl1.txt
new file mode 100644
index 0000000..7544187
--- /dev/null
+++ b/tests/data_plane/configs/odl/add_ipv4_odl1.txt
@@ -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.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"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/add_ipv4_odl2.txt b/tests/data_plane/configs/odl/add_ipv4_odl2.txt
new file mode 100644
index 0000000..645432c
--- /dev/null
+++ b/tests/data_plane/configs/odl/add_ipv4_odl2.txt
@@ -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.2"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/add_ipv6_odl1.txt b/tests/data_plane/configs/odl/add_ipv6_odl1.txt
new file mode 100644
index 0000000..a367262
--- /dev/null
+++ b/tests/data_plane/configs/odl/add_ipv6_odl1.txt
@@ -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:1::0/48"
+ },
+ "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"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/add_ipv6_odl2.txt b/tests/data_plane/configs/odl/add_ipv6_odl2.txt
new file mode 100644
index 0000000..3f5afd7
--- /dev/null
+++ b/tests/data_plane/configs/odl/add_ipv6_odl2.txt
@@ -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/48"
+ },
+ "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"
+ }
+ }
+ ]
+ }
+ }
+}
diff --git a/tests/data_plane/configs/odl/replace_ipv4_odl2.txt b/tests/data_plane/configs/odl/replace_ipv4_odl2.txt
new file mode 100644
index 0000000..089516b
--- /dev/null
+++ b/tests/data_plane/configs/odl/replace_ipv4_odl2.txt
@@ -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/replace_ipv6_odl2.txt b/tests/data_plane/configs/odl/replace_ipv6_odl2.txt
new file mode 100644
index 0000000..e61d6fc
--- /dev/null
+++ b/tests/data_plane/configs/odl/replace_ipv6_odl2.txt
@@ -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/48"
+ },
+ "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/vpp_csit_config/vpp1.conf b/tests/data_plane/configs/vpp_csit_config/vpp1.conf
new file mode 100644
index 0000000..c5ddcb3
--- /dev/null
+++ b/tests/data_plane/configs/vpp_csit_config/vpp1.conf
@@ -0,0 +1,10 @@
+exec set int ip address GigabitEthernet0/9/0 6.0.1.1/24
+exec set int state GigabitEthernet0/9/0 up
+exec set int ip address GigabitEthernet0/a/0 6.0.3.1/24
+exec set int state GigabitEthernet0/a/0 up
+lisp_enable_disable enable
+
+lisp_add_del_map_resolver 6.0.3.100
+lisp_add_del_locator_set locator-set ls1
+lisp_add_del_locator locator-set ls1 iface GigabitEthernet0/a/0 p 1 w 2
+lisp_add_del_local_eid eid 6.0.1.0/24 locator-set ls1 \ No newline at end of file
diff --git a/tests/data_plane/configs/vpp_csit_config/vpp1_6.conf b/tests/data_plane/configs/vpp_csit_config/vpp1_6.conf
new file mode 100644
index 0000000..d14acc4
--- /dev/null
+++ b/tests/data_plane/configs/vpp_csit_config/vpp1_6.conf
@@ -0,0 +1,10 @@
+exec set int ip address GigabitEthernet0/9/0 6:0:1::1/64
+exec set int state GigabitEthernet0/9/0 up
+exec set int ip address GigabitEthernet0/a/0 6:0:3::1/64
+exec set int state GigabitEthernet0/a/0 up
+lisp_enable_disable enable
+
+lisp_add_del_map_resolver 6:0:3::100
+lisp_add_del_locator_set locator-set ls1
+lisp_add_del_locator locator-set ls1 iface GigabitEthernet0/a/0 p 1 w 2
+lisp_add_del_local_eid eid 6:0:1::0/64 locator-set ls1 \ No newline at end of file
diff --git a/tests/data_plane/configs/vpp_csit_config/vpp2.conf b/tests/data_plane/configs/vpp_csit_config/vpp2.conf
new file mode 100644
index 0000000..32d1be5
--- /dev/null
+++ b/tests/data_plane/configs/vpp_csit_config/vpp2.conf
@@ -0,0 +1,9 @@
+exec set int ip address GigabitEthernet0/9/0 6.0.2.1/24
+exec set int state GigabitEthernet0/9/0 up
+exec set int ip address GigabitEthernet0/a/0 6.0.3.2/24
+exec set int state GigabitEthernet0/a/0 up
+lisp_enable_disable enable
+lisp_add_del_map_resolver 6.0.3.100
+lisp_add_del_locator_set locator-set ls1
+lisp_add_del_locator locator-set ls1 iface GigabitEthernet0/a/0 p 1 w 2
+lisp_add_del_local_eid eid 6.0.2.0/24 locator-set ls1 \ No newline at end of file
diff --git a/tests/data_plane/configs/vpp_csit_config/vpp2_6.conf b/tests/data_plane/configs/vpp_csit_config/vpp2_6.conf
new file mode 100644
index 0000000..8bb999d
--- /dev/null
+++ b/tests/data_plane/configs/vpp_csit_config/vpp2_6.conf
@@ -0,0 +1,9 @@
+exec set int ip address GigabitEthernet0/9/0 6:0:2::1/64
+exec set int state GigabitEthernet0/9/0 up
+exec set int ip address GigabitEthernet0/a/0 6:0:3::2/64
+exec set int state GigabitEthernet0/a/0 up
+lisp_enable_disable enable
+lisp_add_del_map_resolver 6:0:3::100
+lisp_add_del_locator_set locator-set ls1
+lisp_add_del_locator locator-set ls1 iface GigabitEthernet0/a/0 p 1 w 2
+lisp_add_del_local_eid eid 6:0:2::0/64 locator-set ls1 \ No newline at end of file
diff --git a/tests/data_plane/configs/vpp_csit_config/vpp2_reconf.conf b/tests/data_plane/configs/vpp_csit_config/vpp2_reconf.conf
new file mode 100644
index 0000000..fec4070
--- /dev/null
+++ b/tests/data_plane/configs/vpp_csit_config/vpp2_reconf.conf
@@ -0,0 +1,3 @@
+exec set int ip address del GigabitEthernet0/a/0 6.0.3.2/24
+exec set int ip address GigabitEthernet0/a/0 6.0.3.20/24
+exec set int state GigabitEthernet0/a/0 up \ No newline at end of file
diff --git a/tests/data_plane/configs/vpp_csit_config/vpp2_reconf_6.conf b/tests/data_plane/configs/vpp_csit_config/vpp2_reconf_6.conf
new file mode 100644
index 0000000..6cc6b13
--- /dev/null
+++ b/tests/data_plane/configs/vpp_csit_config/vpp2_reconf_6.conf
@@ -0,0 +1,3 @@
+exec set int ip address del GigabitEthernet0/a/0 6:0:3::2/64
+exec set int ip address GigabitEthernet0/a/0 6:0:3::20/64
+exec set int state GigabitEthernet0/a/0 up
diff --git a/tests/data_plane/configs/vpp_lite_config/vpp1.conf b/tests/data_plane/configs/vpp_lite_config/vpp1.conf
new file mode 100644
index 0000000..5648c20
--- /dev/null
+++ b/tests/data_plane/configs/vpp_lite_config/vpp1.conf
@@ -0,0 +1,13 @@
+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 eid-table add eid 6.0.1.0/24 locator-set ls1
+lisp map-resolver add 6.0.3.100
diff --git a/tests/data_plane/configs/vpp_lite_config/vpp1_6.conf b/tests/data_plane/configs/vpp_lite_config/vpp1_6.conf
new file mode 100644
index 0000000..b064a57
--- /dev/null
+++ b/tests/data_plane/configs/vpp_lite_config/vpp1_6.conf
@@ -0,0 +1,13 @@
+create host-interface name vpp1
+set int state host-vpp1 up
+set int ip address host-vpp1 6:0:1::1/64
+
+create host-interface name intervpp1
+set int state host-intervpp1 up
+set int ip address host-intervpp1 6:0:3::1/64
+
+lisp enable
+
+lisp locator-set add ls1 iface host-intervpp1 p 1 w 1
+lisp eid-table add eid 6:0:1::0/64 locator-set ls1
+lisp map-resolver add 6:0:3::100
diff --git a/tests/data_plane/configs/vpp_lite_config/vpp1_ip4_6.conf b/tests/data_plane/configs/vpp_lite_config/vpp1_ip4_6.conf
new file mode 100644
index 0000000..9cef140
--- /dev/null
+++ b/tests/data_plane/configs/vpp_lite_config/vpp1_ip4_6.conf
@@ -0,0 +1,17 @@
+create host-interface name vpp1
+set int state host-vpp1 up
+set int ip address host-vpp1 6.0.1.1/24
+set int ip address host-vpp1 6:0:1::1/64
+
+create host-interface name intervpp1
+set int state host-intervpp1 up
+set int ip address host-intervpp1 6.0.3.1/24
+set int ip address host-intervpp1 6:0:3::1/64
+
+lisp enable
+
+lisp locator-set add ls1 iface host-intervpp1 p 1 w 1
+lisp eid-table add eid 6.0.1.0/24 locator-set ls1
+lisp eid-table add eid 6:0:1::0/64 locator-set ls1
+lisp map-resolver add 6.0.3.100
+lisp map-resolver add 6:0:3::100
diff --git a/tests/data_plane/configs/vpp_lite_config/vpp2.conf b/tests/data_plane/configs/vpp_lite_config/vpp2.conf
new file mode 100644
index 0000000..1bac043
--- /dev/null
+++ b/tests/data_plane/configs/vpp_lite_config/vpp2.conf
@@ -0,0 +1,13 @@
+create host-interface name vpp2
+set int state host-vpp2 up
+set int ip address host-vpp2 6.0.2.1/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 eid-table add eid 6.0.2.0/24 locator-set ls1
+lisp map-resolver add 6.0.3.100
diff --git a/tests/data_plane/configs/vpp_lite_config/vpp2_6.conf b/tests/data_plane/configs/vpp_lite_config/vpp2_6.conf
new file mode 100644
index 0000000..d8ace86
--- /dev/null
+++ b/tests/data_plane/configs/vpp_lite_config/vpp2_6.conf
@@ -0,0 +1,13 @@
+create host-interface name vpp2
+set int state host-vpp2 up
+set int ip address host-vpp2 6:0:2::1/64
+
+create host-interface name intervpp2
+set int state host-intervpp2 up
+set int ip address host-intervpp2 6:0:3::2/64
+
+lisp enable
+
+lisp locator-set add ls1 iface host-intervpp2 p 1 w 1
+lisp eid-table add eid 6:0:2::0/64 locator-set ls1
+lisp map-resolver add 6:0:3::100
diff --git a/tests/data_plane/configs/vpp_lite_config/vpp2_ip4_6.conf b/tests/data_plane/configs/vpp_lite_config/vpp2_ip4_6.conf
new file mode 100644
index 0000000..7c845f6
--- /dev/null
+++ b/tests/data_plane/configs/vpp_lite_config/vpp2_ip4_6.conf
@@ -0,0 +1,17 @@
+create host-interface name vpp2
+set int state host-vpp2 up
+set int ip address host-vpp2 6.0.2.1/24
+set int ip address host-vpp2 6:0:2::1/64
+
+create host-interface name intervpp2
+set int state host-intervpp2 up
+set int ip address host-intervpp2 6.0.3.2/24
+set int ip address host-intervpp2 6:0:3::2/64
+
+lisp enable
+
+lisp locator-set add ls1 iface host-intervpp2 p 1 w 1
+lisp eid-table add eid 6.0.2.0/24 locator-set ls1
+lisp eid-table add eid 6:0:2::0/64 locator-set ls1
+lisp map-resolver add 6.0.3.100
+lisp map-resolver add 6:0:3::100