Skip to content

Commit

Permalink
ovn-nbctl: Display logical switch router ports in "show".
Browse files Browse the repository at this point in the history
This allows the reader to figure out from "ovn-nbctl show" output where the
ports of type "router" connect.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Andy Zhou <[email protected]>
  • Loading branch information
blp committed May 3, 2017
1 parent 6ad44e8 commit f17c350
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ovn/utilities/ovn-nbctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,11 @@ print_ls(const struct nbrec_logical_switch *ls, struct ds *s)
}
ds_put_cstr(s, "]\n");
}

const char *router_port = smap_get(&lsp->options, "router-port");
if (router_port) {
ds_put_format(s, " router-port: %s\n", router_port);
}
}
}

Expand Down

0 comments on commit f17c350

Please sign in to comment.