ovs-ctl.in: Restore interfaces and ofports for userspace restarts.
authorGurucharan Shetty <gshetty@nicira.com>
Thu, 28 Feb 2013 22:46:43 +0000 (14:46 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 5 Mar 2013 17:45:05 +0000 (09:45 -0800)
commita3a0a7a0837f60eb08b93d72e88f2d9e34cf4efd
tree0022b695100411f9e0cbe153a3bc0be7d72a5063
parent737af96ddee6bed45e3f035c3f043a67bef2f295
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@nicira.com>
utilities/ovs-ctl.in