summaryrefslogtreecommitdiff
path: root/vtep
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-04-27 13:54:53 -0700
committerBen Pfaff <blp@ovn.org>2017-05-03 08:31:13 -0700
commita0b02897cfe33aa2c40620707f2e42cf716abf72 (patch)
tree1d4ada4743ef1e61cbc707f1c1d83dbdf6968382 /vtep
parent5d476f28b7c537889b671bd985a1722bf5e1850e (diff)
downloadopenvswitch-a0b02897cfe33aa2c40620707f2e42cf716abf72.tar.gz
db-ctl-base: Drop redundant 'table' field from struct ctl_row_id.
The 'table' field is redundant because the required 'column' field implies the table that the column is a part of. This simplifies the users and makes it harder to get these things wrong. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Andy Zhou <azhou@ovn.org>
Diffstat (limited to 'vtep')
-rw-r--r--vtep/vtep-ctl.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/vtep/vtep-ctl.c b/vtep/vtep-ctl.c
index 7dc3cc775..05c9ef8e3 100644
--- a/vtep/vtep-ctl.c
+++ b/vtep/vtep-ctl.c
@@ -2178,20 +2178,18 @@ cmd_set_manager(struct ctl_context *ctx)
/* Parameter commands. */
static const struct ctl_table_class tables[VTEPREC_N_TABLES] = {
[VTEPREC_TABLE_LOGICAL_SWITCH].row_ids[0]
- = {&vteprec_table_logical_switch, &vteprec_logical_switch_col_name, NULL},
+ = {&vteprec_logical_switch_col_name, NULL},
- [VTEPREC_TABLE_MANAGER].row_ids[0]
- = {&vteprec_table_manager, &vteprec_manager_col_target, NULL},
+ [VTEPREC_TABLE_MANAGER].row_ids[0] = {&vteprec_manager_col_target, NULL},
[VTEPREC_TABLE_PHYSICAL_PORT].row_ids[0]
- = {&vteprec_table_physical_port, &vteprec_physical_port_col_name, NULL},
+ = {&vteprec_physical_port_col_name, NULL},
[VTEPREC_TABLE_PHYSICAL_SWITCH].row_ids[0]
- = {&vteprec_table_physical_switch, &vteprec_physical_switch_col_name,
- NULL},
+ = {&vteprec_physical_switch_col_name, NULL},
[VTEPREC_TABLE_LOGICAL_ROUTER].row_ids[0]
- = {&vteprec_table_logical_router, &vteprec_logical_router_col_name, NULL},
+ = {&vteprec_logical_router_col_name, NULL},
};