bgp: fix pep8 warnings

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2014-10-11 17:00:44 +09:00
parent 5fc3113d73
commit 9bfba7fd54
2 changed files with 7 additions and 5 deletions

View File

@ -224,7 +224,8 @@ class BGPSpeaker(object):
``is_next_hop_self`` specifies whether the BGP speaker announces
its own ip address to iBGP neighbor or not as path's next_hop address.
``local_address`` specifies Loopback interface address for iBGP peering.
``local_address`` specifies Loopback interface address for
iBGP peering.
``local_port`` specifies source TCP port for iBGP peering.

View File

@ -1038,11 +1038,12 @@ class Peer(Source, Sink, NeighborConfListener, Activity):
const.STD_BGP_SERVER_PORT_NUM)
if bind_addr:
LOG.debug('%s trying to connect from %s to %s'
% (self, bind_addr, peer_address))
LOG.debug('%s trying to connect from'
'%s to %s' % (self, bind_addr,
peer_address))
else:
LOG.debug('%s trying to connect to %s'
% (self, peer_address))
LOG.debug('%s trying to connect to %s' % (self,
peer_address))
tcp_conn_timeout = self._common_conf.tcp_conn_timeout
try:
password = self._neigh_conf.password