Skip to content

Commit

Permalink
ovn: Change the valid tag values.
Browse files Browse the repository at this point in the history
A tag value of 0 is not used by containers running inside
VMs.

Signed-off-by: Gurucharan Shetty <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
shettyg committed Oct 2, 2015
1 parent 9f760fd commit 0a45a9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ovn/controller/physical.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ physical_run(struct controller_ctx *ctx, enum mf_field_id mff_ovn_geneve,
}
ofport = u16_to_ofp(simap_get(&localnet_to_ofport, network));
} else if (binding->parent_port) {
if (!binding->tag || !*binding->tag) {
if (!binding->tag) {
continue;
}
ofport = u16_to_ofp(simap_get(&localvif_to_ofport,
Expand Down
2 changes: 1 addition & 1 deletion ovn/ovn-nb.ovsschema
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"parent_name": {"type": {"key": "string", "min": 0, "max": 1}},
"tag": {
"type": {"key": {"type": "integer",
"minInteger": 0,
"minInteger": 1,
"maxInteger": 4095},
"min": 0, "max": 1}},
"macs": {"type": {"key": "string",
Expand Down
2 changes: 1 addition & 1 deletion ovn/ovn-sb.ovsschema
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"parent_port": {"type": {"key": "string", "min": 0, "max": 1}},
"tag": {
"type": {"key": {"type": "integer",
"minInteger": 0,
"minInteger": 1,
"maxInteger": 4095},
"min": 0, "max": 1}},
"chassis": {"type": {"key": {"type": "uuid",
Expand Down

0 comments on commit 0a45a9e

Please sign in to comment.