ovs-vsctl: Add --if-exists option to many database commands.
authorBen Pfaff <blp@nicira.com>
Tue, 15 Jan 2013 21:23:53 +0000 (13:23 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 16 Jan 2013 21:34:41 +0000 (13:34 -0800)
commite99d41f787d7d81b10a5c480f3174d68c7cc7e99
treed8cd120b6ff89c50a02a52543344926744348148
parent329e34620e89e9d0712a143078eed74b9e2aa3b7
ovs-vsctl: Add --if-exists option to many database commands.

A few ovs-vsctl commands have accepted --if-exists options for some time,
to make it possible to execute them in cases where it doesn't really
matter if the records they touch exist.  This commit adds this option to
other commands.

This is intended for initial use with "ovs-vsctl set interface <iface>
ofport_request=<number>" commands in ovs-ctl for upgrades from OVS 1.9
to later versions.

This makes a very small incompatible change to the ovs-vsctl "get"
command: previously with --if-exists, only keys in map columns were
allowed to be missing; now with --if-eixsts, also records are allowed
to be missing.

CC: Gurucharan Shetty <gshetty@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
NEWS
tests/ovs-vsctl.at
utilities/ovs-vsctl.8.in
utilities/ovs-vsctl.c