Update default OpenFlow port to 6653
IANA has registered TCP port 6653 for OpenFlow, but 6633 was the de facto standard for a long while. So some applications might be using 6633 as the default. But now, Mininet has adopted port 6653 as the default, we migrate to port 6653 too. Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
committed by
FUJITA Tomonori
parent
a20b9e1fcd
commit
7d446f3f79
@@ -52,9 +52,11 @@ CONF = cfg.CONF
|
||||
CONF.register_cli_opts([
|
||||
cfg.StrOpt('ofp-listen-host', default='', help='openflow listen host'),
|
||||
cfg.IntOpt('ofp-tcp-listen-port', default=ofproto_common.OFP_TCP_PORT,
|
||||
help='openflow tcp listen port'),
|
||||
help='openflow tcp listen port '
|
||||
'(default: %d)' % ofproto_common.OFP_TCP_PORT),
|
||||
cfg.IntOpt('ofp-ssl-listen-port', default=ofproto_common.OFP_SSL_PORT,
|
||||
help='openflow ssl listen port'),
|
||||
help='openflow ssl listen port '
|
||||
'(default: %d)' % ofproto_common.OFP_SSL_PORT),
|
||||
cfg.StrOpt('ctl-privkey', default=None, help='controller private key'),
|
||||
cfg.StrOpt('ctl-cert', default=None, help='controller certificate'),
|
||||
cfg.StrOpt('ca-certs', default=None, help='CA certificates')
|
||||
|
||||
@@ -21,10 +21,11 @@ OFP_HEADER_PACK_STR = '!BBHI'
|
||||
OFP_HEADER_SIZE = 8
|
||||
assert calcsize(OFP_HEADER_PACK_STR) == OFP_HEADER_SIZE
|
||||
|
||||
# note: while IANA assigned port number for OpenFlow is 6653,
|
||||
# 6633 is (still) the defacto standard.
|
||||
OFP_TCP_PORT = 6633
|
||||
OFP_SSL_PORT = 6633
|
||||
# Note: IANA assigned port number for OpenFlow is 6653
|
||||
# from OpenFlow 1.3.3 (EXT-133).
|
||||
# Some applications may still use 6633 as the de facto standard though.
|
||||
OFP_TCP_PORT = 6653
|
||||
OFP_SSL_PORT = 6653
|
||||
|
||||
# Vendor/Experimenter IDs
|
||||
# https://rs.opennetworking.org/wiki/display/PUBLIC/ONF+Registry
|
||||
|
||||
@@ -33,5 +33,5 @@ class TestOfprotCommon(unittest.TestCase):
|
||||
eq_(OFP_HEADER_SIZE, 8)
|
||||
|
||||
def test_define_constants(self):
|
||||
eq_(OFP_TCP_PORT, 6633)
|
||||
eq_(OFP_SSL_PORT, 6633)
|
||||
eq_(OFP_TCP_PORT, 6653)
|
||||
eq_(OFP_SSL_PORT, 6653)
|
||||
|
||||
Reference in New Issue
Block a user