100#define AGT_PUSH_FL_CREATE bit0
103#define AGT_PUSH_FL_DELETE bit1
106#define AGT_PUSH_FL_INSERT bit2
109#define AGT_PUSH_FL_MOVE bit3
112#define AGT_PUSH_FL_REPLACE bit4
117#define AGT_PUSH_DEF_INCLUDED_CHANGES 0x1f
120#define AGT_PUSH_SET_CREATE_FLAG(F) (F) |= AGT_PUSH_FL_CREATE
123#define AGT_PUSH_GET_CREATE_FLAG(F) ((F) & AGT_PUSH_FL_CREATE)
126#define AGT_PUSH_SET_DELETE_FLAG(F) (F) |= AGT_PUSH_FL_DELETE
129#define AGT_PUSH_GET_DELETE_FLAG(F) ((F) & AGT_PUSH_FL_DELETE)
132#define AGT_PUSH_SET_INSERT_FLAG(F) (F) |= AGT_PUSH_FL_INSERT
135#define AGT_PUSH_GET_INSERT_FLAG(F) ((F) & AGT_PUSH_FL_INSERT)
138#define AGT_PUSH_SET_MOVE_FLAG(F) (F) |= AGT_PUSH_FL_MOVE
141#define AGT_PUSH_GET_MOVE_FLAG(F) ((F) & AGT_PUSH_FL_MOVE)
144#define AGT_PUSH_SET_REPLACE_FLAG(F) (F) |= AGT_PUSH_FL_REPLACE
147#define AGT_PUSH_GET_REPLACE_FLAG(F) ((F) & AGT_PUSH_FL_REPLACE)
161typedef enum agt_push_dserr_t_ {
286 const xmlChar *selection_filter_ref,
289 const xmlChar *stop_time,
293 const xmlChar *anchor_time,
295 uint32 dampening_period,
296 boolean sync_on_start,
297 uint32 included_changes,
333 const xmlChar *selection_filter_ref,
336 const xmlChar *stop_time,
339 const xmlChar *anchor_time,
341 boolean dampening_set,
342 uint32 dampening_period,
Manage Server configuration edit transactions.
NETCONF Notifications DM module support.
uint32 agt_not_subid_t
subscription-id parameter
Definition: agt_not.h:123
boolean agt_push_is_enabled(void)
Check if agt_push is enabled.
Definition: agt_push.c:3271
void agt_push_config_update(rpc_msg_t *msg, agt_cfg_transaction_t *txcb)
Do a config update for YANG Push subscriptions if needed.
Definition: agt_push.c:3205
agt_push_dserr_t
datastore error parameter numbers Used internally to identify error objects for <rpc-error>
Definition: agt_push.h:161
void agt_push_cleanup(void)
Cleanup the PUSH Module.
Definition: agt_push.c:2364
status_t agt_push_sync_subscription(agt_not_subid_t subid)
Request a sync for the YANG-Push datastore subscription.
Definition: agt_push.c:3175
status_t agt_push_establish_subscription(ses_cb_t *scb, ncx_nmda_ds_t datastore_id, const xmlChar *selection_filter_ref, const val_value_t *datastore_subtree_filter, const val_value_t *datastore_xpath_filter, const xmlChar *stop_time, val_value_t *encoding, boolean periodic, uint32 period, const xmlChar *anchor_time, boolean on_change, uint32 dampening_period, boolean sync_on_start, uint32 included_changes, agt_not_subid_t *subid, agt_push_dserr_t *errnum)
Set the YANG-Push datastore parameters and start a YANG push subscription.
Definition: agt_push.c:3047
status_t agt_push_init(obj_template_t *update_obj, obj_template_t *change_obj)
Initialize the PUSH modules.
Definition: agt_push.c:2312
status_t agt_push_modify_subscription(ses_cb_t *scb, agt_not_subid_t cur_subid, ncx_nmda_ds_t datastore_id, const xmlChar *selection_filter_ref, const val_value_t *datastore_subtree_filter, const val_value_t *datastore_xpath_filter, const xmlChar *stop_time, boolean periodic, uint32 period, const xmlChar *anchor_time, boolean on_change, boolean dampening_set, uint32 dampening_period, agt_push_dserr_t *errnum)
Set the YANG-Push datastore parameters and start a YANG push subscription.
Definition: agt_push.c:3120
status_t agt_push_init2(void)
PUSH init phase 2.
Definition: agt_push.c:2342
@ AGT_PUSH_DSERR_DAMPENING_PERIOD
dampening-period parameter
Definition: agt_push.h:196
@ AGT_PUSH_DSERR_FILTER_REF
filter ref parameter
Definition: agt_push.h:169
@ AGT_PUSH_DSERR_ANCHOR_TIME
anchor-time parameter
Definition: agt_push.h:190
@ AGT_PUSH_DSERR_ENCODING
encoding parameter
Definition: agt_push.h:181
@ AGT_PUSH_DSERR_SUBTREE_FILTER
subtree filter parameter
Definition: agt_push.h:172
@ AGT_PUSH_DSERR_DATASTORE
datastore parameter
Definition: agt_push.h:166
@ AGT_PUSH_DSERR_ID
subscription ID parameter
Definition: agt_push.h:205
@ AGT_PUSH_DSERR_EXCLUDED_CHANGE
excluded-change parameter
Definition: agt_push.h:202
@ AGT_PUSH_DSERR_XPATH_FILTER
xpath filter parameter
Definition: agt_push.h:175
@ AGT_PUSH_DSERR_PERIOD
period parameter
Definition: agt_push.h:187
@ AGT_PUSH_DSERR_STOP_TIME
stop-time parameter
Definition: agt_push.h:178
@ AGT_PUSH_DSERR_ON_CHANGE
on-change parameter
Definition: agt_push.h:193
@ AGT_PUSH_DSERR_NONE
not set
Definition: agt_push.h:163
@ AGT_PUSH_DSERR_PERIODIC
periodic parameter
Definition: agt_push.h:184
@ AGT_PUSH_DSERR_SYNC_ON_START
sync-on-start parameter
Definition: agt_push.h:199
status_t
global error return code
Definition: status_enum.h:210
ncx_nmda_ds_t
internal enumerations for standard NMDA datastores
Definition: ncxtypes.h:1631
NETCONF protocol remote procedure call common definitions.
NETCONF Session Common definitions module.
global error status code enumerations
Transaction Control Block.
Definition: agt_cfg.h:235
One YANG data-def-stmt.
Definition: obj.h:1229
NETCONF Server and Client RPC Request/Reply Message Header.
Definition: rpc.h:185
Session Control Block.
Definition: ses.h:573
one value to match one type
Definition: val.h:912
Value Node Basic Support.