A logical port that represents a container that sits behind another logical port has both a parent_name and a tag set. The parent_name identifies the parent port and the tag is the VLAN ID used to identify which traffic comes from that container. The combination of parent_name and tag must always be unique. This applies to both the ovn and ovn-nb schemas.
Signed-off-by: Russell Bryant <rbry...@redhat.com> --- ovn/ovn-nb.ovsschema | 5 ++++- ovn/ovn.ovsschema | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ovn/ovn-nb.ovsschema b/ovn/ovn-nb.ovsschema index 8b1e09a..8cd0d7b 100644 --- a/ovn/ovn-nb.ovsschema +++ b/ovn/ovn-nb.ovsschema @@ -33,7 +33,10 @@ "external_ids": { "type": {"key": "string", "value": "string", "min": 0, "max": "unlimited"}}}, - "indexes": [["name"]]}, + "indexes": [ + ["name"], + ["parent_name", "tag"] + ]}, "ACL": { "columns": { "lswitch": {"type": {"key": {"type": "uuid", diff --git a/ovn/ovn.ovsschema b/ovn/ovn.ovsschema index 6bc4f94..5218373 100644 --- a/ovn/ovn.ovsschema +++ b/ovn/ovn.ovsschema @@ -55,6 +55,9 @@ "mac": {"type": {"key": "string", "min": 0, "max": "unlimited"}}}, - "indexes": [["logical_port"]], + "indexes": [ + ["logical_port"], + ["parent_port", "tag"] + ], "isRoot": true}}, "version": "1.0.0"} -- 2.1.0 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev