Skip to content

Commit

Permalink
udp-notif UPDATE activate configured subscriptions
Browse files Browse the repository at this point in the history
Register sysrepo callbacks for the management of configured
subscriptions.
  • Loading branch information
jeremie6wind committed Jul 18, 2023
1 parent 7f20865 commit ffdc083
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,8 @@ server_rpc_subscribe(void)

/* one more yang-push RPC */
SR_RPC_SUBSCR("/ietf-yang-push:resync-subscription", np2srv_rpc_resync_sub_cb);
SR_RPC_SUBSCR("/ietf-subscribed-notifications:subscriptions/subscription/receivers/receiver/reset",
np2srv_rpc_reset_receiver_cb);

return 0;

Expand Down Expand Up @@ -854,9 +856,20 @@ server_data_subscribe(void)
xpath = "/ietf-subscribed-notifications:filters";
SR_CONFIG_SUBSCR(mod_name, xpath, np2srv_config_sub_ntf_filters_cb);

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);

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

/* operational data */
SR_OPER_SUBSCR(mod_name, "/ietf-subscribed-notifications:streams", np2srv_oper_sub_ntf_streams_cb);
SR_OPER_SUBSCR(mod_name, "/ietf-subscribed-notifications:subscriptions", np2srv_oper_sub_ntf_subscriptions_cb);
SR_OPER_SUBSCR(mod_name, "/ietf-subscribed-notifications:subscriptions/subscription/receivers/receiver",
np2srv_oper_sub_ntf_receivers_cb);

/*
* ietf-netconf-server
Expand Down

0 comments on commit ffdc083

Please sign in to comment.