mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 05:46:10 +02:00
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:
parent
cffa13e0f9
commit
6b4a5f7470
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user