Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move openvswitch db file into docker volume
openvswitch db file is created in /etc/openvswitch/conf.db. It will be lost during upgrade openvswitch_db container. This patch moves the db file into /var/lib/openvswitch folder, which located in docker volume. Change-Id: I73604fddacd21655590b9e66ee2805014795b9f1 Closes-Bug: #1649290
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p "/run/openvswitch" | ||
if [[ ! -e "/etc/openvswitch/conf.db" ]]; then | ||
ovsdb-tool create "/etc/openvswitch/conf.db" | ||
if [[ ! -e "/var/lib/openvswitch/conf.db" ]]; then | ||
ovsdb-tool create "/var/lib/openvswitch/conf.db" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters