- Changed media name: yang.collection+xml/yang to application-collection+xml/json
- Modified ietf-netconf-list-pagination.yang:
- changed get-pagable -> get-pageable
- renamed count -> limit
- renamed skip -> offset
- added import ietf-yang-metadata
- added md:annotation remaining
This commit is contained in:
parent
0c7f2043f3
commit
76e59873c2
11 changed files with 57 additions and 29 deletions
|
|
@ -840,9 +840,13 @@ xml2json1_cbuf(cbuf *cb,
|
|||
commas = xml_child_nr_notype(x, CX_ATTR) - 1;
|
||||
for (i=0; i<xml_child_nr(x); i++){
|
||||
xc = xml_child_i(x, i);
|
||||
if (xml_type(xc) == CX_ATTR)
|
||||
if (xml_type(xc) == CX_ATTR){
|
||||
#if 1 /* Work in progress, identify md:annotations */
|
||||
continue;
|
||||
#else
|
||||
continue; /* XXX Only xmlns attributes mapped */
|
||||
|
||||
#endif
|
||||
}
|
||||
xc_arraytype = array_eval(i?xml_child_i(x,i-1):NULL,
|
||||
xc,
|
||||
xml_child_i(x, i+1));
|
||||
|
|
|
|||
|
|
@ -941,7 +941,7 @@ clicon_rpc_get_pageable_list(clicon_handle h,
|
|||
cprintf(cb, " xmlns:%s=\"%s\"",
|
||||
NETCONF_BASE_PREFIX, NETCONF_BASE_NAMESPACE);
|
||||
cprintf(cb, " %s", NETCONF_MESSAGE_ID_ATTR);
|
||||
cprintf(cb, "><get-pagable-list xmlns=\"%s\"", NETCONF_COLLECTION_NAMESPACE);
|
||||
cprintf(cb, "><get-pageable-list xmlns=\"%s\"", NETCONF_COLLECTION_NAMESPACE);
|
||||
/* Clixon extension, content=all,config, or nonconfig */
|
||||
if ((int)content != -1)
|
||||
cprintf(cb, " content=\"%s\"", netconf_content_int2str(content));
|
||||
|
|
@ -965,7 +965,7 @@ clicon_rpc_get_pageable_list(clicon_handle h,
|
|||
cprintf(cb, "<sort>%s</sort>", sort);
|
||||
if (where)
|
||||
cprintf(cb, "<where>%s</where>", where);
|
||||
cprintf(cb, "</get-pagable-list></rpc>");
|
||||
cprintf(cb, "</get-pageable-list></rpc>");
|
||||
if ((msg = clicon_msg_encode(session_id, "%s", cbuf_get(cb))) == NULL)
|
||||
goto done;
|
||||
if (clicon_rpc_msg(h, msg, &xret) < 0)
|
||||
|
|
|
|||
|
|
@ -682,7 +682,7 @@ yang_find_module_by_name(yang_stmt *yspec,
|
|||
|
||||
/*! Callback for handling RFC 7952 annotations
|
||||
*
|
||||
* a server indicates that it is prepared to handle that annotation according to the
|
||||
* A server indicates that it is prepared to handle that annotation according to the
|
||||
* annotation's definition. That is, an annotation advertised by the
|
||||
* server may be attached to an instance of a data node defined in any
|
||||
* YANG module that is implemented by the server.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue