Fix typos in networking-l2gw repo

Some clean up using topy.
$ topy -a networking-l2gw

TrivialFix

Change-Id: Ia32256ed968a5e2f2fa580b39960d936b6300199
stable/ocata
Abhishek Raut 7 years ago
parent 3bc3d23410
commit 965b953c42

@ -364,7 +364,7 @@ class L2GatewayMixin(l2gateway.L2GatewayPluginBase,
def _admin_check(self, context, action):
"""Admin role check helper."""
# TODO(selva): his check should be required if the tenant_id is
# specified inthe request, otherwise the policy.json do a trick
# specified in the request, otherwise the policy.json do a trick
# this need further revision.
if not context.is_admin:
reason = _('Cannot %s resource for non admin tenant') % action

@ -283,7 +283,7 @@ def get_ucast_mac_local(context, record_dict):
def get_ucast_mac_remote_by_mac_and_ls(context, record_dict):
"""Get ucast macs remote that matches the MAC addres and
"""Get ucast macs remote that matches the MAC address and
ovsdb_identifier.
"""

@ -46,9 +46,9 @@ class L2GatewayExtensionTestJSON(base.BaseAdminNetworkTest):
@classmethod
def resource_setup(cls):
super(L2GatewayExtensionTestJSON, cls).resource_setup()
# Atleast one switch detail should be provided to run the tests
# At least one switch detail should be provided to run the tests
if (len(CONF.network.l2gw_switch) < 0):
msg = ('Atleast one switch detail must be defined.')
msg = ('At least one switch detail must be defined.')
raise cls.skipException(msg)
if not test.is_extension_enabled('l2gateway', 'network'):
msg = "L2Gateway Extension not enabled."

@ -35,9 +35,9 @@ class L2GatewaysNegativeTestJSON(base.BaseNetworkTest):
@classmethod
def resource_setup(cls):
super(L2GatewaysNegativeTestJSON, cls).resource_setup()
# Atleast one switch detail should be provided to run the tests
# At least one switch detail should be provided to run the tests
if (len(CONF.network.l2gw_switch) < 0):
msg = ('Atleast one switch detail must be defined.')
msg = ('At least one switch detail must be defined.')
raise cls.skipException(msg)
if not test.is_extension_enabled('l2gateway', 'network'):
msg = "L2Gateway Extension not enabled."

@ -121,7 +121,7 @@ class TestL2GatewayBasic(base.BaseAdminNetworkTest):
serverstatus = '/'.join((server_status, str(task_state)))
waitsec = (time.time() - start_time)
LOG.info(
_LI('State transtion %(oldstatus)s => %(serverstatus)s'
_LI('State transition %(oldstatus)s => %(serverstatus)s'
'after %(waitsec)d second wait') %
{'oldstatus': oldstatus, 'serverstatus': serverstatus,
'waitsec': waitsec}

@ -80,7 +80,7 @@ Note: These commands/APIs can be executed only by the admin users.
L2 gateways.
interface-name1 and interface-name2 ... interface-nameN are interfaces on
the gateways.
seg-id indicates the segementation identifier of the physical network to
seg-id indicates the segmentation identifier of the physical network to
which the interfaces belong to.
2. Updating a logical gateway
@ -676,8 +676,8 @@ and port2 are disconnected, then the plugin instructs the compute node
to destroy the VXLAN tunnel to the gateway as it is no longer needed.
10. In a case where the VXLAN tunnel exists between the compute node and
the gateway when there is atleast one virtual machine on the compute node
on network net1 and atleast one bare metal server on the gateway, the
the gateway when there is at least one virtual machine on the compute node
on network net1 and at least one bare metal server on the gateway, the
administrator may still want to destroy the VXLAN tunnel between
the compute node and the gateway. This can be done using the below
command.
@ -840,7 +840,7 @@ Other alternatives:
1. https://review.openstack.org/#/c/93613
This can be achieved by the APIs proposed in the current spec by providing
an option to specify other segementation types in future.
an option to specify other segmentation types in future.
2. https://review.openstack.org/#/c/136555

Loading…
Cancel
Save