[ovs-dev] [PATCH 1/2] ovs-save: Add a helper command to maintain ofport value.
blp at nicira.com
Tue Jan 15 19:37:47 UTC 2013
On Fri, Jan 11, 2013 at 03:48:40PM -0800, Gurucharan Shetty wrote:
> This patch adds a helper command: save-ofports. The command
> will o/p a shell script that will set the 'ofport_request' column
> of the interface table with the value of the corresponding ofport.
> This command takes a list of bridges as input and will be used by
> a future commit to restore the ofport value across force-reload-kmod.
> Issue #13556
> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
This seems reasonable.
It would be a good idea to add a note to the commit message that this is
only useful for upgrades from 1.9, since that's the only version that
has ofport_request but does not have the newer behavior of ofport.
We should add an --if-exists option to "ovs-vsctl set", so that a long
string of "ovs-vsctl -- --if-exists set interface <foo> ..." commands
does not fail if one of the interfaces happens to have disappeared
(e.g. its VM was shut down). I'm working on that.
More information about the dev