From 78460df935cd93596a33f6a3efcffc6e287ee0e7 Mon Sep 17 00:00:00 2001 From: Antonin Bas Date: Wed, 2 Sep 2020 16:10:11 -0700 Subject: [PATCH] Fix unbound variable error in start_ovs Bash script (#1190) Fixes #1171 --- build/images/scripts/start_ovs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/images/scripts/start_ovs b/build/images/scripts/start_ovs index 8e13fc5dde9..c0611def11c 100755 --- a/build/images/scripts/start_ovs +++ b/build/images/scripts/start_ovs @@ -21,6 +21,8 @@ function cleanup_ovs_run_files { rm -rf ${OVS_RUN_DIR}/.conf.db.*~lock~ } +# start_ovs takes one parameter: a boolean value which indicates whether OVS +# kernel HW offload should be enabled. function start_ovs { offload=$1 if daemon_is_running ovsdb-server; then @@ -87,6 +89,6 @@ while true; do # OVS was stopped in the container. log_warning $CONTAINER_NAME "OVS was stopped. Starting it again" - start_ovs + start_ovs $offload fi done