tests: Use errno value rather than a specific int
[vpp.git] / test / test_gtpu.py
index a6d54f5..fd97205 100644 (file)
@@ -1,18 +1,15 @@
 #!/usr/bin/env python3
 
-import socket
 from util import ip4_range
 import unittest
-from framework import tag_fixme_vpp_workers
-from framework import VppTestCase, VppTestRunner
+from framework import VppTestCase
+from asfframework import VppTestRunner, tag_fixme_vpp_workers
 from template_bd import BridgeDomain
 
 from scapy.layers.l2 import Ether
-from scapy.packet import Raw
 from scapy.layers.inet import IP, UDP
 from scapy.layers.inet6 import IPv6
 from scapy.contrib.gtp import GTP_U_Header
-from scapy.utils import atol
 
 import util
 from vpp_ip_route import VppIpRoute, VppRoutePath
@@ -38,7 +35,6 @@ class TestGtpuUDP(VppTestCase):
         self.pg0.config_ip6()
 
     def _check_udp_port_ip4(self, enabled=True):
-
         pkt = (
             Ether(src=self.pg0.local_mac, dst=self.pg0.remote_mac)
             / IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4)
@@ -58,7 +54,6 @@ class TestGtpuUDP(VppTestCase):
         self.ip4_err = err
 
     def _check_udp_port_ip6(self, enabled=True):
-
         pkt = (
             Ether(src=self.pg0.local_mac, dst=self.pg0.remote_mac)
             / IPv6(src=self.pg0.remote_ip6, dst=self.pg0.local_ip6)