Some parts of code were using sbrec_*_set_*() instead of
sbrec_*_index_set_*(), use the sbrec_*_index_set_*() everywhere
as it's the right to do.

Signed-off-by: Ales Musil <[email protected]>
---
 controller/ovn-controller.c | 2 +-
 controller/vif-plug.c       | 2 +-
 northd/northd.c             | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/controller/ovn-controller.c b/controller/ovn-controller.c
index ae76c8b22..53f237db4 100644
--- a/controller/ovn-controller.c
+++ b/controller/ovn-controller.c
@@ -3171,7 +3171,7 @@ mac_cache_fdb_handle_for_datapath(struct mac_cache_data 
*data,
 
     struct sbrec_fdb *fdb_index_row =
             sbrec_fdb_index_init_row(sbrec_fdb_by_dp_key);
-    sbrec_fdb_set_dp_key(fdb_index_row, dp->tunnel_key);
+    sbrec_fdb_index_set_dp_key(fdb_index_row, dp->tunnel_key);
 
     const struct sbrec_fdb *fdb;
     SBREC_FDB_FOR_EACH_EQUAL (fdb, fdb_index_row, sbrec_fdb_by_dp_key) {
diff --git a/controller/vif-plug.c b/controller/vif-plug.c
index 1fa536cad..8a463f6e1 100644
--- a/controller/vif-plug.c
+++ b/controller/vif-plug.c
@@ -214,7 +214,7 @@ iface_lookup_by_name(struct ovsdb_idl_index 
*ovsrec_interface_by_name,
 {
     struct ovsrec_interface *iface = ovsrec_interface_index_init_row(
         ovsrec_interface_by_name);
-    ovsrec_interface_set_name(iface, name);
+    ovsrec_interface_index_set_name(iface, name);
 
     const struct ovsrec_interface *retval
         = ovsrec_interface_index_find(ovsrec_interface_by_name,
diff --git a/northd/northd.c b/northd/northd.c
index 4a3463a8e..dda79604d 100644
--- a/northd/northd.c
+++ b/northd/northd.c
@@ -3510,7 +3510,7 @@ build_svcs(
         sbrec_service_monitor_index_init_row(
             sbrec_service_monitor_by_learned_type);
 
-    sbrec_service_monitor_set_ic_learned(key, false);
+    sbrec_service_monitor_index_set_ic_learned(key, false);
 
     SBREC_SERVICE_MONITOR_FOR_EACH_EQUAL (sbrec_mon, key,
         sbrec_service_monitor_by_learned_type) {
@@ -11042,7 +11042,7 @@ build_ic_learned_svc_monitors_map(
     key = sbrec_service_monitor_index_init_row(
         sbrec_service_monitor_by_learned_type);
 
-    sbrec_service_monitor_set_ic_learned(key, true);
+    sbrec_service_monitor_index_set_ic_learned(key, true);
 
     const struct sbrec_service_monitor *sbrec_mon;
     SBREC_SERVICE_MONITOR_FOR_EACH_EQUAL (sbrec_mon, key,
-- 
2.51.0

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to