@@ -153,6 +153,12 @@ OVN To-do List
hashtable lookup in parse_port_group() which can be avoided when we are sure
that the Southbound DB uses the new format.
+* ovn-northd-ddlog: Calls to warn() and err() from DDlog code would be
+ better refactored to use the Warning[] relation (and introduce an
+ Error[] relation once we want to issue some errors that way). This
+ would be easier with some improvements in DDlog to more easily
+ output to multiple relations from a single production.
+
* IP Multicast Relay
* When connecting bridged logical switches (localnet) to logical routers
@@ -713,3 +713,18 @@ ip_address_and_port_from_lb_key(const char *key, char **ip_address,
*addr_family = ss.ss_family;
return true;
}
+
+#ifdef DDLOG
+/* Callbacks used by the ddlog northd code to print warnings and errors. */
+void
+ddlog_warn(const char *msg)
+{
+ VLOG_WARN("%s", msg);
+}
+
+void
+ddlog_err(const char *msg)
+{
+ VLOG_ERR("%s", msg);
+}
+#endif
@@ -221,4 +221,9 @@ char *str_tolower(const char *orig);
bool ip_address_and_port_from_lb_key(const char *key, char **ip_address,
uint16_t *port, int *addr_family);
+#ifdef DDLOG
+void ddlog_warn(const char *msg);
+void ddlog_err(const char *msg);
+#endif
+
#endif