mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-01-24 18:11:24 +01:00
bgp: set bgp-config-file default None
allowing not use a config file. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
a1416d6205
commit
85c1917f7e
@ -50,13 +50,10 @@ from ryu.services.protocols.bgp.utils.validation import is_valid_ipv4
|
||||
LOG = logging.getLogger('bgpspeaker.application')
|
||||
CONF = cfg.CONF
|
||||
|
||||
DEFAULT_CONFIG_PATH = path.dirname(path.abspath(__file__)) + \
|
||||
'/bgp_sample_conf.py'
|
||||
|
||||
CONF.register_opts([
|
||||
cfg.IntOpt('bind-port', default=50002, help='rpc-port'),
|
||||
cfg.StrOpt('bind-ip', default='0.0.0.0', help='rpc-bind-ip'),
|
||||
cfg.StrOpt('bgp-config-file', default=DEFAULT_CONFIG_PATH,
|
||||
cfg.StrOpt('bgp-config-file', default=None,
|
||||
help='bgp-config-file')
|
||||
])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user