diff options
Diffstat (limited to 'test/test_span.py')
-rw-r--r-- | test/test_span.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_span.py b/test/test_span.py index 8eea1b0661d..b151ef4f7a1 100644 --- a/test/test_span.py +++ b/test/test_span.py @@ -3,7 +3,8 @@ import unittest from scapy.packet import Raw -from scapy.layers.l2 import Ether, GRE, ERSPAN +from scapy.layers.l2 import Ether, GRE +from scapy.contrib.erspan import ERSPAN from scapy.layers.inet import IP, UDP from scapy.layers.vxlan import VXLAN @@ -14,6 +15,7 @@ from vpp_gre_interface import VppGreInterface from vpp_vxlan_tunnel import VppVxlanTunnel from collections import namedtuple from vpp_papi import VppEnum +from config import config Tag = namedtuple("Tag", ["dot1", "vlan"]) @@ -21,6 +23,9 @@ DOT1AD = 0x88A8 DOT1Q = 0x8100 +@unittest.skipIf( + "vxlan" in config.excluded_plugins, "Exclude tests requiring VXLAN plugin" +) class TestSpan(VppTestCase): """SPAN Test Case""" |