Skip to content

Commit

Permalink
ovn-controller: Fix a case wherein tag can be zero.
Browse files Browse the repository at this point in the history
If the ovn-nb DB's logical_port table is populated such
that tag is zero, we should not consider that record.

Signed-off-by: Gurucharan Shetty <[email protected]>
Acked-by: Russell Bryant <[email protected]>
  • Loading branch information
shettyg committed Sep 29, 2015
1 parent 1e20424 commit 3069cbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ovn/controller/physical.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,12 @@ 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) {
continue;
}
ofport = u16_to_ofp(simap_get(&localvif_to_ofport,
binding->parent_port));
if (ofport && binding->tag) {
if (ofport) {
tag = *binding->tag;
}
} else {
Expand Down

0 comments on commit 3069cbe

Please sign in to comment.