From b50edcca47c8c0d4263a7f93e3c86476d21de428 Mon Sep 17 00:00:00 2001 From: Anusree Date: Thu, 26 Jul 2018 01:59:56 +0530 Subject: [PATCH] Enable mutable config in dragonflow New releases of oslo.config support a 'mutable' parameter to Opts. oslo.service provides an option here Icec3e664f3fe72614e373b2938e8dee53cf8bc5e allows services to tell oslo.service they want mutate_config_files to be called by passing a parameter. This commit is to use the same. This allows dragonflow to benefit from I1e7a69de169cc85f4c09954b2f46ce2da7106d90, where the 'debug' option (owned by oslo.log) is made mutable. we should be able to turn debug logging on and off by changing the config. tc goal: https://governance.openstack.org/tc/goals/rocky/enable-mutable-configuration.html Change-Id: I0ab4405413f786052fcf7f896b70e627926803ec --- dragonflow/controller/df_bgp_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dragonflow/controller/df_bgp_service.py b/dragonflow/controller/df_bgp_service.py index 89259d60c..ef48196a3 100644 --- a/dragonflow/controller/df_bgp_service.py +++ b/dragonflow/controller/df_bgp_service.py @@ -168,4 +168,4 @@ def main(): nb_api = api_nb.NbApi.get_instance() server = BGPService(nb_api) df_service.register_service('df-bgp-service', nb_api) - service.launch(cfg.CONF, server).wait() + service.launch(cfg.CONF, server, restart_method='mutate').wait()