tests: fix UDP port range for mdata and bufmon
[vpp.git] / test / test_wireguard.py
index e63508a..4e96792 100644 (file)
@@ -6,6 +6,7 @@ import base64
 import os
 
 from hashlib import blake2s
+from config import config
 from scapy.packet import Packet
 from scapy.packet import Raw
 from scapy.layers.l2 import Ether, ARP
@@ -220,7 +221,7 @@ class VppWgPeer(VppObject):
                 self.allowed_ips.sort()
                 p.peer.allowed_ips.sort()
 
-                for (a1, a2) in zip(self.allowed_ips, p.peer.allowed_ips):
+                for a1, a2 in zip(self.allowed_ips, p.peer.allowed_ips):
                     if str(a1) != str(a2):
                         return False
                 return True
@@ -509,6 +510,9 @@ def is_handshake_init(p):
     return wg_p[Wireguard].message_type == 1
 
 
+@unittest.skipIf(
+    "wireguard" in config.excluded_plugins, "Exclude Wireguard plugin tests"
+)
 class TestWg(VppTestCase):
     """Wireguard Test Case"""
 
@@ -2848,6 +2852,9 @@ class WireguardHandoffTests(TestWg):
         """Multi-tunnel on the same port"""
 
 
+@unittest.skipIf(
+    "wireguard" in config.excluded_plugins, "Exclude Wireguard plugin tests"
+)
 class TestWgFIB(VppTestCase):
     """Wireguard FIB Test Case"""