48f1cdb604
Rhel/Centos8 don't have bridge-utils utility. We have to create network bridge using nmcli tool. Added template for RHEL8/C8 - add-provisioning-interface-os-major-version-8.sh.j2 and modified logic in playbook to call relevant template based on OS Version. We also set the required firewalld commands to allow proper network traffic flow from undercloud to baremetal overcloud nodes. Change-Id: I5e56b387283fa8deff857bcf3a39a007a3d876a3
22 lines
463 B
Django/Jinja
22 lines
463 B
Django/Jinja
#!/bin/bash
|
|
|
|
set -eux
|
|
|
|
### --start_docs
|
|
|
|
## * Remove the stale nmcli bridge port connection from the previous deployment
|
|
## ::
|
|
|
|
if sudo nmcli con show | grep -i brovc-port1; then
|
|
sudo nmcli con delete brovc-port1
|
|
fi
|
|
|
|
## * Add the NIC on the provisioning interface to the "brovc" bridge
|
|
## ::
|
|
|
|
sudo nmcli connection add type ethernet slave-type bridge con-name \
|
|
brovc-port1 ifname {{ virthost_provisioning_interface }} \
|
|
master brovc
|
|
|
|
### --stop_docs
|