From 4b8014e83855e1da674d3115237c2556742cbdad Mon Sep 17 00:00:00 2001 From: Dino Simeon Madarang Date: Fri, 29 Jan 2016 13:55:53 +0000 Subject: pkt_gen: Add support for generating GENEVE frames Add option to generate GENEVE frames for decapsulation tests. IxNet 7.3X does not have a native support of GENEVE protocol. The template, GeneveIxNetTemplate.xml_ClearText.xml, should be imported into IxNET for this testcase to work. Recent changes: * Updated dependency * Updated userguide * Move inner frame variables & srcport/dstport to L4 Change-Id: I90f5fb256b51ae44bc1bc7983c599c9dbbffea08 JIRA: VSPERF-192 Signed-off-by: Dino Simeon Madarang Reviewed-by: Maryam Tahhan Reviewed-by: Martin Klozik Reviewed-by: Mark D. Gray Reviewed-by: Al Morton Reviewed-by: Brian Castelli --- conf/integration/03_traffic.conf | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'conf') diff --git a/conf/integration/03_traffic.conf b/conf/integration/03_traffic.conf index 7a890ad3..501a3ea8 100644 --- a/conf/integration/03_traffic.conf +++ b/conf/integration/03_traffic.conf @@ -71,6 +71,8 @@ VXLAN_FRAME_l4 = {'srcport': 4789, 'protocolpadbytes': '', } +# TEST frame +# dstmac should be set to the MAC address of the DUT's receiving port GRE_FRAME_L2 = {'srcmac': '', 'dstmac': '', } @@ -93,3 +95,31 @@ GRE_FRAME_l4 = {'srcport': 0, 'protocolpad': '', 'protocolpadbytes': '', } + + +# TEST frame +# dstmac should be set to the MAC address of the DUT's receiving port +GENEVE_FRAME_L2 = {'srcmac': '', + 'dstmac': '', + } + +GENEVE_FRAME_L3 = {'proto': 'udp', + 'packetsize': 64, + 'srcip': TRAFFICGEN_PORT1_IP, + 'dstip': '', + } + +# UDP source/destination port (OUTER FRAME) +# Variables with prefix inner_ are for the +# INNER_FRAME +GENEVE_FRAME_l4 = {'srcport': 6081, + 'dstport': 6081, + 'geneve_vni': 0, + 'inner_srcmac': '', + 'inner_dstmac': '', + 'inner_srcip': '', + 'inner_dstip': '', + 'inner_proto': 'tcp', + 'inner_srcport': 3000, + 'inner_dstport': 3001, + } -- cgit 1.2.3-korg