Merge "tests: Use constants for icmp and arp in conn_testers"
This commit is contained in:
@@ -47,6 +47,7 @@ PAGINATION_INFINITE = 'infinite'
|
|||||||
SORT_DIRECTION_ASC = 'asc'
|
SORT_DIRECTION_ASC = 'asc'
|
||||||
SORT_DIRECTION_DESC = 'desc'
|
SORT_DIRECTION_DESC = 'desc'
|
||||||
|
|
||||||
|
ETHERTYPE_NAME_ARP = 'arp'
|
||||||
ETHERTYPE_IPV6 = 0x86DD
|
ETHERTYPE_IPV6 = 0x86DD
|
||||||
|
|
||||||
# Protocol names and numbers for Security Groups/Firewalls
|
# 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 import firewall
|
||||||
from neutron.agent.linux import ip_lib
|
from neutron.agent.linux import ip_lib
|
||||||
from neutron.agent.linux import utils
|
from neutron.agent.linux import utils
|
||||||
|
from neutron.common import constants
|
||||||
from neutron.tests.common import machine_fixtures
|
from neutron.tests.common import machine_fixtures
|
||||||
from neutron.tests.common import net_helpers
|
from neutron.tests.common import net_helpers
|
||||||
|
|
||||||
@@ -52,8 +53,8 @@ class ConnectionTester(fixtures.Fixture):
|
|||||||
|
|
||||||
UDP = net_helpers.NetcatTester.UDP
|
UDP = net_helpers.NetcatTester.UDP
|
||||||
TCP = net_helpers.NetcatTester.TCP
|
TCP = net_helpers.NetcatTester.TCP
|
||||||
ICMP = 'icmp'
|
ICMP = constants.PROTO_NAME_ICMP
|
||||||
ARP = 'arp'
|
ARP = constants.ETHERTYPE_NAME_ARP
|
||||||
INGRESS = firewall.INGRESS_DIRECTION
|
INGRESS = firewall.INGRESS_DIRECTION
|
||||||
EGRESS = firewall.EGRESS_DIRECTION
|
EGRESS = firewall.EGRESS_DIRECTION
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user