Netconf monitoring RFC 6022 Sessions (https://github.com/clicon/clixon/issues/370)
- statistics and transport/source-host parameters - extended internal NETCONF hello with transport and source-host attributes clixon-lib,yang - Moved all extended internal NETCONF attributes to the clicon-lib namespace C-API: - wrapped most attribute creation into new fn xml_add_attr()
This commit is contained in:
parent
7558d40faa
commit
3916fa919c
36 changed files with 883 additions and 402 deletions
|
|
@ -41,6 +41,6 @@
|
|||
/*
|
||||
* Prototypes
|
||||
*/
|
||||
int netconf_monitoring_state_get(clicon_handle h, yang_stmt *yspec, char *xpath, cvec *nsc, int brief, cxobj **xret);
|
||||
int netconf_monitoring_state_get(clicon_handle h, yang_stmt *yspec, char *xpath, cvec *nsc, cxobj **xret, cxobj **xerr);
|
||||
|
||||
#endif /* _CLIXON_NETCONF_MONITORING_H_ */
|
||||
|
|
|
|||
|
|
@ -51,7 +51,9 @@
|
|||
* @see clixon-lib.yang
|
||||
*/
|
||||
#define CLIXON_CONF_NS "http://clicon.org/config"
|
||||
#define CLIXON_CONF_PREFIX "cc"
|
||||
#define CLIXON_LIB_NS "http://clicon.org/lib"
|
||||
#define CLIXON_LIB_PREFIX "cl"
|
||||
#define CLIXON_AUTOCLI_NS "http://clicon.org/autocli"
|
||||
#define CLIXON_RESTCONF_NS "http://clicon.org/restconf"
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ int clicon_rpc_discard_changes(clicon_handle h);
|
|||
int clicon_rpc_create_subscription(clicon_handle h, char *stream, char *filter, int *s);
|
||||
int clicon_rpc_debug(clicon_handle h, int level);
|
||||
int clicon_rpc_restconf_debug(clicon_handle h, int level);
|
||||
int clicon_hello_req(clicon_handle h, uint32_t *id);
|
||||
int clicon_hello_req(clicon_handle h, char *transport, char *source_host, uint32_t *id);
|
||||
int clicon_rpc_restart_plugin(clicon_handle h, char *plugin);
|
||||
|
||||
#endif /* _CLIXON_PROTO_CLIENT_H_ */
|
||||
|
|
|
|||
|
|
@ -279,7 +279,9 @@ cxobj *xml_root(cxobj *xn);
|
|||
int xml_operation(char *opstr, enum operation_type *op);
|
||||
char *xml_operation2str(enum operation_type op);
|
||||
int xml_attr_insert2val(char *instr, enum insert_type *ins);
|
||||
int xml_add_attr(cxobj *xn, char *name, char *value, char *prefix, char *ns);
|
||||
int clicon_log_xml(int level, cxobj *x, const char *format, ...) __attribute__ ((format (printf, 3, 4)));
|
||||
|
||||
#ifdef XML_EXPLICIT_INDEX
|
||||
int xml_search_index_p(cxobj *x);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue