aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_dhcp6.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_dhcp6.py')
-rw-r--r--test/test_dhcp6.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test_dhcp6.py b/test/test_dhcp6.py
index 5c8e4354ab0..1328a62e1d3 100644
--- a/test/test_dhcp6.py
+++ b/test/test_dhcp6.py
@@ -24,14 +24,17 @@ from scapy.layers.inet6 import IPv6, Ether, UDP
from framework import VppTestCase
from asfframework import tag_fixme_vpp_workers, tag_run_solo
from vpp_papi import VppEnum
+from config import config
import util
import os
+import unittest
def ip6_normalize(ip6):
return inet_ntop(AF_INET6, inet_pton(AF_INET6, ip6))
+@unittest.skipIf("dhcp" in config.excluded_plugins, "Exclude DHCP plugin tests")
class TestDHCPv6DataPlane(VppTestCase):
"""DHCPv6 Data Plane Test Case"""
@@ -243,6 +246,7 @@ class TestDHCPv6DataPlane(VppTestCase):
@tag_run_solo
+@unittest.skipIf("dhcp" in config.excluded_plugins, "Exclude DHCP plugin tests")
class TestDHCPv6IANAControlPlane(VppTestCase):
"""DHCPv6 IA NA Control Plane Test Case"""
@@ -303,7 +307,7 @@ class TestDHCPv6IANAControlPlane(VppTestCase):
return addresses.difference(self.initial_addresses)
def validate_duid_ll(self, duid):
- DUID_LL(duid)
+ DUID_LL(bytes(duid))
def validate_packet(self, packet, msg_type, is_resend=False):
try:
@@ -497,6 +501,7 @@ class TestDHCPv6IANAControlPlane(VppTestCase):
@tag_fixme_vpp_workers
+@unittest.skipIf("dhcp" in config.excluded_plugins, "Exclude DHCP plugin tests")
class TestDHCPv6PDControlPlane(VppTestCase):
"""DHCPv6 PD Control Plane Test Case"""
@@ -557,7 +562,7 @@ class TestDHCPv6PDControlPlane(VppTestCase):
return addresses.difference(self.initial_addresses)
def validate_duid_ll(self, duid):
- DUID_LL(duid)
+ DUID_LL(bytes(duid))
def validate_packet(self, packet, msg_type, is_resend=False):
try: