Skip to content

Commit

Permalink
udp-notif UPDATE fix configured subscriptions
Browse files Browse the repository at this point in the history
Add missing return code. Add missing function description. Rename
some functions.
  • Loading branch information
jeremie6wind committed Sep 15, 2023
1 parent cff52ac commit 13779ff
Show file tree
Hide file tree
Showing 5 changed files with 457 additions and 285 deletions.
8 changes: 6 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -860,8 +860,12 @@ server_data_subscribe(void)
SR_CONFIG_SUBSCR(mod_name, "/ietf-subscribed-notifications:subscriptions/receiver-instances/receiver-instance",
np2srv_config_receivers_cb);

SR_CONFIG_SUBSCR(mod_name, "/ietf-subscribed-notifications:subscriptions/subscription",
np2srv_config_subscriptions_cb);
rc = sr_module_change_subscribe(np2srv.sr_sess, mod_name, "/ietf-subscribed-notifications:subscriptions/subscription",
np2srv_config_subscriptions_cb, NULL, 0, SR_SUBSCR_ENABLED, &np2srv.sr_data_sub);
if (rc != SR_ERR_OK) {
ERR("Subscribing for \"%s\" data changes failed (%s).", mod_name, sr_strerror(rc));
goto error;
}

SR_CONFIG_SUBSCR(mod_name, "/ietf-subscribed-notifications:subscriptions/subscription/receivers/receiver",
np2srv_config_subscriptions_receivers_cb);
Expand Down
Loading

0 comments on commit 13779ff

Please sign in to comment.