+ } else if (strcasecmp("OvsDbAddress", child->key) == 0) {
+ if (child->values_num < 1) {
+ ERROR(OVS_EVENTS_PLUGIN ": invalid OVS DB address specified");
+ goto failure;
+ }
+ /* check node type and get the value */
+ if (child->values[0].type != OCONFIG_TYPE_STRING) {
+ ERROR(OVS_EVENTS_PLUGIN ": OVS DB node is not a string");
+ goto failure;
+ }
+ sstrncpy(ovs_events_ctx.config.ovs_db_node, child->values[0].value.string,
+ sizeof(ovs_events_ctx.config.ovs_db_node));
+ /* get OVS DB address service name (optional) */
+ if (child->values_num > 1) {
+ if (child->values[1].type != OCONFIG_TYPE_STRING) {
+ ERROR(OVS_EVENTS_PLUGIN ": OVS DB service is not a string");
+ goto failure;
+ }
+ sstrncpy(ovs_events_ctx.config.ovs_db_serv,
+ child->values[1].value.string,
+ sizeof(ovs_events_ctx.config.ovs_db_serv));
+ }