If you have installed Open vSwitch (OVS) by using installation script from Mininet, you probably installed the version 2.0. Let’s say that, you wanna upgrade to 2.1. The upgrading steps are, basically, the same process to install OVS from source.
Kill all the existing process related to OVS
$ sudo kill `cd /usr/local/var/run/openvswitch && cat ovsdb-server.pid ovs-vswitchd.pid`
Install OVS 2.1
You can base on my previous post about OVS installation or for more details, please, look at Open vSwitch documention page.
Now, you have to adapt the OVS init script. This step is necessary because the newer version uses –remote argument a bit different. Instead of using “–remote=db:Open_vSwitch,manager_options”, OVS 2.1 requires “–remote=db:Open_vSwitch,Open_vSwitch,manager_options”. The steps bellow describes how to do it.
Open the following file with an editor (e.g. vim)
$ sudo vim /usr/share/openvswitch/scripts/ovs-ctl
Edit the line 209, change “–remote=db:Open_vSwitch,manager_options” to
If you fallowed my previous post to install OVS, you have to remove ou comment (use #) the lines:
set "$@" --private-key=db:SSL,private_key set "$@" --certificate=db:SSL,certificate set "$@" --bootstrap-ca-cert=db:SSL,ca_cert
Perhaps, you have to edit $DB_SOCK variable at line 398 by changing from “DB_SOCK=$rundir/db.sock” to:
Now, you can start OVS by doing:
$ service openvswitch-switch stop $ service openvswitch-switch start