On Tue, Jul 9, 2013 at 8:58 AM, Gurucharan Shetty <[email protected]>wrote:
> On Tue, Jul 9, 2013 at 7:38 AM, Benjamin Lunsky < > [email protected]> wrote: > >> Hi, >> >> I'm doing some experimentation with OVS and trying to figure out the most >> elegant way of restarting OVS after making a modification to the code and >> recompiling. >> > There are startup scripts provided for Debian/Ubuntu, Rhel and Xenserver. > You can use them for the correct way of restarting openvswitch. I usually > do the following: > > ./boot.sh > ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc > --with-linux=/lib/modules/`uname -r`/build > make > make install > cp ./datapath/linux/openvswitch.ko /lib/modules/`uname > -r`/kernel/openvswitch.ko > depmod -a > /etc/init.d/openvswitch[-switch] force-reload-kmod (after copying one of > the startup scripts to /etc/init.d) > > > >> >> How does one restart the vswichd daemon and ovsdb-server as well as the >> various connections, without having to re-setup the bridge and ports? >> > You don't have to re-setup bridge and ports. They would be in the database > and will be picked up during restart. > > >> >> I am finding that if I do not delete the bridge and kill all OVS-related >> processes prior to compiling, I get this error when running ovs-ofctl: >> "ovs-ofctl: br0 is not a bridge or a socket". >> > It is likely that you do not have the kernel module installed. > I did not read this properly. You will need the OVS daemons to be running for you to run ovs-ofctl. > >> Thanks! >> >> Benjamin Lunsky >> [email protected] >> >> >> --- >> >> >> >> >> >> _______________________________________________ >> discuss mailing list >> [email protected] >> http://openvswitch.org/mailman/listinfo/discuss >> >> >
_______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
