controller: fix pep8

Signed-off-by: Yoshihiro Kaneko <ykaneko0929@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Yoshihiro Kaneko 2014-05-13 19:33:48 +09:00 committed by FUJITA Tomonori
parent 89a428b10b
commit 16839dfc68
2 changed files with 5 additions and 5 deletions

View File

@ -58,7 +58,7 @@ class OpenFlowController(object):
# entry point
def __call__(self):
#LOG.debug('call')
# LOG.debug('call')
self.server_loop()
def server_loop(self):
@ -84,7 +84,7 @@ class OpenFlowController(object):
CONF.ofp_tcp_listen_port),
datapath_connection_factory)
#LOG.debug('loop')
# LOG.debug('loop')
server.serve_forever()
@ -147,7 +147,7 @@ class Datapath(ofproto_protocol.ProtocolDesc):
msg = ofproto_parser.msg(self,
version, msg_type, msg_len, xid, buf)
#LOG.debug('queue msg %s cls %s', msg, msg.__class__)
# LOG.debug('queue msg %s cls %s', msg, msg.__class__)
if msg:
ev = ofp_event.ofp_msg_to_ev(msg)
self.ofp_brick.send_event_to_observers(ev, self.state)

View File

@ -112,7 +112,7 @@ class DPSet(app_manager.RyuApp):
self.logger.debug('DPSET: Forgetting datapath %s', self.dps[dp.id])
self.logger.debug('DPSET: New datapath %s', dp)
self.dps[dp.id] = dp
if not dp.id in self.port_state:
if dp.id not in self.port_state:
self.port_state[dp.id] = PortState()
ev = EventDP(dp, True)
for port in dp.ports.values():
@ -122,7 +122,7 @@ class DPSet(app_manager.RyuApp):
def _unregister(self, dp):
# see the comment in _register().
if not dp in self.dps.values():
if dp not in self.dps.values():
return
LOG.debug('DPSET: unregister datapath %s', dp)
assert self.dps[dp.id] == dp