diff options
author | Tim Rozet <trozet@redhat.com> | 2017-03-17 15:20:10 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2017-03-17 20:23:03 +0000 |
commit | deccaf2df412d64b85eb4b9cd64af0ca24d551d6 (patch) | |
tree | 9b111d882a4c9816710a5de34155b5dfd3220402 /lib | |
parent | 6fc4292daf9b99a8e8d78de0a5ad25a6cf93f438 (diff) |
Fixes neutron patch to only apply when ODL + FDIO
We don't want the neutorn patch which hardcodes router external
interface to OVS and adds generic NS linux interface driver to be
applied for every scenario.
JIRA: APEX-406
Change-Id: I0fd7ed07a5ff58f9e1565831f4f469c11b501385
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/overcloud-deploy-functions.sh | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/overcloud-deploy-functions.sh b/lib/overcloud-deploy-functions.sh index 36346d85..de7263f3 100755 --- a/lib/overcloud-deploy-functions.sh +++ b/lib/overcloud-deploy-functions.sh @@ -149,11 +149,18 @@ EOI EOI fi - #Configure routing node for odl_l3-fdio - if [[ "${deploy_options_array['sdn_controller']}" == 'opendaylight' && "${deploy_options_array['dataplane']}" == 'fdio' && "${deploy_options_array['sdn_l3']}" == 'True' ]]; then + # Patch neutron with using OVS external interface for router and add generic linux NS interface driver + if [[ "${deploy_options_array['sdn_controller']}" == 'opendaylight' && "${deploy_options_array['dataplane']}" == 'fdio' ]]; 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} + LIBGUESTFS_BACKEND=direct virt-customize --run-command "cd /usr/lib/python2.7/site-packages/ && patch -p1 < neutron-patch-NSDriver.patch" \ + -a overcloud-full.qcow2 +EOI + # Configure routing node for odl_l3-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} EOI + fi fi if [ -n "${deploy_options_array['performance']}" ]; then |