ebb439
From a6e21d42de7c195fa50d46a068462301959bda26 Mon Sep 17 00:00:00 2001
ebb439
From: Ben Pfaff <blp@ovn.org>
ebb439
Date: Thu, 2 Apr 2020 10:26:15 -0700
ebb439
Subject: [PATCH 01/10] ovn-nbctl, ovn-sbctl: Add convenient names for more
ebb439
 tables.
ebb439
ebb439
Signed-off-by: Ben Pfaff <blp@ovn.org>
ebb439
Acked-by: Numan Siddique <numans@ovn.org>
ebb439
---
ebb439
 utilities/ovn-nbctl.c | 21 +++++++++++++++++++++
ebb439
 utilities/ovn-sbctl.c | 27 +++++++++++++++++++++++++++
ebb439
 2 files changed, 48 insertions(+)
ebb439
ebb439
diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c
ebb439
index caf99dfeb..dfcf67cfd 100644
ebb439
--- a/utilities/ovn-nbctl.c
ebb439
+++ b/utilities/ovn-nbctl.c
ebb439
@@ -6107,8 +6107,29 @@ static const struct ctl_table_class tables[NBREC_N_TABLES] = {
ebb439
 
ebb439
     [NBREC_TABLE_ACL].row_ids[0] = {&nbrec_acl_col_name, NULL, NULL},
ebb439
 
ebb439
+    [NBREC_TABLE_HA_CHASSIS].row_ids[0]
ebb439
+    = {&nbrec_ha_chassis_col_chassis_name, NULL, NULL},
ebb439
+
ebb439
     [NBREC_TABLE_HA_CHASSIS_GROUP].row_ids[0]
ebb439
     = {&nbrec_ha_chassis_group_col_name, NULL, NULL},
ebb439
+
ebb439
+    [NBREC_TABLE_LOAD_BALANCER].row_ids[0]
ebb439
+    = {&nbrec_load_balancer_col_name, NULL, NULL},
ebb439
+
ebb439
+    [NBREC_TABLE_LOAD_BALANCER_HEALTH_CHECK].row_ids[0]
ebb439
+    = {&nbrec_load_balancer_health_check_col_vip, NULL, NULL},
ebb439
+
ebb439
+    [NBREC_TABLE_FORWARDING_GROUP].row_ids[0]
ebb439
+    = {&nbrec_forwarding_group_col_name, NULL, NULL},
ebb439
+
ebb439
+    [NBREC_TABLE_METER].row_ids[0]
ebb439
+    = {&nbrec_meter_col_name, NULL, NULL},
ebb439
+
ebb439
+    [NBREC_TABLE_NAT].row_ids[0]
ebb439
+    = {&nbrec_nat_col_external_ip, NULL, NULL},
ebb439
+
ebb439
+    [NBREC_TABLE_CONNECTION].row_ids[0]
ebb439
+    = {&nbrec_connection_col_target, NULL, NULL},
ebb439
 };
ebb439
 
ebb439
 static char *
ebb439
diff --git a/utilities/ovn-sbctl.c b/utilities/ovn-sbctl.c
ebb439
index d3eec9133..f93384940 100644
ebb439
--- a/utilities/ovn-sbctl.c
ebb439
+++ b/utilities/ovn-sbctl.c
ebb439
@@ -1410,11 +1410,38 @@ static const struct ctl_table_class tables[SBREC_N_TABLES] = {
ebb439
     [SBREC_TABLE_ADDRESS_SET].row_ids[0]
ebb439
     = {&sbrec_address_set_col_name, NULL, NULL},
ebb439
 
ebb439
+    [SBREC_TABLE_PORT_GROUP].row_ids[0]
ebb439
+    = {&sbrec_port_group_col_name, NULL, NULL},
ebb439
+
ebb439
     [SBREC_TABLE_HA_CHASSIS_GROUP].row_ids[0]
ebb439
     = {&sbrec_ha_chassis_group_col_name, NULL, NULL},
ebb439
 
ebb439
     [SBREC_TABLE_HA_CHASSIS].row_ids[0]
ebb439
     = {&sbrec_ha_chassis_col_chassis, NULL, NULL},
ebb439
+
ebb439
+    [SBREC_TABLE_METER].row_ids[0]
ebb439
+    = {&sbrec_meter_col_name, NULL, NULL},
ebb439
+
ebb439
+    [SBREC_TABLE_SERVICE_MONITOR].row_ids[0]
ebb439
+    = {&sbrec_service_monitor_col_logical_port, NULL, NULL},
ebb439
+
ebb439
+    [SBREC_TABLE_DHCP_OPTIONS].row_ids[0]
ebb439
+    = {&sbrec_dhcp_options_col_name, NULL, NULL},
ebb439
+
ebb439
+    [SBREC_TABLE_DHCPV6_OPTIONS].row_ids[0]
ebb439
+    = {&sbrec_dhcpv6_options_col_name, NULL, NULL},
ebb439
+
ebb439
+    [SBREC_TABLE_CONNECTION].row_ids[0]
ebb439
+    = {&sbrec_connection_col_target, NULL, NULL},
ebb439
+
ebb439
+    [SBREC_TABLE_RBAC_ROLE].row_ids[0]
ebb439
+    = {&sbrec_rbac_role_col_name, NULL, NULL},
ebb439
+
ebb439
+    [SBREC_TABLE_RBAC_PERMISSION].row_ids[0]
ebb439
+    = {&sbrec_rbac_permission_col_table, NULL, NULL},
ebb439
+
ebb439
+    [SBREC_TABLE_GATEWAY_CHASSIS].row_ids[0]
ebb439
+    = {&sbrec_gateway_chassis_col_name, NULL, NULL},
ebb439
 };
ebb439
 
ebb439
 
ebb439
-- 
ebb439
2.28.0
ebb439