aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-06-12 07:30:54 +0000
committerGerrit Code Review <review@openstack.org>2018-06-12 07:30:54 +0000
commit7cfeffaa3558adaa4262e56880b2df40916efffd (patch)
tree22922c035c2e4e249310face7d6e7ca522d2c150 /tools
parent7e63c3fcd7ad3852394d61c193c8bee2c90a66b1 (diff)
parent6f398cefb6b9ab33ec3ad4fc068f6316aab94d7b (diff)
downloadkolla-ansible-7cfeffaa3558adaa4262e56880b2df40916efffd.tar.gz
kolla-ansible-7cfeffaa3558adaa4262e56880b2df40916efffd.zip
Merge "ovs-dpdkctl.sh syntax error"
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ovs-dpdkctl.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/ovs-dpdkctl.sh b/tools/ovs-dpdkctl.sh
index 6b6e3bfd5..e818cc052 100755
--- a/tools/ovs-dpdkctl.sh
+++ b/tools/ovs-dpdkctl.sh
@@ -238,7 +238,7 @@ function install_network_manager_conf {
fi
[[ "$octet" < 3 ]] && mask+=.
done
- if [[ is_redhat_family == 0 ]]; then
+ if [[ $(is_redhat_family) == 0 ]]; then
cat << EOF | tee "/etc/sysconfig/network-scripts/ifcfg-$bridge"
DEVICE=$bridge
BOOTPROTO=static
@@ -262,7 +262,7 @@ EOF
function uninstall_network_manager_conf {
pair=$(get_value ovs cidr_mappings)
bridge=`echo $pair | cut -f 1 -d ":"`
- if [[ is_redhat_family == 0 ]]; then
+ if [[ $(is_redhat_family) == 0 ]]; then
rm -f /etc/sysconfig/network-scripts/ifcfg-$bridge
else
rm -f /etc/network/interfaces.d/$bridge.cfg
@@ -332,7 +332,7 @@ function uninstall_service {
function configure_kernel_modules {
driver="$(get_value ovs dpdk_interface_driver)"
lsmod | grep -ws $driver > /dev/null || modprobe $driver
- if [[ is_redhat_family == 0 ]]; then
+ if [[ $(is_redhat_family) == 0 ]]; then
[[ ! -e /etc/modules-load.d/${driver}.conf ]] && echo $driver | tee /etc/modules-load.d/${driver}.conf
else
grep -ws $driver /etc/modules > /dev/null || echo $driver | tee -a /etc/modules
@@ -342,7 +342,7 @@ function configure_kernel_modules {
function unconfigure_kernel_modules {
driver="$(get_value ovs dpdk_interface_driver)"
lsmod | grep -ws $driver > /dev/null && rmmod $driver
- if [[ is_redhat_family == 0 ]] ; then
+ if [[ $(is_redhat_family) == 0 ]] ; then
[[ -e /etc/modules-load.d/${driver}.conf ]] && rm -f /etc/modules-load.d/${driver}.conf
else
grep -ws $driver /etc/modules > /dev/null && sed -e "s/$driver//" -i /etc/modules
@@ -363,7 +363,7 @@ function install {
fi
systemctl start ovs-dpdkctl
install_network_manager_conf
- if [[ is_redhat_family == 0 ]]; then
+ if [[ $(is_redhat_family) == 0 ]]; then
systemctl start ovs-dpdk-bridge
fi
}