aboutsummaryrefslogtreecommitdiffstats
path: root/resources/test_data/honeycomb/lisp.py
diff options
context:
space:
mode:
authorselias <samelias@cisco.com>2017-07-13 13:15:41 +0200
committerTibor Frank <tifrank@cisco.com>2017-08-09 13:09:26 +0000
commitc38cb34d13ba01386cbcc6302dce854506eda8a0 (patch)
tree63f1e0ae02829310031e23c28261198c2615d951 /resources/test_data/honeycomb/lisp.py
parent3267472a7fe6126fe90c87c128d096e3d346d420 (diff)
CSIT-611: HC Test: Lisp suite updates + LispGPE
- added LispGPE test suite - added IPv6 tests to Lisp suite - added traffic tests to Lisp suite Change-Id: I3b699149cd73ebf5856072d3f26e98a370dbfc4b Signed-off-by: selias <samelias@cisco.com>
Diffstat (limited to 'resources/test_data/honeycomb/lisp.py')
-rw-r--r--resources/test_data/honeycomb/lisp.py209
1 files changed, 0 insertions, 209 deletions
diff --git a/resources/test_data/honeycomb/lisp.py b/resources/test_data/honeycomb/lisp.py
deleted file mode 100644
index 12a614698c..0000000000
--- a/resources/test_data/honeycomb/lisp.py
+++ /dev/null
@@ -1,209 +0,0 @@
-# Copyright (c) 2016 Cisco and/or its affiliates.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at:
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Test variables for LISP test suite."""
-
-from copy import deepcopy
-
-locator_set = "loc01"
-
-remote_bd_subtable = {
- "virtual-network-identifier": 3,
- "bridge-domain-subtable": {
- "bridge-domain-ref": "bd_lisp",
- "remote-mappings": {
- "remote-mapping": [{
- "id": "remote_map_l2",
- "eid": {
- "virtual-network-id": 3,
- "address-type": "ietf-lisp-address-types:mac-afi",
- "mac": "aa:aa:aa:aa:aa:ab",
- },
- "rlocs": {
- "locator": [{
- "address": "192.168.0.3",
- "priority": 1,
- "weight": 1
- }]
- },
- }]
- },
- }
-}
-
-remote_vrf_subtable = {
- "virtual-network-identifier": 4,
- "vrf-subtable": {
- "table-id": 1,
- "remote-mappings": {
- "remote-mapping": [{
- "id": "remote_map_vrf",
- "eid": {
- "virtual-network-id": 4,
- "address-type": "ietf-lisp-address-types:ipv4-afi",
- "ipv4": "192.168.0.2"
- },
- "rlocs": {
- "locator": [{
- "address": "192.168.0.3",
- "priority": 1,
- "weight": 1
- }]
- },
-
- }]
- },
- }
-}
-
-local_bd_subtable = {
- "virtual-network-identifier": 5,
- "bridge-domain-subtable": {
- "bridge-domain-ref": "bd2_lisp",
- "local-mappings": {
- "local-mapping": [{
- "id": "local_map_l2",
- "eid": {
- "address-type": "ietf-lisp-address-types:mac-afi",
- "virtual-network-id": 5,
- "mac": "ba:aa:aa:aa:aa:aa"
- },
- "locator-set": locator_set
- }]
- },
- }
-}
-
-local_vrf_subtable = {
- "virtual-network-identifier": 6,
- "vrf-subtable": {
- "table-id": 2,
- "local-mappings": {
- "local-mapping": [{
- "id": "local_map_vrf",
- "eid": {
- "virtual-network-id": 6,
- "address-type": "ietf-lisp-address-types:ipv4-afi",
- "ipv4": "192.168.1.1"
- },
- "locator-set": locator_set
- }]
- },
- }
-}
-
-lisp_settings_enable = {
- "lisp": {
- "enable": True
- }
-}
-
-prepare_vrf_adjacency = {
- "virtual-network-identifier": 7,
- "vrf-subtable": {
- "table-id": 3,
- "local-mappings": {
- "local-mapping": [{
- "id": "local_map_vrf",
- "eid": {
- "virtual-network-id": 7,
- "address-type": "ietf-lisp-address-types:ipv4-afi",
- "ipv4": "192.168.1.1"
- },
- "locator-set": locator_set
- }]
- },
- "remote-mappings": {
- "remote-mapping": [{
- "id": "remote_map_vrf",
- "eid": {
- "virtual-network-id": 7,
- "address-type": "ietf-lisp-address-types:ipv4-afi",
- "ipv4": "192.168.0.2"
- },
- "rlocs": {
- "locator": [{
- "address": "192.168.0.3",
- "priority": 1,
- "weight": 1
- }]
- },
-
- }]
- },
- }
-}
-
-vrf_adjacency = {
- "adjacency": [{
- "id": "adj01",
- "local-eid": {
- "virtual-network-id": 7,
- "address-type": "ietf-lisp-address-types:ipv4-afi",
- "ipv4": "192.168.1.1"
- },
- "remote-eid": {
- "virtual-network-id": 7,
- "address-type": "ietf-lisp-address-types:ipv4-afi",
- "ipv4": "192.168.0.2"
- },
- }]
- }
-
-adj_subtable = deepcopy(prepare_vrf_adjacency)
-adj_subtable["vrf-subtable"]["remote-mappings"]\
- ["remote-mapping"][0]["adjacencies"] = deepcopy(vrf_adjacency)
-
-
-def create_settings_dict(subtable):
- settings = {
- "eid-table": {
- "vni-table": [subtable]
- }
- }
-
- return settings
-
-lisp_settings_remote_bd = create_settings_dict(remote_bd_subtable)
-lisp_settings_remote_vrf = create_settings_dict(remote_vrf_subtable)
-lisp_settings_local_bd = create_settings_dict(local_bd_subtable)
-lisp_settings_local_vrf = create_settings_dict(local_vrf_subtable)
-lisp_settings_both_vrf = create_settings_dict(prepare_vrf_adjacency)
-
-vat_remote_bd = {
- "is_local": 0,
- "vni": remote_bd_subtable["virtual-network-identifier"],
- "eid": remote_bd_subtable["bridge-domain-subtable"]["remote-mappings"][
- "remote-mapping"][0]["eid"]["mac"],
-}
-
-vat_remote_vrf = {
- "is_local": 0,
- "vni": remote_vrf_subtable["virtual-network-identifier"],
- "eid": remote_vrf_subtable["vrf-subtable"]["remote-mappings"][
- "remote-mapping"][0]["eid"]["ipv4"]+"/32",
-}
-
-vat_local_bd = {
- "is_local": 1,
- "vni": local_bd_subtable["virtual-network-identifier"],
- "eid": local_bd_subtable["bridge-domain-subtable"]["local-mappings"][
- "local-mapping"][0]["eid"]["mac"]
-}
-
-vat_local_vrf = {
- "is_local": 1,
- "vni": local_vrf_subtable["virtual-network-identifier"],
- "eid": local_vrf_subtable["vrf-subtable"]["local-mappings"][
- "local-mapping"][0]["eid"]["ipv4"]+"/32"
-}