[ovs-git] Open vSwitch: ovs-ctl.in: Restore interfaces and ofports for userspace restarts. (master)

dev at openvswitch.org dev at openvswitch.org
Tue Mar 5 18:03:33 UTC 2013

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  a3a0a7a0837f60eb08b93d72e88f2d9e34cf4efd (commit)
       via  737af96ddee6bed45e3f035c3f043a67bef2f295 (commit)
      from  85c9de194b9f432f7b8a66bda980cbab52a55b72 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a3a0a7a0837f60eb08b93d72e88f2d9e34cf4efd
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=a3a0a7a0837f60eb08b93d72e88f2d9e34cf4efd
Author: Gurucharan Shetty <gshetty at nicira.com>
ovs-ctl.in: Restore interfaces and ofports for userspace restarts.
When we upgrade from pre-1.9 to 1.10 or later branches, when just
the user space daemons are restarted, with the older kernel module
intact, datapaths are recreated.

This results in loosing the internal interface states like ip addresses,
routing table entries etc. Also, the 'ofport' value of the older interfaces

With this patch we restore the interface states, ofport values etc,
when "ovs-ctl restart" or "/etc/init.d/openvswitch[-switch] restart
--save-flows" is called. The later command is automatically called
when debian packages are installed.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>

commit 737af96ddee6bed45e3f035c3f043a67bef2f295
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=737af96ddee6bed45e3f035c3f043a67bef2f295
Author: Gurucharan Shetty <gshetty at nicira.com>
ovs-ctl.in: Clean up code for the next commit.
Previously, we would null the variables holding the names of the restore
scripts in case there were any errors in creating the restore script or if
we did not need to run a particular restore script. That is not necessary,
as we can just check the execution permission set on those scirpts.

Also, carve out a couple of functions which will be used in the next commit.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>


Summary of changes:
 utilities/ovs-ctl.in |   80 ++++++++++++++++++++++++++++++++-----------------
 1 files changed, 52 insertions(+), 28 deletions(-)

Open vSwitch

More information about the git mailing list