ixia: VLAN support without l3/l4 headers 05/32505/1
authorMartin Klozik <martinx.klozik@intel.com>
Thu, 30 Mar 2017 13:50:28 +0000 (14:50 +0100)
committerMartin Klozik <martinx.klozik@intel.com>
Thu, 30 Mar 2017 14:01:39 +0000 (15:01 +0100)
Remove dependency of VLAN headers on L3 and L4 protocols.

JIRA: VSPERF-499

Change-Id: Ic16dbbf2b503be7dd48a7bf55e45795bbb9f7e67
Signed-off-by: Martin Klozik <martinx.klozik@intel.com>
Reviewed-by: Al Morton <acmorton@att.com>
Reviewed-by: Christian Trautman <ctrautma@redhat.com>
Reviewed-by: Sridhar Rao <sridhar.rao@spirent.com>
Reviewed-by: Trevor Cooper <trevor.cooper@intel.com>
tools/functions.py

index da43edc..e8bc31d 100644 (file)
@@ -146,10 +146,6 @@ def check_traffic(traffic):
     """Check traffic definition and correct it if possible.
     """
     # check if requested networking layers make sense
-    if traffic['vlan']['enabled']:
-        if not (traffic['l3']['enabled'] and traffic['l4']['enabled']):
-            raise RuntimeError('TRAFFIC misconfiguration: both l3 and l4 must '
-                               'be enabled if vlan is enabled.')
     if traffic['l4']['enabled']:
         if not traffic['l3']['enabled']:
             raise RuntimeError('TRAFFIC misconfiguration: l3 must be enabled '