[ovs-dev] [PATCH ovn 4/5] ovn-nbctl, ovn-sbctl: Add convenient names for more tables.

Ben Pfaff blp at ovn.org
Thu Oct 22 21:24:21 UTC 2020


Signed-off-by: Ben Pfaff <blp at ovn.org>
---
 utilities/ovn-nbctl.c | 21 +++++++++++++++++++++
 utilities/ovn-sbctl.c | 27 +++++++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/utilities/ovn-nbctl.c b/utilities/ovn-nbctl.c
index abc674f4a289..4f28edc808ec 100644
--- a/utilities/ovn-nbctl.c
+++ b/utilities/ovn-nbctl.c
@@ -6107,8 +6107,29 @@ static const struct ctl_table_class tables[NBREC_N_TABLES] = {
 
     [NBREC_TABLE_ACL].row_ids[0] = {&nbrec_acl_col_name, NULL, NULL},
 
+    [NBREC_TABLE_HA_CHASSIS].row_ids[0]
+    = {&nbrec_ha_chassis_col_chassis_name, NULL, NULL},
+
     [NBREC_TABLE_HA_CHASSIS_GROUP].row_ids[0]
     = {&nbrec_ha_chassis_group_col_name, NULL, NULL},
+
+    [NBREC_TABLE_LOAD_BALANCER].row_ids[0]
+    = {&nbrec_load_balancer_col_name, NULL, NULL},
+
+    [NBREC_TABLE_LOAD_BALANCER_HEALTH_CHECK].row_ids[0]
+    = {&nbrec_load_balancer_health_check_col_vip, NULL, NULL},
+
+    [NBREC_TABLE_FORWARDING_GROUP].row_ids[0]
+    = {&nbrec_forwarding_group_col_name, NULL, NULL},
+
+    [NBREC_TABLE_METER].row_ids[0]
+    = {&nbrec_meter_col_name, NULL, NULL},
+
+    [NBREC_TABLE_NAT].row_ids[0]
+    = {&nbrec_nat_col_external_ip, NULL, NULL},
+
+    [NBREC_TABLE_CONNECTION].row_ids[0]
+    = {&nbrec_connection_col_target, NULL, NULL},
 };
 
 static char *
diff --git a/utilities/ovn-sbctl.c b/utilities/ovn-sbctl.c
index d3eec913323e..f93384940862 100644
--- a/utilities/ovn-sbctl.c
+++ b/utilities/ovn-sbctl.c
@@ -1410,11 +1410,38 @@ static const struct ctl_table_class tables[SBREC_N_TABLES] = {
     [SBREC_TABLE_ADDRESS_SET].row_ids[0]
     = {&sbrec_address_set_col_name, NULL, NULL},
 
+    [SBREC_TABLE_PORT_GROUP].row_ids[0]
+    = {&sbrec_port_group_col_name, NULL, NULL},
+
     [SBREC_TABLE_HA_CHASSIS_GROUP].row_ids[0]
     = {&sbrec_ha_chassis_group_col_name, NULL, NULL},
 
     [SBREC_TABLE_HA_CHASSIS].row_ids[0]
     = {&sbrec_ha_chassis_col_chassis, NULL, NULL},
+
+    [SBREC_TABLE_METER].row_ids[0]
+    = {&sbrec_meter_col_name, NULL, NULL},
+
+    [SBREC_TABLE_SERVICE_MONITOR].row_ids[0]
+    = {&sbrec_service_monitor_col_logical_port, NULL, NULL},
+
+    [SBREC_TABLE_DHCP_OPTIONS].row_ids[0]
+    = {&sbrec_dhcp_options_col_name, NULL, NULL},
+
+    [SBREC_TABLE_DHCPV6_OPTIONS].row_ids[0]
+    = {&sbrec_dhcpv6_options_col_name, NULL, NULL},
+
+    [SBREC_TABLE_CONNECTION].row_ids[0]
+    = {&sbrec_connection_col_target, NULL, NULL},
+
+    [SBREC_TABLE_RBAC_ROLE].row_ids[0]
+    = {&sbrec_rbac_role_col_name, NULL, NULL},
+
+    [SBREC_TABLE_RBAC_PERMISSION].row_ids[0]
+    = {&sbrec_rbac_permission_col_table, NULL, NULL},
+
+    [SBREC_TABLE_GATEWAY_CHASSIS].row_ids[0]
+    = {&sbrec_gateway_chassis_col_name, NULL, NULL},
 };
 
 
-- 
2.26.2



More information about the dev mailing list