vswitchd: Require "target" column to be unique in OVS database.
authorBen Pfaff <blp@nicira.com>
Mon, 11 Feb 2013 21:46:42 +0000 (13:46 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 11 Feb 2013 21:46:42 +0000 (13:46 -0800)
commit41219e63a02bd315e7066145d72798f7a4204566
tree5603b6e35a642890396cd7b1ed7d002394e0703f
parent7cf2e080ebada5037dce06d8ac6117cc87f51d98
vswitchd: Require "target" column to be unique in OVS database.

Commit cc7ecee48 (vswitchd: Add unique indexes for some columns.) says,
in part:

    With this commit, the database server itself rejects attempts to add
    Port or Interface records with duplicate names or Controller or
    Manager records with duplicate targets.

but in fact didn't change the Controller table as described.  This commit
fixes that.

This commit updates the schema version number's major version, because this
is a potentially non-backward compatible change, if some user depended on
the ability to add Controller records with duplicate targets.  However, if
anyone thinks this is a bad idea, then I'm open to discussion.

Reported-by: Natasha Gude <natasha@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
vswitchd/vswitch.ovsschema