From d0941d4bc2b29ed6deaa28a0463669110b6ab1e5 Mon Sep 17 00:00:00 2001 From: "vikram.choudhary" Date: Fri, 6 May 2016 15:24:09 +0530 Subject: [PATCH] Added OSLO config framework This patch adds OSLO config framework required by neutron-dynamic-routing repository for defining configuration parameters. Below changes are done as part of this patch-set: - Added OSLO config framework. - PEP8 changes for genconfig check. Change-Id: Id3db0e9c5943ce913f5b2cca8d05a9ade37b3f68 Implements: blueprint bgp-spinout Partial-Bug: #1560003 --- .gitignore | 1 + etc/README.txt | 9 +++++++++ etc/oslo-config-generator/bgp_dragent.ini | 5 +++++ tox.ini | 1 + 4 files changed, 16 insertions(+) create mode 100644 etc/README.txt create mode 100644 etc/oslo-config-generator/bgp_dragent.ini diff --git a/.gitignore b/.gitignore index 3ac38a21..2eb709a7 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ cover/ covhtml/ dist/ doc/build +etc/*.sample *.DS_Store *.pyc neutron.egg-info/ diff --git a/etc/README.txt b/etc/README.txt new file mode 100644 index 00000000..adf61672 --- /dev/null +++ b/etc/README.txt @@ -0,0 +1,9 @@ +To generate the sample neutron-dynamic-routing configuration files, run the +following command from the top level of the neutron-dynamic-routing directory: + +tox -e genconfig + +If a 'tox' environment is unavailable, then you can run the following script +instead to generate the configuration files: + +./tools/generate_config_file_samples.sh diff --git a/etc/oslo-config-generator/bgp_dragent.ini b/etc/oslo-config-generator/bgp_dragent.ini new file mode 100644 index 00000000..3030cdd0 --- /dev/null +++ b/etc/oslo-config-generator/bgp_dragent.ini @@ -0,0 +1,5 @@ +[DEFAULT] +output_file = etc/bgp_dragent.ini.sample +wrap_width = 79 + +namespace = bgp.agent diff --git a/tox.ini b/tox.ini index f1bb025f..26fd93f2 100644 --- a/tox.ini +++ b/tox.ini @@ -27,6 +27,7 @@ commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasen commands = flake8 neutron-db-manage --subproject neutron-dynamic-routing --database-connection sqlite:// check_migration + {[testenv:genconfig]commands} [testenv:i18n] commands = python ./tools/check_i18n.py ./neutron-dynamic-routing ./tools/i18n_cfg.py