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

dev at openvswitch.org dev at openvswitch.org
Tue Mar 5 18:05:15 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, branch-1.10 has been updated
       via  d270011c636ffcc4bdaca9bb1481f55a28694468 (commit)
       via  1173325b42912cae635e82ae6f2c26aaa23848d7 (commit)
      from  a0ae49a4abffebc1124947a836eaa276db4cb38c (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 d270011c636ffcc4bdaca9bb1481f55a28694468
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=d270011c636ffcc4bdaca9bb1481f55a28694468
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
change.

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 1173325b42912cae635e82ae6f2c26aaa23848d7
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=1173325b42912cae635e82ae6f2c26aaa23848d7
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(-)


hooks/post-receive
-- 
Open vSwitch



More information about the git mailing list