}
static int __send_notification(struct mgmt_be_client *client, const char *xpath,
- const struct lyd_node *tree, uint8_t op)
+ const struct lyd_node *tree, uint8_t op, uint64_t refer_id)
{
struct mgmt_msg_notify_data *msg = NULL;
// LYD_FORMAT format = LYD_LYB;
msg = mgmt_msg_native_alloc_msg(struct mgmt_msg_notify_data, 0, MTYPE_MSG_NATIVE_NOTIFY);
msg->code = MGMT_MSG_CODE_NOTIFY;
msg->result_type = format;
+ msg->refer_id = refer_id;
msg->op = op;
mgmt_msg_native_xpath_encode(msg, xpath);
path);
return 1;
}
- return __send_notification(__be_client, path, NULL, NOTIFY_OP_DS_DELETE);
+ return __send_notification(__be_client, path, NULL, NOTIFY_OP_DS_DELETE, 0);
}
/**
path);
return 1;
}
- return __send_notification(__be_client, path, patch, NOTIFY_OP_DS_PATCH);
+ return __send_notification(__be_client, path, patch, NOTIFY_OP_DS_PATCH, 0);
}
/**
path);
return 1;
}
- return __send_notification(__be_client, path, tree, NOTIFY_OP_DS_REPLACE);
+ return __send_notification(__be_client, path, tree, NOTIFY_OP_DS_REPLACE, 0);
}
/**
*/
static int mgmt_be_send_notification(void *__client, const char *path, const struct lyd_node *tree)
{
- __send_notification(__client, path, tree, NOTIFY_OP_NOTIFICATION);
+ __send_notification(__client, path, tree, NOTIFY_OP_NOTIFICATION, 0);
return 0;
}