From 41219e63a02bd315e7066145d72798f7a4204566 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 11 Feb 2013 13:46:42 -0800 Subject: [PATCH] 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 Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- vswitchd/vswitch.ovsschema | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vswitchd/vswitch.ovsschema b/vswitchd/vswitch.ovsschema index a7901a86a..53d167528 100644 --- a/vswitchd/vswitch.ovsschema +++ b/vswitchd/vswitch.ovsschema @@ -1,6 +1,6 @@ {"name": "Open_vSwitch", "version": "7.0.0", - "cksum": "3537583872 17299", + "cksum": "438518409 17329", "tables": { "Open_vSwitch": { "columns": { @@ -428,7 +428,8 @@ "ephemeral": true}, "status": { "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}, - "ephemeral": true}}}, + "ephemeral": true}}, + "indexes": [["target"]]}, "Manager": { "columns": { "target": { -- 2.47.0