I'm very sorry, the default of "--wsapi-host" on ryu/app/wsgi.py also needs to be fixed. I will post the additional patch soon.
On 2017年02月17日 13:05, IWASE Yusuke wrote: > With netaddr.valid_ipv4/6, empty host is not allowed and will fail > to validate. > This patch changes to the default openflow listen host to "0.0.0.0" > and enable to validate it by using netaddr. > > Note: The default behavior is NOT changed. > > Signed-off-by: IWASE Yusuke <iwase.yusu...@gmail.com> > --- > ryu/controller/controller.py | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/ryu/controller/controller.py b/ryu/controller/controller.py > index 8300f1a..62bca5f 100644 > --- a/ryu/controller/controller.py > +++ b/ryu/controller/controller.py > @@ -48,9 +48,12 @@ from ryu.lib.dpid import dpid_to_str > > LOG = logging.getLogger('ryu.controller.controller') > > +DEFAULT_OFP_HOST = '0.0.0.0' > + > CONF = cfg.CONF > CONF.register_cli_opts([ > - cfg.StrOpt('ofp-listen-host', default='', help='openflow listen host'), > + cfg.StrOpt('ofp-listen-host', default=DEFAULT_OFP_HOST, > + help='openflow listen host (default %s)' % DEFAULT_OFP_HOST), > cfg.IntOpt('ofp-tcp-listen-port', default=None, > help='openflow tcp listen port ' > '(default: %d)' % ofproto_common.OFP_TCP_PORT), > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Ryu-devel mailing list Ryu-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ryu-devel