diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2016-10-24 17:18:45 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2016-10-25 22:41:08 +0900 |
commit | 1dfe90d17ad0692e71395c6e70ac3bff28190cc4 (patch) | |
tree | 8fb0f890ad1921f03c8a63916a669466e122c911 | |
parent | bc7f43aba34e1f7b57514ee507352847cbb2f1f2 (diff) |
flags: Add CLI options for BGP application
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/flags.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ryu/flags.py b/ryu/flags.py index e1fabf84..43403b5c 100644 --- a/ryu/flags.py +++ b/ryu/flags.py @@ -57,3 +57,18 @@ CONF.register_cli_opts([ help='interval time in seconds of each test ' '(default: 0)'), ], group='test-switch') + + +DEFAULT_RPC_PORT = 50002 +DEFAULT_RPC_HOST = '0.0.0.0' + +CONF = cfg.CONF +CONF.register_cli_opts([ + cfg.IntOpt('rpc-port', default=DEFAULT_RPC_PORT, + help='Port for RPC server (default: %s)' % DEFAULT_RPC_PORT), + cfg.StrOpt('rpc-host', default=DEFAULT_RPC_HOST, + help='IP for RPC server (default: %s)' % DEFAULT_RPC_HOST), + cfg.StrOpt('config-file', default=None, + help='The config file formatted in Python source file. ' + 'Please refer to "bgp_sample_conf.py" for details.') +], group='bgp-app') |