1 # Copyright 2015-2016 Intel Corporation.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # For OP2P deployment scenario
16 TRAFFICGEN_PORT1_MAC = '02:00:00:00:00:01'
17 TRAFFICGEN_PORT2_MAC = '02:00:00:00:00:02'
18 TRAFFICGEN_PORT1_IP = '1.1.1.1'
19 TRAFFICGEN_PORT2_IP = '90.90.90.90'
21 # To test VXLAN set the ff to ixnetrfc2544v2.tcl
22 TRAFFICGEN_IXNET_TCL_SCRIPT = 'ixnetrfc2544v2.tcl'
28 # dstmac should be set to the MAC address of the DUT's receiving port
29 #VXLAN_FRAME_L2 = {'srcmac':
30 # '01:02:03:04:05:06',
32 # '00:1b:21:b3:48:a9'}
34 VXLAN_FRAME_L2 = {'srcmac': '',
38 # FOR IXIA IxExplorer - VXLAN INNER FRAME
39 # The following lines can be removed if IXIA support will be dropped:
40 # 'protocolpad': 'true',
42 # '080000000000630006050403020101020304050608004500002e000000004011095bc0a8000ac0a8f0090bb80bb9001a2e93000102030405060708090a0b0c0d0e0f1011',
43 # protocolpadbytes contains the following values:
44 # VxLAN header with VNI 99 (0x63)
45 # Inner SRC 01:02:03:04:05:06
46 # Inner DST 06:05:04:03:02:01
48 # IP DST 192.168.240.9
49 # SRC port 3000 (0x0BB8)
50 # DST port 3001 (0x0BB9)
54 VXLAN_FRAME_L3 = {'proto': 'udp',
56 'srcip': TRAFFICGEN_PORT1_IP,
60 VXLAN_FRAME_l4 = {'srcport': 4789,
68 'inner_srcport': 3000,
69 'inner_dstport': 3001,
71 'protocolpadbytes': '',
74 GRE_FRAME_L2 = {'srcmac': '',
78 GRE_FRAME_L3 = {'proto': 'gre',
80 'srcip': TRAFFICGEN_PORT1_IP,
84 GRE_FRAME_l4 = {'srcport': 0,
91 'inner_srcport': 3000,
92 'inner_dstport': 3001,
94 'protocolpadbytes': '',