ryu/controller/controller: add a helper method, is_reserved_port()

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Isaku Yamahata 2013-02-08 12:28:09 +09:00 committed by FUJITA Tomonori
parent cffa13e0f9
commit 6b4a5f7470

View File

@ -290,6 +290,9 @@ class Datapath(object):
self.send_msg(set_format)
self.send_barrier()
def is_reserved_port(self, port_no):
return port_no > self.ofproto.OFPP_MAX
def datapath_connection_factory(socket, address):
LOG.debug('connected socket:%s address:%s', socket, address)