https://blueprints.launchpad.net/dragonflow/+spec/oslo-config-generator
This spec refactors the configurations and introduces oslo config generator to auto-generate all the options for Dragonflow.
Currently Dragonflow has many options for different modules. They are all distributed and imported case by case. As more and more modules are going to be introduced, we need to make them managed and centralized.
A good example is neutron[1].
Firstly, we use tox -e genconfig
to generate all the conf files.
If tox is not prepared, we introduce ./tools/generate_config_file_samples.sh
instead.
Secondly, we use etc/oslo-config-generator/dragonflow.ini to manage oslo options. For example:: [DEFAULT] output_file = etc/dragonflow.ini.sample wrap_width = 79 namespace = dragonflow namespace = oslo.log
Finally, we implements dragonflow/opts.py to include all the references of options from different modules of dragonflow.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.