Merge "Print details of Switchport in log"
This commit is contained in:
commit
483d29d679
|
@ -63,10 +63,10 @@ class Topology(object):
|
||||||
@param switch_port:
|
@param switch_port:
|
||||||
@return : None
|
@return : None
|
||||||
"""
|
"""
|
||||||
LOG.info("Ovs port updated: %s", switch_port)
|
LOG.info("Ovs port updated: %r", switch_port)
|
||||||
|
|
||||||
if switch_port.type not in _SWITCH_PORT_TYPES:
|
if switch_port.type not in _SWITCH_PORT_TYPES:
|
||||||
LOG.info("Unmanaged port online: %s", switch_port)
|
LOG.info("Unmanaged port online: %r", switch_port)
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -106,7 +106,7 @@ class Topology(object):
|
||||||
@return : None
|
@return : None
|
||||||
"""
|
"""
|
||||||
if switch_port.type not in _SWITCH_PORT_TYPES:
|
if switch_port.type not in _SWITCH_PORT_TYPES:
|
||||||
LOG.info("Unmanaged port offline: %s", switch_port)
|
LOG.info("Unmanaged port offline: %r", switch_port)
|
||||||
return
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -169,7 +169,7 @@ class Topology(object):
|
||||||
def _compute_port_updated(self, switch_port):
|
def _compute_port_updated(self, switch_port):
|
||||||
lport = self._get_lport(switch_port)
|
lport = self._get_lport(switch_port)
|
||||||
if lport is None:
|
if lport is None:
|
||||||
LOG.warning("No logical port found for ovs port: %s",
|
LOG.warning("No logical port found for ovs port: %r",
|
||||||
switch_port)
|
switch_port)
|
||||||
return
|
return
|
||||||
topic = lport.topic
|
topic = lport.topic
|
||||||
|
@ -294,7 +294,7 @@ class Topology(object):
|
||||||
if switch_port.type == constants.SWITCH_COMPUTE_INTERFACE:
|
if switch_port.type == constants.SWITCH_COMPUTE_INTERFACE:
|
||||||
lport = self._get_lport(switch_port)
|
lport = self._get_lport(switch_port)
|
||||||
if lport is None:
|
if lport is None:
|
||||||
LOG.warning("No logical port found for ovs port: %s",
|
LOG.warning("No logical port found for ovs port: %r",
|
||||||
switch_port)
|
switch_port)
|
||||||
continue
|
continue
|
||||||
topic = lport.topic
|
topic = lport.topic
|
||||||
|
|
Loading…
Reference in New Issue