From 582eac5c30e78f65ba0127aed2cb7442f4122fd2 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Fri, 3 Apr 2020 12:18:40 -0400 Subject: misc: fix python sonarcloud BLOCKER level issues Fix of the top 11 python issues flagged as BLOCKER. Ticket: VPP-1856 Type: fix Change-Id: Icf4691e62f4a69d6ee196b6d6e2ab52d961b5c76 Signed-off-by: Paul Vinciguerra --- test/template_ipsec.py | 2 +- test/test_ip6.py | 1 + test/vpp_pg_interface.py | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/template_ipsec.py b/test/template_ipsec.py index 5a700e89f6f..1caed0dd932 100644 --- a/test/template_ipsec.py +++ b/test/template_ipsec.py @@ -5,7 +5,7 @@ import struct from scapy.layers.inet import IP, ICMP, TCP, UDP from scapy.layers.ipsec import SecurityAssociation, ESP from scapy.layers.l2 import Ether -from scapy.packet import Raw +from scapy.packet import raw, Raw from scapy.layers.inet6 import IPv6, ICMPv6EchoRequest, IPv6ExtHdrHopByHop, \ IPv6ExtHdrFragment, IPv6ExtHdrDestOpt diff --git a/test/test_ip6.py b/test/test_ip6.py index 1f00ed32a8c..63d3e41f915 100644 --- a/test/test_ip6.py +++ b/test/test_ip6.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 +import socket from socket import inet_pton, inet_ntop import unittest diff --git a/test/vpp_pg_interface.py b/test/vpp_pg_interface.py index b7f1881d516..32c0eaef401 100755 --- a/test/vpp_pg_interface.py +++ b/test/vpp_pg_interface.py @@ -1,7 +1,8 @@ import os -import time +import socket from socket import inet_pton, inet_ntop import struct +import time from traceback import format_exc, format_stack import scapy.compat -- cgit 1.2.3-korg