ovs-vsctl: Create AutoAttach records on demand, for backward compatibility.
authorBen Pfaff <blp@nicira.com>
Fri, 20 Mar 2015 06:22:05 +0000 (23:22 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 20 Mar 2015 07:25:13 +0000 (00:25 -0700)
commitc557ca04169bbe0af253bd910a5328ac3eee98e7
tree54bebc45298c853cbce03d96e98f0fe0d3f85f62
parent58397e6c1e6c0b68a0f3f32ded463df8087021d8
ovs-vsctl: Create AutoAttach records on demand, for backward compatibility.

The AutoAttach table is new in OVS 2.3.90, but ovs-vsctl was creating a
record in the table unconditionally whenever it created a new bridge.
This caused a gratuitous incompatibility with older databases, which can
be a problem during upgrade.  This commit switches to creating the
AutoAttaach record for a bridge lazily, only when the first mapping is
created for the bridge.

VMware-BZ: #1413562
CC: Dennis Flynn <drflynn@avaya.com>
Reported-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Justin Pettit <jpettit@nicira.com>
utilities/ovs-vsctl.c