diff options
author | Feng Pan <fpan@redhat.com> | 2017-05-02 14:19:15 -0400 |
---|---|---|
committer | Feng Pan <fpan@redhat.com> | 2017-05-02 20:53:56 -0400 |
commit | 1a395e124833173ab69fa86d46837c35db55a3d0 (patch) | |
tree | 0d2a89b7dea21af61ab675595ec81c1cebf7b27f /lib | |
parent | f7e80c32e0456b0997cbe2c8ce6587f16750ac9b (diff) |
Add support for interface role mapping for odl_l3-fdio scenarios
JIRA: APEX-445
opnfv-puppet-tripleo-pr: 24
Change-Id: Idbb855badae2f2b91202961c12931ba54be1beaa
Signed-off-by: Feng Pan <fpan@redhat.com>
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/overcloud-deploy-functions.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/overcloud-deploy-functions.sh b/lib/overcloud-deploy-functions.sh index 542e9cfc..92a7529e 100755 --- a/lib/overcloud-deploy-functions.sh +++ b/lib/overcloud-deploy-functions.sh @@ -189,10 +189,12 @@ EOI EOI fi - # Configure routing node for odl-fdio + # Configure routing node and interface role mapping for odl-fdio if [[ "${deploy_options_array['sdn_l3']}" == 'True' ]]; then ssh -T ${SSH_OPTIONS[@]} "stack@$UNDERCLOUD" <<EOI sed -i "/opendaylight::vpp_routing_node:/c\ opendaylight::vpp_routing_node: ${deploy_options_array['odl_vpp_routing_node']}.${domain_name}" ${ENV_FILE} + sed -i "/ControllerExtraConfig:/ c\ ControllerExtraConfig:\n tripleo::profile::base::neutron::agents::honeycomb::interface_role_mapping: \"['${tenant_nic_mapping_controller_members}:tenant-interface']\"" ${ENV_FILE} + sed -i "/NovaComputeExtraConfig:/ c\ NovaComputeExtraConfig:\n tripleo::profile::base::neutron::agents::honeycomb::interface_role_mapping: \"['${tenant_nic_mapping_compute_members}:tenant-interface','${external_nic_mapping_compute_members}:public-interface']\"" ${ENV_FILE} EOI fi fi |