Skip to content

Commit

Permalink
Reset OVN-K openvswitch configuration on every boot
Browse files Browse the repository at this point in the history
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@redhat.com>
  • Loading branch information
jcaamano committed Dec 14, 2021
1 parent 9cc7ac4 commit 9e3e74d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions templates/common/_base/files/configure-ovs-network.yaml
Expand Up @@ -459,6 +459,17 @@ contents:
fi
}
# on every boot we rollback and generate the configuration again, to take
# in any changes that have possibly been applied in the standard
# configuration sources
if [ ! -f /run/configure-ovs-boot-done ]; then
echo "Running on boot, restoring to previous configuration..."
remove_all_ovn_bridges
reload_nm
print_state
fi
touch /run/configure-ovs-boot-done
iface=""
counter=0
# find default interface
Expand Down

0 comments on commit 9e3e74d

Please sign in to comment.