Merge "Add support for ovsdb conversion"

This commit is contained in:
Zuul 2019-04-04 07:46:14 +00:00 committed by Gerrit Code Review
commit d08f06dd64

View File

@ -1,5 +1,11 @@
#!/bin/bash #!/bin/bash
# NOTE(mnasiadka): ensure existing ovsdb doesn't need to be upgraded
if ([ -f /var/lib/openvswitch/conf.db ] && [ `ovsdb-tool needs-conversion /var/lib/openvswitch/conf.db` == "yes" ]); then
/usr/bin/ovsdb-tool convert /var/lib/openvswitch/conf.db
fi
# NOTE: (sbezverk) ovs_bridge and ovs_ext_intf variables get initialized only when # NOTE: (sbezverk) ovs_bridge and ovs_ext_intf variables get initialized only when
# this script is executed for kubernetes deployment. With Ansible deployment, only # this script is executed for kubernetes deployment. With Ansible deployment, only
# ovsdb-server gets launched and then the following workflow step will create # ovsdb-server gets launched and then the following workflow step will create