From 85c1917f7e9334c31d81c87f635d3eff8f175e1a Mon Sep 17 00:00:00 2001 From: FUJITA Tomonori Date: Tue, 27 May 2014 11:34:07 -0700 Subject: [PATCH] bgp: set bgp-config-file default None allowing not use a config file. Signed-off-by: FUJITA Tomonori --- ryu/services/protocols/bgp/application.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ryu/services/protocols/bgp/application.py b/ryu/services/protocols/bgp/application.py index 01649263..d9e3ebf9 100644 --- a/ryu/services/protocols/bgp/application.py +++ b/ryu/services/protocols/bgp/application.py @@ -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') ])