summaryrefslogtreecommitdiff
path: root/ovn
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-04-30 13:52:11 -0700
committerBen Pfaff <blp@ovn.org>2017-05-03 16:18:44 -0700
commit682b4171532c00a258f497b122550c3c5c4dbf41 (patch)
treeb4f432b36865a2a57733b61d73c992eb86bb59e1 /ovn
parentc5fec4f656d276c3208bf3a99714124540eb067e (diff)
downloadopenvswitch-682b4171532c00a258f497b122550c3c5c4dbf41.tar.gz
ovn-sbctl: Allow database commands to refer to datapaths by name.
Until now, only the lflow-list command supported using UUIDs or names for datapaths. This commit extends that support to all the database commands, as well as adding support for matching "logical-switch" or "logical-router" in addition to "name". Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
Diffstat (limited to 'ovn')
-rw-r--r--ovn/utilities/ovn-sbctl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ovn/utilities/ovn-sbctl.c b/ovn/utilities/ovn-sbctl.c
index 5d81b6b47..c77121e39 100644
--- a/ovn/utilities/ovn-sbctl.c
+++ b/ovn/utilities/ovn-sbctl.c
@@ -1052,6 +1052,11 @@ cmd_set_ssl(struct ctl_context *ctx)
static const struct ctl_table_class tables[SBREC_N_TABLES] = {
[SBREC_TABLE_CHASSIS].row_ids[0] = {&sbrec_chassis_col_name, NULL, NULL},
+ [SBREC_TABLE_DATAPATH_BINDING].row_ids
+ = {{&sbrec_datapath_binding_col_external_ids, "name", NULL},
+ {&sbrec_datapath_binding_col_external_ids, "logical-switch", NULL},
+ {&sbrec_datapath_binding_col_external_ids, "logical-router", NULL}},
+
[SBREC_TABLE_PORT_BINDING].row_ids[0] =
{&sbrec_port_binding_col_logical_port, NULL, NULL},