Skip to content

Commit

Permalink
ovn-trace: Fix tracing when ip.dst has to go via a gateway router
Browse files Browse the repository at this point in the history
ovn-trace does not trace past an l3gateway port type. This patch
fixes it.

Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=1626080
Suggested-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Numan Siddique <nusiddiq@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Mark Michelson <mmichels@redhat.com>
  • Loading branch information
numansiddique authored and blp committed Oct 11, 2018
1 parent 2d661a2 commit b8a4821
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ovn/utilities/ovn-trace.c
Expand Up @@ -645,6 +645,15 @@ read_ports(void)
} else if (!strcmp(sbpb->type, "l3gateway")) {
/* Treat all gateways as local for our purposes. */
dp->has_local_l3gateway = true;
const char *peer_name = smap_get(&sbpb->options, "peer");
if (peer_name) {
struct ovntrace_port *peer
= shash_find_data(&ports, peer_name);
if (peer) {
port->peer = peer;
port->peer->peer = port;
}
}
}
}

Expand Down

0 comments on commit b8a4821

Please sign in to comment.