Skip to content

Commit

Permalink
ovn-nbctl: Include logical switch port type in "show" output.
Browse files Browse the repository at this point in the history
The port type is important to the user, at least when it is a nonempty
string, so this adds it to the "ovn-nbctl show" output.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Andy Zhou <[email protected]>
  • Loading branch information
blp committed May 3, 2017
1 parent 2cbe396 commit 6ad44e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ovn/utilities/ovn-nbctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,9 @@ print_ls(const struct nbrec_logical_switch *ls, struct ds *s)
const struct nbrec_logical_switch_port *lsp = ls->ports[i];

ds_put_format(s, " port %s\n", lsp->name);
if (lsp->type[0]) {
ds_put_format(s, " type: %s\n", lsp->type);
}
if (lsp->parent_name) {
ds_put_format(s, " parent: %s\n", lsp->parent_name);
}
Expand Down

0 comments on commit 6ad44e8

Please sign in to comment.