Skip to content

Commit

Permalink
ovn-sbctl: Print stage name in addition to table number.
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Pettit <[email protected]>
Acked-by: Alex Wang <[email protected]>
  • Loading branch information
Justin Pettit committed Aug 13, 2015
1 parent 091e3af commit ebbcdde
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ovn/utilities/ovn-sbctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ pre_get_info(struct ctl_context *ctx)
ovsdb_idl_add_column(ctx->idl, &sbrec_logical_flow_col_priority);
ovsdb_idl_add_column(ctx->idl, &sbrec_logical_flow_col_table_id);
ovsdb_idl_add_column(ctx->idl, &sbrec_logical_flow_col_match);
ovsdb_idl_add_column(ctx->idl, &sbrec_logical_flow_col_external_ids);
}

static struct cmd_show_table cmd_show_tables[] = {
Expand Down Expand Up @@ -686,10 +687,12 @@ cmd_lflow_list(struct ctl_context *ctx)
lflow->pipeline);
cur_pipeline = lflow->pipeline;
}
printf(" table_id=%" PRId64 ", priority=%3" PRId64 ", "
"match=(%s), action=(%s)\n",
lflow->table_id, lflow->priority,
lflow->match, lflow->actions);

const char *table_name = smap_get(&lflow->external_ids, "stage-name");
printf(" table=%" PRId64 "(%8s), priority=%3" PRId64
", match=(%s), action=(%s)\n",
lflow->table_id, table_name ? table_name : "",
lflow->priority, lflow->match, lflow->actions);
}

free(lflows);
Expand Down

0 comments on commit ebbcdde

Please sign in to comment.