Add l3_agent_mode configuration in tempest

Add dvr_snat agent mode, this will works for
all types of routers.

Change-Id: I029504d53d4a6e4178c0384be9f21408f333ce20
Closes-Bug: #1731857
This commit is contained in:
Dongcan Ye 2018-02-11 10:41:30 +00:00
parent 132e43bfc7
commit 7eeec2a0c9
3 changed files with 16 additions and 0 deletions

View File

@ -127,6 +127,9 @@ case $VENV in
if [[ "$FLAVOR" = "dvrskip" ]]; then
load_conf_hook disable_dvr
fi
if [[ "$VENV" =~ "dsvm-scenario-ovs" ]]; then
load_conf_hook dvr
fi
;;
"rally")

View File

@ -0,0 +1,9 @@
[[test-config|$TEMPEST_CONFIG]]
[neutron_plugin_options]
l3_agent_mode = dvr_snat
[[post-config|/$NEUTRON_L3_CONF]]
[DEFAULT]
agent_mode = dvr_snat

View File

@ -38,6 +38,10 @@ NeutronPluginOptions = [
help='The availability zone for all agents in the deployment. '
'Configure this only when the single value is used by '
'all agents in the deployment.'),
cfg.StrOpt('l3_agent_mode',
help='The agent mode for L3 agents in the deployment. '
'Configure this only when the single value is used by '
'all agents in the deployment.'),
]
# TODO(amuller): Redo configuration options registration as part of the planned