Use 'segment' instead of 'network' in log

This logging statement is about segments, not networks.

TrivialFix
Change-Id: I4753557f4530e45ed3eddffec5287ec0a1ae8ed8
This commit is contained in:
Lizhixin 2017-03-06 16:24:56 +08:00 committed by Kevin Benton
parent 5691f29e8f
commit e3616cec7a
1 changed files with 4 additions and 4 deletions

View File

@ -233,10 +233,10 @@ class SimpleAgentMechanismDriverBase(AgentMechanismDriverBase):
network_type = segment[api.NETWORK_TYPE]
if network_type not in allowed_network_types:
LOG.debug(
'Network %(network_id)s is of type %(network_type)s '
'Segment %(id)s is of type %(network_type)s '
'but agent %(agent)s or mechanism driver only '
'support %(allowed_network_types)s.',
{'network_id': segment['id'],
{'id': segment['id'],
'network_type': network_type,
'agent': agent['host'],
'allowed_network_types': allowed_network_types})
@ -246,12 +246,12 @@ class SimpleAgentMechanismDriverBase(AgentMechanismDriverBase):
physnet = segment[api.PHYSICAL_NETWORK]
if not self.physnet_in_mappings(physnet, mappings):
LOG.debug(
'Network %(network_id)s is connected to physical '
'Segment %(id)s is connected to physical '
'network %(physnet)s, but agent %(agent)s reported '
'physical networks %(mappings)s. '
'The physical network must be configured on the '
'agent if binding is to succeed.',
{'network_id': segment['id'],
{'id': segment['id'],
'physnet': physnet,
'agent': agent['host'],
'mappings': mappings})