Fix typos in neutron code
Fix typos found in neutron code and docs Change-Id: I4afc3a4b36dd47d47d1238ac22e7f09e2d75050d Related-Bug: #1424139
This commit is contained in:
parent
05db2fdc67
commit
e12851f2df
|
@ -276,7 +276,7 @@ class FlavorManager(common_db_mixin.CommonDbMixin):
|
|||
sp = service_profile['service_profile']
|
||||
with context.session.begin(subtransactions=True):
|
||||
driver_klass = self._load_dummy_driver(sp['driver'])
|
||||
# 'get_service_type' must be a static method so it cant be changed
|
||||
# 'get_service_type' must be a static method so it can't be changed
|
||||
svc_type = DummyServiceDriver.get_service_type()
|
||||
|
||||
sp_db = ServiceProfile(id=uuidutils.generate_uuid(),
|
||||
|
|
|
@ -154,11 +154,12 @@ class ConnectionTester(fixtures.Fixture):
|
|||
dst_port_info = str()
|
||||
src_port_info = str()
|
||||
if dst_port is not None:
|
||||
dst_port_info = " and destionation port %d" % dst_port
|
||||
dst_port_info = " and destination port %d" % dst_port
|
||||
if src_port is not None:
|
||||
src_port_info = " and source port %d" % src_port
|
||||
raise ConnectionTesterException("%s connection with %s protocol%s"
|
||||
"%s was established but it "
|
||||
raise ConnectionTesterException("%s connection with protocol %s, "
|
||||
"source port %s, destination "
|
||||
"port %s was established but it "
|
||||
"shouldn't be possible" % (
|
||||
direction, protocol,
|
||||
src_port_info, dst_port_info))
|
||||
|
@ -191,8 +192,8 @@ class ConnectionTester(fixtures.Fixture):
|
|||
pass
|
||||
else:
|
||||
raise ConnectionTesterException(
|
||||
'Established %s connection with protocol %s, source port %s, '
|
||||
'destination port %s can still send packets throught' % (
|
||||
'Established %s connection with protocol %s, source port %s, '
|
||||
'destination port %s can still send packets through' % (
|
||||
direction, protocol, src_port, dst_port))
|
||||
|
||||
@_validate_direction
|
||||
|
|
Loading…
Reference in New Issue