aboutsummaryrefslogtreecommitdiffstats
path: root/resources/test_data/honeycomb/persistence.py
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2019-11-11 16:14:32 +0000
committerPeter Mikus <pmikus@cisco.com>2019-11-19 06:43:59 +0000
commite7ad66f3147662973039caaac33015de7e0c6f8c (patch)
tree809a056325425bad672a8a9274c3c2d696a35030 /resources/test_data/honeycomb/persistence.py
parent20cc67d5f23a7f4e05b08012bf3d3a63be4bcf63 (diff)
HONEYCOMB: Remove
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I60d80564050cb786c7b1e0a08f31f8292f82197e
Diffstat (limited to 'resources/test_data/honeycomb/persistence.py')
-rw-r--r--resources/test_data/honeycomb/persistence.py152
1 files changed, 0 insertions, 152 deletions
diff --git a/resources/test_data/honeycomb/persistence.py b/resources/test_data/honeycomb/persistence.py
deleted file mode 100644
index f4ebdd5f23..0000000000
--- a/resources/test_data/honeycomb/persistence.py
+++ /dev/null
@@ -1,152 +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 Honeycomb persistence test suite."""
-
-
-def get_variables(interface):
- """Creates and returns dictionary of test variables.
-
- :param interface: name of super-interface for the tested sub-interface
- :type interface: str
- :return: dictionary of test variables
- :rtype: dict
- """
- # basic settings
- bd_name = 'bd_persist'
- sub_if_id = 1
- sub_if_name = interface + '.' + str(sub_if_id)
-
- variables = {
- # VxLan settings
- 'vx_interface': 'vx_tunnel_test',
- 'vxlan_settings': {'src': '192.168.0.2',
- 'dst': '192.168.0.3',
- "vni": 88,
- 'encap-vrf-id': 0},
- # bridge domain settings
- 'bd_name': bd_name,
- 'bd_settings': {'flood': True,
- 'forward': True,
- 'learn': True,
- 'unknown-unicast-flood': True,
- 'arp-termination': True
- },
- # tap interface settings
- 'tap_interface': 'tap_test',
- 'tap_interface_vat': 'tap0',
- 'tap_settings': {'host-interface-name': 'tap_test',
- 'mac': '08:00:27:c0:5d:37',
- 'id': 1
- },
- 'tap_settings_oper': {'host-interface-name': 'tap_test',
- 'device-name': 'tap0',
- 'tx-ring-size': 256,
- 'rx-ring-size': 256,
- 'mac': '08:00:27:c0:5d:37',
- 'id': 1
- },
- 'tap_settings_vat': {'dev_name': 'tap0',
- 'tx_ring_sz': 256,
- 'rx_ring_sz': 256,
- 'mac': '08:00:27:c0:5d:37',
- 'id': 1
- },
- # vhost-user interface settings
- 'vhost_interface': 'test_vhost',
- 'vhost_user_client': {'socket': 'soc1',
- 'role': 'client'
- },
- # Vlan subinterface settings
- 'sub_if_id': sub_if_id,
- 'sub_if_name': sub_if_name,
- 'sub_if_1_settings': {
- "identifier": sub_if_id,
- "vlan-type": "_802dot1q",
- "enabled": "false"
- },
- 'sub_if_1_tags': [
- {
- "index": "0",
- "dot1q-tag": {
- "tag-type": "dot1q-types:s-vlan",
- "vlan-id": "100"
- }
- },
- {
- "index": "1",
- "dot1q-tag": {
- "tag-type": "dot1q-types:c-vlan",
- "vlan-id": "any"
- }
- }
- ],
- 'sub_if_1_match': "vlan-tagged-exact-match",
- 'sub_if_1_oper': {
- "identifier": sub_if_id,
- "oper-status": "up",
- "admin-status": "up",
- "tags": {
- "tag": [
- {
- "index": 1,
- "dot1q-tag": {
- "tag-type": "dot1q-types:c-vlan",
- "vlan-id": "any"
- }
- },
- {
- "index": 0,
- "dot1q-tag": {
- "tag-type": "dot1q-types:s-vlan",
- "vlan-id": 100
- }
- }
- ]
- },
- "match": {
- "vlan-tagged": {
- "match-exact-tags": True
- }
- }
- },
- 'sub_bd_settings': {
- 'bridge-domain': bd_name,
- 'split-horizon-group': '1',
- 'bridged-virtual-interface': 'False'
- },
- 'tag_rewrite_pop_1': {
- "pop-tags": "1"
- },
-
- 'tag_rewrite_pop_1_oper': {
- "vlan-type": "vpp-vlan:_802dot1ad",
- "pop-tags": 1
- },
-
- 'tag_rewrite_pop_1_VAT': {
- 'sub_default': 0,
- 'sub_dot1ad': 0,
- 'sub_exact_match': 1,
- 'sub_inner_vlan_id': 0,
- 'sub_inner_vlan_id_any': 1,
- 'sub_number_of_tags': 2,
- 'sub_outer_vlan_id': 100,
- 'sub_outer_vlan_id_any': 0,
- 'vtr_op': 3,
- 'vtr_push_dot1q': 0,
- 'vtr_tag1': 0,
- 'vtr_tag2': 0
- }
- }
- return variables