1 # Copyright (c) 2016 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
6 # http://www.apache.org/licenses/LICENSE-2.0
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
14 """Test variables for SPAN port mirroring test suite."""
17 def get_variables(node,
22 """Create and return a dictionary of test variables.
24 :param node: Honeycomb node.
25 :param interface1: Name of an interface.
26 :param interface2: Name of an interface.
27 :param interface3: Name of an interface.
29 :type interface1: string
30 :type interface2: string
31 :type interface3: string
33 :returns: Dictionary of test variables - settings for Honeycomb's
34 SPAN port mirroring suite.
38 "interface1": interface1,
39 "interface2": interface2,
40 "interface3": interface3,
43 "iface-ref": interface2,
48 "iface-ref": interface2,
53 "iface-ref": interface2,
58 "iface-ref": interface3,
61 "tg_to_dut_if1_ip": "192.168.1.1",
62 "dut_to_tg_if1_ip": "192.168.1.2",