bgp: improved debug message in neighbor creation

show neighbor's IP address instead of meaningless string

Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
ISHIDA Wataru 2014-03-31 04:29:21 +00:00 committed by FUJITA Tomonori
parent 498611c32d
commit b1a3201705

View File

@ -176,7 +176,7 @@ class BaseApplication(object):
try:
bgp_neighbor[neighbors.IP_ADDRESS] = ip
call('neighbor.create', **bgp_neighbor)
LOG.debug('Added neighbor %s' % neighbors.IP_ADDRESS)
LOG.debug('Added neighbor %s' % ip)
except RuntimeConfigError as re:
LOG.error(re)
LOG.error(traceback.format_exc())