tests: Use constants for icmp and arp in conn_testers
Change-Id: I417f88b51dae369310710d359e0f602df9404cb1
This commit is contained in:
parent
2fbfd7dadc
commit
66503bd90d
|
@ -47,6 +47,7 @@ PAGINATION_INFINITE = 'infinite'
|
|||
SORT_DIRECTION_ASC = 'asc'
|
||||
SORT_DIRECTION_DESC = 'desc'
|
||||
|
||||
ETHERTYPE_NAME_ARP = 'arp'
|
||||
ETHERTYPE_IPV6 = 0x86DD
|
||||
|
||||
# Protocol names and numbers for Security Groups/Firewalls
|
||||
|
|
|
@ -20,6 +20,7 @@ from oslo_log import log as logging
|
|||
from neutron.agent import firewall
|
||||
from neutron.agent.linux import ip_lib
|
||||
from neutron.agent.linux import utils
|
||||
from neutron.common import constants
|
||||
from neutron.tests.common import machine_fixtures
|
||||
from neutron.tests.common import net_helpers
|
||||
|
||||
|
@ -52,8 +53,8 @@ class ConnectionTester(fixtures.Fixture):
|
|||
|
||||
UDP = net_helpers.NetcatTester.UDP
|
||||
TCP = net_helpers.NetcatTester.TCP
|
||||
ICMP = 'icmp'
|
||||
ARP = 'arp'
|
||||
ICMP = constants.PROTO_NAME_ICMP
|
||||
ARP = constants.ETHERTYPE_NAME_ARP
|
||||
INGRESS = firewall.INGRESS_DIRECTION
|
||||
EGRESS = firewall.EGRESS_DIRECTION
|
||||
|
||||
|
|
Loading…
Reference in New Issue