silence pep8 warnings to the previous commit

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2015-03-16 21:30:09 +09:00
parent b636219007
commit f10f4f7cfd
5 changed files with 12 additions and 9 deletions

View File

@ -42,7 +42,7 @@ class BMPStation(app_manager.RyuApp):
def start(self):
super(BMPStation, self).start()
self.logger.debug("listening on %s:%s", self.server_host,
self.server_port)
self.server_port)
return hub.spawn(StreamServer((self.server_host, self.server_port),
self.loop).serve_forever)

View File

@ -449,8 +449,7 @@ Hello, this is Ryu BGP speaker (version %s).
self._startnewline()
LOG.debug("curpos: %d, buf: %s, prompted: %s", self.curpos,
self.buf,
self.prompted)
self.buf, self.prompted)
LOG.info("session end")

View File

@ -739,7 +739,7 @@ class Peer(Source, Sink, NeighborConfListener, Activity):
elif isinstance(outgoing_msg, BGPUpdate):
self._protocol.send(outgoing_msg)
LOG.debug('Update %s>> %s', self._neigh_conf.ip_address,
outgoing_msg)
outgoing_msg)
self.state.incr(PeerCounterNames.SENT_UPDATES)
def request_route_refresh(self, *route_families):

View File

@ -373,7 +373,7 @@ class BgpProtocol(Protocol, Activity):
self._signal_bus.bgp_error(self._peer, code, subcode, reason)
if len(self._localname):
LOG.error('Sent notification to %r >> %s', self._localname,
notification)
notification)
self._socket.close()
def _send_with_lock(self, msg):

View File

@ -311,7 +311,8 @@ class VRRPV2StateMaster(VRRPState):
# In fact this can be happned due to event scheduling
vrrp_router = self.vrrp_router
vrrp_router.logger.debug('%s master_down %s %s',
self.__class__.__name__, ev.__class__.__name__, vrrp_router.state)
self.__class__.__name__,
ev.__class__.__name__, vrrp_router.state)
def _adver(self):
vrrp_router = self.vrrp_router
@ -399,7 +400,8 @@ class VRRPV2StateBackup(VRRPState):
# In fact this can be happned due to event scheduling
vrrp_router = self.vrrp_router
vrrp_router.logger.debug('%s adver %s %s',
self.__class__.__name__, ev.__class__.__name__, vrrp_router.state)
self.__class__.__name__,
ev.__class__.__name__, vrrp_router.state)
def preempt_delay(self, ev):
self.vrrp_router.logger.warn('%s preempt_delay',
@ -514,7 +516,8 @@ class VRRPV3StateMaster(VRRPState):
# In fact this can be happned due to event scheduling
vrrp_router = self.vrrp_router
vrrp_router.logger.debug('%s master_down %s %s',
self.__class__.__name__, ev.__class__.__name__, vrrp_router.state)
self.__class__.__name__,
ev.__class__.__name__, vrrp_router.state)
def _adver(self):
vrrp_router = self.vrrp_router
@ -614,7 +617,8 @@ class VRRPV3StateBackup(VRRPState):
# In fact this can be happned due to event scheduling
vrrp_router = self.vrrp_router
vrrp_router.logger.debug('adver %s %s %s',
self.__class__.__name__, ev.__class__.__name__, vrrp_router.state)
self.__class__.__name__,
ev.__class__.__name__, vrrp_router.state)
def preempt_delay(self, ev):
self.vrrp_router.logger.warn('%s preempt_delay',