yumapro  20.10-12
YumaPro SDK
agt_rpcerr.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008 - 2012, Andy Bierman, All Rights Reserved.
3  * Copyright (c) 2012 - 2021, YumaWorks, Inc., All Rights Reserved.
4  *
5  * Unless required by applicable law or agreed to in writing,
6  * software distributed under the License is distributed on an
7  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8  * KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations
10  * under the License.
11  */
12 #ifndef _H_agt_rpcerr
13 #define _H_agt_rpcerr
14 /* FILE: agt_rpcerr.h
15 *********************************************************************
16 * *
17 * P U R P O S E *
18 * *
19 *********************************************************************/
20 
27 /*********************************************************************
28 * *
29 * C H A N G E H I S T O R Y *
30 * *
31 *********************************************************************
32 
33 date init comment
34 ----------------------------------------------------------------------
35 07-mar-06 abb Begun.
36 13-jan-07 abb moved from rpc dir to agt; rename rpc_agterr
37  to agt_rpcerr
38 */
39 
40 #include <xmlstring.h>
41 
42 #ifndef _H_ncxtypes
43 #include "ncxtypes.h"
44 #endif
45 
46 #ifndef _H_rpc_err
47 #include "rpc_err.h"
48 #endif
49 
50 #ifndef _H_status
51 #include "status.h"
52 #endif
53 
54 #ifndef _H_val
55 #include "val.h"
56 #endif
57 
58 #ifndef _H_xml_msg
59 #include "xml_msg.h"
60 #endif
61 
62 #ifndef _H_xml_util
63 #include "xml_util.h"
64 #endif
65 
66 #ifndef _H_getcb
67 #include "getcb.h"
68 #endif
69 
70 #ifdef __cplusplus
71 extern "C" {
72 #endif
73 
74 
75 /********************************************************************
76 * *
77 * F U N C T I O N S *
78 * *
79 *********************************************************************/
80 
119 extern rpc_err_rec_t *
120  agt_rpcerr_gen_error (ncx_layer_t layer,
121  status_t interr,
122  const xml_node_t *errnode,
123  ncx_node_t parmtyp,
124  const void *error_parm,
125  xmlChar *error_path);
126 
127 
153 extern rpc_err_rec_t *
154  agt_rpcerr_gen_error_errinfo (ncx_layer_t layer,
155  status_t interr,
156  const xml_node_t *errnode,
157  ncx_node_t parmtyp,
158  const void *error_parm,
159  xmlChar *error_path,
160  const ncx_errinfo_t *errinfo);
161 
162 
193 extern rpc_err_rec_t *
194  agt_rpcerr_gen_error_ex (ncx_layer_t layer,
195  status_t interr,
196  const xml_node_t *errnode,
197  ncx_node_t parmtyp,
198  const void *error_parm,
199  xmlChar *error_path,
200  const ncx_errinfo_t *errinfo,
201  ncx_node_t nodetyp,
202  void *error_path_raw,
203  boolean is_error);
204 
205 
223 extern rpc_err_rec_t *
224  agt_rpcerr_gen_insert_error (ncx_layer_t layer,
225  status_t interr,
226  val_value_t *errval,
227  xmlChar *error_path);
228 
229 
250 extern rpc_err_rec_t *
251  agt_rpcerr_gen_unique_error (xml_msg_hdr_t *msghdr,
252  ncx_layer_t layer,
253  status_t interr,
254  const dlq_hdr_t *valuniqueQ,
255  xmlChar *error_path,
256  val_value_t *errval);
257 
258 
280 extern rpc_err_rec_t *
281  agt_rpcerr_gen_attr_error (ncx_layer_t layer,
282  status_t interr,
283  const xml_attr_t *attr,
284  const xml_node_t *errnode,
285  val_value_t *errnodeval,
286  const xmlChar *badns,
287  xmlChar *error_path);
288 
289 
296 extern rpc_err_t
297  agt_rpcerr_get_rpcerr (status_t intres);
298 
299 
300 #if defined(WITH_YANGAPI) || defined(WITH_YCONTROL) || defined(WITH_RESTCONF)
301 
302 
309 extern uint32
310  agt_rpcerr_get_http_status_code (status_t res);
311 
312 
319 extern const xmlChar *
320  agt_rpcerr_get_http_status_string (uint32 status);
321 
322 
323 #endif // WITH_YANGAPI || WITH_YCONTROL || WITH_RESTCONF
324 
325 
338 extern status_t
339  agt_rpcerr_add_user_data (rpc_err_rec_t *err,
340  dlq_hdr_t *dataQ);
341 
342 
346 #ifdef __cplusplus
347 } /* end extern 'C' */
348 #endif
349 
350 #endif /* _H_agt_rpcerr */
ERR_NCX_IF_FEATURE_KEY
@ ERR_NCX_IF_FEATURE_KEY
410
Definition: status_enum.h:453
ERR_PAGE_NOT_HANDLED
@ ERR_PAGE_NOT_HANDLED
207
Definition: status_enum.h:246
ERR_INTERNAL_QDEL
@ ERR_INTERNAL_QDEL
006
Definition: status_enum.h:196
ERR_NCX_NOT_CONFIG
@ ERR_NCX_NOT_CONFIG
342
Definition: status_enum.h:385
ERR_NCX_UNEXPECTED_INPUT
@ ERR_NCX_UNEXPECTED_INPUT
389
Definition: status_enum.h:432
ERR_NCX_SKIPPED
@ ERR_NCX_SKIPPED
2001
Definition: status_enum.h:551
ERR_NCX_QPARAM_NOT_ALLOWED
@ ERR_NCX_QPARAM_NOT_ALLOWED
391
Definition: status_enum.h:434
ERR_NCX_WRONG_NODEDEPTH
@ ERR_NCX_WRONG_NODEDEPTH
277
Definition: status_enum.h:320
ERR_NCX_CONDITIONAL_DEFVAL
@ ERR_NCX_CONDITIONAL_DEFVAL
414
Definition: status_enum.h:457
ERR_NCX_NOT_IN_RANGE
@ ERR_NCX_NOT_IN_RANGE
288
Definition: status_enum.h:331
ERR_NCX_MISSING_REFTARGET
@ ERR_NCX_MISSING_REFTARGET
366
Definition: status_enum.h:409
NCX_NT_STRING
@ NCX_NT_STRING
xmlChar *, error only
Definition: ncxtypes.h:279
ERR_NCX_NUMLEN_TOOBIG
@ ERR_NCX_NUMLEN_TOOBIG
287
Definition: status_enum.h:330
RPC_ERR_TOO_BIG
@ RPC_ERR_TOO_BIG
too-big
Definition: rpc_err.h:413
ERR_NCX_TIMEOUT
@ ERR_NCX_TIMEOUT
368
Definition: status_enum.h:411
ERR_NCX_REFINE_NOT_ALLOWED
@ ERR_NCX_REFINE_NOT_ALLOWED
324
Definition: status_enum.h:367
ERR_NCX_EXTRA_NODE
@ ERR_NCX_EXTRA_NODE
281
Definition: status_enum.h:324
cfg.h
ERR_NCX_DEFCHOICE_NOT_OPTIONAL
@ ERR_NCX_DEFCHOICE_NOT_OPTIONAL
326
Definition: status_enum.h:369
ERR_NCX_XPATH_NODESET_EMPTY
@ ERR_NCX_XPATH_NODESET_EMPTY
371
Definition: status_enum.h:414
NCX_IFMT_XPATH1
@ NCX_IFMT_XPATH1
single-quote Xpath for filter
Definition: ncxtypes.h:399
ERR_NCX_MISSING_CHOICE
@ ERR_NCX_MISSING_CHOICE
296 - 13.6
Definition: status_enum.h:339
ERR_NCX_WRONG_NODETYP
@ ERR_NCX_WRONG_NODETYP
282
Definition: status_enum.h:325
OBJ_TYP_LIST
@ OBJ_TYP_LIST
list: last real database object
Definition: obj.h:617
ERR_NCX_NO_ACCESS_ACL
@ ERR_NCX_NO_ACCESS_ACL
300
Definition: status_enum.h:343
ERR_NCX_IMPORT_ERRORS
@ ERR_NCX_IMPORT_ERRORS
332
Definition: status_enum.h:375
agt_util.h
Utility Functions for NCX Server method routines.
ERR_NCX_EXTRA_ENUMCH
@ ERR_NCX_EXTRA_ENUMCH
290
Definition: status_enum.h:333
xpath_first_resnode_valptr
val_value_t * xpath_first_resnode_valptr(xpath_resnode_t *resnode)
Get the first result in the renodeQ from a result struct.
Definition: xpath.c:3982
ERR_NCX_WRONG_NS
@ ERR_NCX_WRONG_NS
230
Definition: status_enum.h:269
ERR_NCX_MISSING_INDEX
@ ERR_NCX_MISSING_INDEX
306
Definition: status_enum.h:349
xml_strdup
xmlChar * xml_strdup(const xmlChar *copyFrom)
String duplicate for xmlChar.
Definition: xml_util.c:1553
ERR_QNODE_NOT_DATA
@ ERR_QNODE_NOT_DATA
009
Definition: status_enum.h:199
ERR_NCX_RESOURCE_UNKNOWN
@ ERR_NCX_RESOURCE_UNKNOWN
385
Definition: status_enum.h:428
ERR_NCX_WRONG_TKVAL
@ ERR_NCX_WRONG_TKVAL
246
Definition: status_enum.h:285
rpc_err_new_record
rpc_err_rec_t * rpc_err_new_record(void)
Malloc and init an rpc_err_rec_t struct.
Definition: rpc_err.c:290
ERR_NCX_EXTRA_ATTR
@ ERR_NCX_EXTRA_ATTR
308
Definition: status_enum.h:351
ERR_NCX_USING_OBSOLETE
@ ERR_NCX_USING_OBSOLETE
344
Definition: status_enum.h:387
ERR_NCX_BAD_ELEMENT
@ ERR_NCX_BAD_ELEMENT
264
Definition: status_enum.h:305
ERR_NCX_MDATA_NOT_ALLOWED
@ ERR_NCX_MDATA_NOT_ALLOWED
255
Definition: status_enum.h:294
ERR_NCX_JSON_NOT_YET
@ ERR_NCX_JSON_NOT_YET
412
Definition: status_enum.h:455
ERR_NCX_SELECT_FAILED
@ ERR_NCX_SELECT_FAILED
399
Definition: status_enum.h:442
ERR_NCX_NOTIF_STREAM_UNAVAILABLE
@ ERR_NCX_NOTIF_STREAM_UNAVAILABLE
428
Definition: status_enum.h:473
ERR_NCX_DEF_NOT_FOUND
@ ERR_NCX_DEF_NOT_FOUND
250
Definition: status_enum.h:289
ERR_NCX_PUSH_NO_SUCH_RESYNC
@ ERR_NCX_PUSH_NO_SUCH_RESYNC
431
Definition: status_enum.h:478
log_error
void log_error(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_ERROR log entry.
ERR_NCX_ROLLBACK_FAILED
@ ERR_NCX_ROLLBACK_FAILED
270
Definition: status_enum.h:311
ERR_NCX_INCLUDE_LOOP
@ ERR_NCX_INCLUDE_LOOP
328
Definition: status_enum.h:371
ERR_FIL_STAT
@ ERR_FIL_STAT
105
Definition: status_enum.h:217
ERR_BAD_QLINK
@ ERR_BAD_QLINK
010
Definition: status_enum.h:200
ERR_NCX_EXTRA_PARMINST
@ ERR_NCX_EXTRA_PARMINST
294
Definition: status_enum.h:337
ERR_NCX_UNKNOWN_ELEMENT
@ ERR_NCX_UNKNOWN_ELEMENT
265
Definition: status_enum.h:306
val.h
Value Node Basic Support.
NCX_BT_INSTANCE_ID
@ NCX_BT_INSTANCE_ID
instance-identifier
Definition: ncxtypes.h:219
ERR_NCX_BUFF_SHORT
@ ERR_NCX_BUFF_SHORT
247
Definition: status_enum.h:286
ERR_NCX_MISSING_KEY
@ ERR_NCX_MISSING_KEY
383
Definition: status_enum.h:426
xml_util.h
XML Utilities.
rpc_err_new_info
rpc_err_info_t * rpc_err_new_info(void)
Malloc and init an rpc_err_info_t struct.
Definition: rpc_err.c:417
ERR_NCX_MUST_TEST_FAILED
@ ERR_NCX_MUST_TEST_FAILED
339 - 13.4
Definition: status_enum.h:382
getcb.h
GET1 and GET2 Callback Support.
ERR_NCX_EXTRA_VAL_INST
@ ERR_NCX_EXTRA_VAL_INST
311
Definition: status_enum.h:354
ERR_NCX_DATA_EXISTS
@ ERR_NCX_DATA_EXISTS
271
Definition: status_enum.h:312
agt_rpc.h
NETCONF protocol remote procedure call server-side definitions.
ERR_NCX_WRONG_OWNER
@ ERR_NCX_WRONG_OWNER
278
Definition: status_enum.h:321
ERR_NCX_MULTIPLE_MATCHES
@ ERR_NCX_MULTIPLE_MATCHES
381
Definition: status_enum.h:424
ERR_NCX_NO_DEFAULT
@ ERR_NCX_NO_DEFAULT
382
Definition: status_enum.h:425
ERR_NCX_CONNECT_FAILED
@ ERR_NCX_CONNECT_FAILED
315
Definition: status_enum.h:358
ERR_NCX_NO_ACCESS_MAX
@ ERR_NCX_NO_ACCESS_MAX
303
Definition: status_enum.h:346
ERR_NCX_UNKNOWN_VERSION
@ ERR_NCX_UNKNOWN_VERSION
357
Definition: status_enum.h:400
ERR_NCX_PUSH_ON_CHANGE_SYNC_UNSUPPORTED
@ ERR_NCX_PUSH_ON_CHANGE_SYNC_UNSUPPORTED
433
Definition: status_enum.h:480
ERR_TOO_MANY_ENTRIES
@ ERR_TOO_MANY_ENTRIES
012
Definition: status_enum.h:202
ERR_NCX_UNKNOWN_APP
@ ERR_NCX_UNKNOWN_APP
298
Definition: status_enum.h:341
agt_rpcerr_gen_unique_error
rpc_err_rec_t * agt_rpcerr_gen_unique_error(xml_msg_hdr_t *msghdr, ncx_layer_t layer, status_t interr, const dlq_hdr_t *valuniqueQ, xmlChar *error_path, val_value_t *errval)
Generate an internal <rpc-error> record for an element for a unique-stmt failed error (data-not-uniqu...
Definition: agt_rpcerr.c:1981
agt_rpcerr_gen_insert_error
rpc_err_rec_t * agt_rpcerr_gen_insert_error(ncx_layer_t layer, status_t interr, val_value_t *errval, xmlChar *error_path)
Generate an internal <rpc-error> record for an element for an insert operation failed error.
Definition: agt_rpcerr.c:1896
ERR_HEAPCHK_ERR
@ ERR_HEAPCHK_ERR
016
Definition: status_enum.h:206
ERR_NCX_UNENDED_COMMENT
@ ERR_NCX_UNENDED_COMMENT
319
Definition: status_enum.h:362
ERR_NCX_DATA_REST_VIOLATION
@ ERR_NCX_DATA_REST_VIOLATION
340 - obsolete
Definition: status_enum.h:383
ERR_NCX_MISSING_DATA_DEF_STMT
@ ERR_NCX_MISSING_DATA_DEF_STMT
413
Definition: status_enum.h:456
ERR_SPIN_LOCK_ERR
@ ERR_SPIN_LOCK_ERR
017
Definition: status_enum.h:207
ERR_FIL_DELETE
@ ERR_FIL_DELETE
107
Definition: status_enum.h:219
ERR_NCX_ACCESS_READ_ONLY
@ ERR_NCX_ACCESS_READ_ONLY
375
Definition: status_enum.h:418
RPC_ERR_RESOURCE_DENIED
@ RPC_ERR_RESOURCE_DENIED
resource-denied
Definition: rpc_err.h:423
ERR_NCX_HEADER_NOT_ALLOWED
@ ERR_NCX_HEADER_NOT_ALLOWED
393
Definition: status_enum.h:436
ERR_NCX_WRONG_VERSION
@ ERR_NCX_WRONG_VERSION
314
Definition: status_enum.h:357
ERR_NCX_READ_FAILED
@ ERR_NCX_READ_FAILED
240
Definition: status_enum.h:279
ERR_PARSPOST_RD_INPUT
@ ERR_PARSPOST_RD_INPUT
202
Definition: status_enum.h:241
ERR_NCX_TOO_BIG
@ ERR_NCX_TOO_BIG
259
Definition: status_enum.h:300
ERR_NCX_WRONG_ORDER
@ ERR_NCX_WRONG_ORDER
280
Definition: status_enum.h:323
ERR_NCX_PASSWORD_TOO_SHORT
@ ERR_NCX_PASSWORD_TOO_SHORT
406
Definition: status_enum.h:449
ERR_NCX_INVALID_FRAMING
@ ERR_NCX_INVALID_FRAMING
378
Definition: status_enum.h:421
ERR_NCX_UNEXPECTED_INSERT_ATTRS
@ ERR_NCX_UNEXPECTED_INSERT_ATTRS
351
Definition: status_enum.h:394
NCX_NT_CFG
@ NCX_NT_CFG
cfg_template_t *, error only
Definition: ncxtypes.h:280
ERR_NCX_INVALID_CONCAT
@ ERR_NCX_INVALID_CONCAT
320
Definition: status_enum.h:363
ERR_Q_ALREADY
@ ERR_Q_ALREADY
011
Definition: status_enum.h:201
ERR_NCX_PATTERN_FAILED
@ ERR_NCX_PATTERN_FAILED
333
Definition: status_enum.h:376
ERR_NCX_DUP_ENTRY
@ ERR_NCX_DUP_ENTRY
224
Definition: status_enum.h:263
ERR_NCX_PUSH_UPDATE_TOO_BIG
@ ERR_NCX_PUSH_UPDATE_TOO_BIG
435
Definition: status_enum.h:482
VAL_NAME
#define VAL_NAME(V)
Access the value name.
Definition: val.h:399
ncxconst.h
Contains NCX constants.
RPC_ERR_ACCESS_DENIED
@ RPC_ERR_ACCESS_DENIED
access-denied
Definition: rpc_err.h:421
ERR_NCX_INVALID_TOKEN
@ ERR_NCX_INVALID_TOKEN
238
Definition: status_enum.h:277
ERR_NCX_NOTIF_NO_SUCH_SUBSCRIPTION
@ ERR_NCX_NOTIF_NO_SUCH_SUBSCRIPTION
426
Definition: status_enum.h:471
ERR_NCX_WRONG_VAL
@ ERR_NCX_WRONG_VAL
232
Definition: status_enum.h:271
cfg_get_root
val_value_t * cfg_get_root(ncx_cfg_t cfgid)
Get the config root for the specified config.
Definition: cfg.c:3240
ERR_NCX_INVALID_AUGTARGET
@ ERR_NCX_INVALID_AUGTARGET
345
Definition: status_enum.h:388
RPC_ERR_ROLLBACK_FAILED
@ RPC_ERR_ROLLBACK_FAILED
rollback-failed
Definition: rpc_err.h:424
ERR_FIL_WRITE
@ ERR_FIL_WRITE
103
Definition: status_enum.h:215
ERR_NCX_UNKNOWN_PARM
@ ERR_NCX_UNKNOWN_PARM
227
Definition: status_enum.h:266
ERR_DB_READ_FAILED
@ ERR_DB_READ_FAILED
116
Definition: status_enum.h:228
ERR_PAGE_ACCESS_DENIED
@ ERR_PAGE_ACCESS_DENIED
208
Definition: status_enum.h:247
ERR_QNODE_NOT_HDR
@ ERR_QNODE_NOT_HDR
008
Definition: status_enum.h:198
ERR_FIL_CLOSE
@ ERR_FIL_CLOSE
102
Definition: status_enum.h:214
obj_errmsg.h
Handles errmsg data structures.
xmlns_id_t
uint16 xmlns_id_t
integer handle for registered namespaces
Definition: xmlns.h:89
ERR_NCX_ENTRY_EXISTS
@ ERR_NCX_ENTRY_EXISTS
223
Definition: status_enum.h:262
ERR_NCX_CC_NOT_ACTIVE
@ ERR_NCX_CC_NOT_ACTIVE
380
Definition: status_enum.h:423
xmlns_yang_id
xmlns_id_t xmlns_yang_id(void)
Get the ID for the YANG namespace or 0 if it doesn't exist.
Definition: xmlns.c:1017
ERR_NCX_VALUE_DISABLED
@ ERR_NCX_VALUE_DISABLED
408
Definition: status_enum.h:451
ERR_DB_ENTRY_EXISTS
@ ERR_DB_ENTRY_EXISTS
110
Definition: status_enum.h:222
ERR_NCX_MISSING_PARM
@ ERR_NCX_MISSING_PARM
233
Definition: status_enum.h:272
ERR_NCX_RPC_WHEN_FAILED
@ ERR_NCX_RPC_WHEN_FAILED
364
Definition: status_enum.h:407
ERR_NCX_TYPE_NOT_MDATA
@ ERR_NCX_TYPE_NOT_MDATA
254
Definition: status_enum.h:293
agt_rpcerr_gen_error_ex
rpc_err_rec_t * agt_rpcerr_gen_error_ex(ncx_layer_t layer, status_t interr, const xml_node_t *errnode, ncx_node_t parmtyp, const void *error_parm, xmlChar *error_path, const ncx_errinfo_t *errinfo, ncx_node_t nodetyp, void *error_path_raw, boolean is_error)
Generate an internal <rpc-error> record for an element (or non-attribute) related error for any layer...
Definition: agt_rpcerr.c:1501
def_reg.h
Definition Registry module.
ERR_NCX_CONFIG_NOT_TARGET
@ ERR_NCX_CONFIG_NOT_TARGET
376
Definition: status_enum.h:419
ERR_FORM_STATE
@ ERR_FORM_STATE
210
Definition: status_enum.h:249
val_gen_instance_id
status_t val_gen_instance_id(xml_msg_hdr_t *mhdr, const val_value_t *val, ncx_instfmt_t format, xmlChar **buff)
Malloc and Generate the instance ID string for this value node,.
Definition: val_util.c:3424
ERR_NCX_UNKNOWN_QUERY_PARM
@ ERR_NCX_UNKNOWN_QUERY_PARM
404
Definition: status_enum.h:447
ERR_NCX_MISSING_ATTR
@ ERR_NCX_MISSING_ATTR
309
Definition: status_enum.h:352
NO_ERR
@ NO_ERR
000
Definition: status_enum.h:188
ERR_INTERNAL_BUFF
@ ERR_INTERNAL_BUFF
005
Definition: status_enum.h:195
xpath.h
Schema and data model Xpath search support.
ERR_XML_READER_WRONGEL
@ ERR_XML_READER_WRONGEL
219
Definition: status_enum.h:258
ERR_NCX_WRONG_INDEX_TYPE
@ ERR_NCX_WRONG_INDEX_TYPE
304
Definition: status_enum.h:347
ERR_NCX_TEMPLATE_NOT_FOUND
@ ERR_NCX_TEMPLATE_NOT_FOUND
417
Definition: status_enum.h:460
ERR_NCX_MAX_ELEMS_VIOLATION
@ ERR_NCX_MAX_ELEMS_VIOLATION
337 - 13.2
Definition: status_enum.h:380
agt_rpcerr_gen_error_errinfo
rpc_err_rec_t * agt_rpcerr_gen_error_errinfo(ncx_layer_t layer, status_t interr, const xml_node_t *errnode, ncx_node_t parmtyp, const void *error_parm, xmlChar *error_path, const ncx_errinfo_t *errinfo)
Generate an internal <rpc-error> record for an element (or non-attribute) related error for any layer...
Definition: agt_rpcerr.c:1443
ERR_NCX_PRECONDITION_FAILED
@ ERR_NCX_PRECONDITION_FAILED
392
Definition: status_enum.h:435
ERR_NCX_WRONG_INSTANCE_TYPE
@ ERR_NCX_WRONG_INSTANCE_TYPE
305
Definition: status_enum.h:348
ERR_NCX_TOP_LEVEL_MANDATORY_FAILED
@ ERR_NCX_TOP_LEVEL_MANDATORY_FAILED
384
Definition: status_enum.h:427
RPC_ERR_SEV_NONE
@ RPC_ERR_SEV_NONE
not set
Definition: rpc_err.h:436
ERR_NCX_WRONG_TKTYPE
@ ERR_NCX_WRONG_TKTYPE
245
Definition: status_enum.h:284
ERR_NCX_MOD_NOT_FOUND
@ ERR_NCX_MOD_NOT_FOUND
236
Definition: status_enum.h:275
ERR_NCX_WRONG_DATAVAL
@ ERR_NCX_WRONG_DATAVAL
286
Definition: status_enum.h:329
ERR_NCX_INVALID_CONT_TYPE
@ ERR_NCX_INVALID_CONT_TYPE
403
Definition: status_enum.h:446
ERR_NCX_INVALID_REALNUM
@ ERR_NCX_INVALID_REALNUM
243
Definition: status_enum.h:282
RPC_ERR_LOCK_DENIED
@ RPC_ERR_LOCK_DENIED
lock-denied
Definition: rpc_err.h:422
ERR_NCX_MISSING_FILE
@ ERR_NCX_MISSING_FILE
226
Definition: status_enum.h:265
val_get_nsid
xmlns_id_t val_get_nsid(const val_value_t *val)
Get the namespace ID for the specified value node.
Definition: val.c:12277
obj_get_name
const xmlChar * obj_get_name(const obj_template_t *obj)
Get the name field for this obj.
Definition: obj.c:10511
ERR_NCX_OPERATION_FAILED
@ ERR_NCX_OPERATION_FAILED
274
Definition: status_enum.h:315
ERR_NCX_IN_USE_LOCKED
@ ERR_NCX_IN_USE_LOCKED
372
Definition: status_enum.h:415
ERR_NCX_WRONG_NODETYP_SIM
@ ERR_NCX_WRONG_NODETYP_SIM
283
Definition: status_enum.h:326
ERR_DB_CONNECT_FAILED
@ ERR_DB_CONNECT_FAILED
109
Definition: status_enum.h:221
log_warn
void void void log_warn(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_WARN log entry.
ERR_INTERNAL_VAL
@ ERR_INTERNAL_VAL
004
Definition: status_enum.h:194
ERR_NCX_MAINTENANCE_MODE
@ ERR_NCX_MAINTENANCE_MODE
420
Definition: status_enum.h:463
ERR_DB_WRONG_TAGTYPE
@ ERR_DB_WRONG_TAGTYPE
115
Definition: status_enum.h:227
ERR_NCX_CANDIDATE_DIRTY
@ ERR_NCX_CANDIDATE_DIRTY
367
Definition: status_enum.h:410
ERR_NCX_INVALID_RANGE
@ ERR_NCX_INVALID_RANGE
248
Definition: status_enum.h:287
val_util.h
Value Node Utilities.
ERR_NCX_WRONG_TYPE
@ ERR_NCX_WRONG_TYPE
231
Definition: status_enum.h:270
ERR_NCX_PUSH_DATASTORE_NOT_SUBSCRIBABLE
@ ERR_NCX_PUSH_DATASTORE_NOT_SUBSCRIBABLE
430
Definition: status_enum.h:477
ERR_NCX_UNKNOWN_TYPE
@ ERR_NCX_UNKNOWN_TYPE
299
Definition: status_enum.h:342
ERR_NCX_IN_USE_COMMIT
@ ERR_NCX_IN_USE_COMMIT
373
Definition: status_enum.h:416
ERR_NCX_MANDATORY_NOT_ALLOWED
@ ERR_NCX_MANDATORY_NOT_ALLOWED
335
Definition: status_enum.h:378
ERR_NCX_INVALID_VALUE
@ ERR_NCX_INVALID_VALUE
258
Definition: status_enum.h:299
NCX_CFGID_CANDIDATE
@ NCX_CFGID_CANDIDATE
candidate datastore
Definition: ncxtypes.h:385
ERR_DB_WRONG_CKSUM
@ ERR_DB_WRONG_CKSUM
114
Definition: status_enum.h:226
NCX_NT_QNAME
@ NCX_NT_QNAME
xmlns_qname_t *, error only
Definition: ncxtypes.h:282
ERR_NCX_UNENDED_QSTRING
@ ERR_NCX_UNENDED_QSTRING
239
Definition: status_enum.h:278
ERR_NCX_WRONG_LEN
@ ERR_NCX_WRONG_LEN
222
Definition: status_enum.h:261
rpc.h
NETCONF protocol remote procedure call common definitions.
ERR_NCX_GET_SCHEMA_DUPLICATES
@ ERR_NCX_GET_SCHEMA_DUPLICATES
369
Definition: status_enum.h:412
ERR_INTERNAL_MEM
@ ERR_INTERNAL_MEM
003
Definition: status_enum.h:193
ERR_NCX_NOTIFS_NOT_ENABLED
@ ERR_NCX_NOTIFS_NOT_ENABLED
419
Definition: status_enum.h:462
val_child.h
Value Node Child Access Support.
ERR_FIL_BAD_DRIVE
@ ERR_FIL_BAD_DRIVE
203
Definition: status_enum.h:242
ERR_INTERNAL_INIT_SEQ
@ ERR_INTERNAL_INIT_SEQ
007
Definition: status_enum.h:197
get_error_string
const char * get_error_string(status_t res)
Get the error message for a specific internal error.
Definition: status.c:239
ERR_NCX_PUSH_PERIOD_UNSUPPORTED
@ ERR_NCX_PUSH_PERIOD_UNSUPPORTED
434
Definition: status_enum.h:481
ERR_NCX_SESSION_FAILED
@ ERR_NCX_SESSION_FAILED
317
Definition: status_enum.h:360
ERR_INTERNAL_PTR
@ ERR_INTERNAL_PTR
002
Definition: status_enum.h:192
ERR_NCX_AUTH_FAILED
@ ERR_NCX_AUTH_FAILED
318
Definition: status_enum.h:361
ERR_NCX_MISSING_ATTRIBUTE
@ ERR_NCX_MISSING_ATTRIBUTE
260
Definition: status_enum.h:301
agt_rpcerr_gen_attr_error
rpc_err_rec_t * agt_rpcerr_gen_attr_error(ncx_layer_t layer, status_t interr, const xml_attr_t *attr, const xml_node_t *errnode, val_value_t *errnodeval, const xmlChar *badns, xmlChar *error_path)
Generate an internal <rpc-error> record for an attribute.
Definition: agt_rpcerr.c:2084
ERR_NCX_INSERT_MISSING_INSTANCE
@ ERR_NCX_INSERT_MISSING_INSTANCE
341 - 13.8
Definition: status_enum.h:384
log_debug
void void void void void void void log_debug(const char *fstr,...) __attribute__((format(printf
Generate a new LOG_DEBUG_DEBUG log entry.
ERR_XML_READER_NULLNAME
@ ERR_XML_READER_NULLNAME
215
Definition: status_enum.h:254
NCX_CFGID_RUNNING
@ NCX_CFGID_RUNNING
running datastore (no value for not set!)
Definition: ncxtypes.h:384
RPC_ERR_UNKNOWN_ATTRIBUTE
@ RPC_ERR_UNKNOWN_ATTRIBUTE
unknown-attribute
Definition: rpc_err.h:416
RPC_ERR_MISSING_ATTRIBUTE
@ RPC_ERR_MISSING_ATTRIBUTE
missing-attribute
Definition: rpc_err.h:414
ERR_NO_SRCFILE
@ ERR_NO_SRCFILE
201
Definition: status_enum.h:240
ERR_NCX_NOTIF_FILTER_UNAVAILABLE
@ ERR_NCX_NOTIF_FILTER_UNAVAILABLE
423
Definition: status_enum.h:468
ERR_TR_BEEP_NC_INIT
@ ERR_TR_BEEP_NC_INIT
120
Definition: status_enum.h:232
ERR_NCX_EOF
@ ERR_NCX_EOF
244
Definition: status_enum.h:283
dlq_nextEntry
#define dlq_nextEntry(nodeP)
get the next queue entry after the current entry
Definition: dlq.h:265
ERR_NCX_DEFSEG_NOT_FOUND
@ ERR_NCX_DEFSEG_NOT_FOUND
251
Definition: status_enum.h:290
ERR_NCX_NOTIF_ENCODING_UNSUPPORTED
@ ERR_NCX_NOTIF_ENCODING_UNSUPPORTED
422
Definition: status_enum.h:467
ERR_NCX_INVALID_NAME
@ ERR_NCX_INVALID_NAME
228
Definition: status_enum.h:267
ERR_NCX_INVALID_XPATH_EXPR
@ ERR_NCX_INVALID_XPATH_EXPR
348
Definition: status_enum.h:391
agt.h
Multi-Protocol Network Management Server.
ERR_NCX_AMBIGUOUS_CMD
@ ERR_NCX_AMBIGUOUS_CMD
355
Definition: status_enum.h:398
ERR_NCX_UNENDED_BLOCK
@ ERR_NCX_UNENDED_BLOCK
386
Definition: status_enum.h:429
ERR_NCX_RESOURCE_DENIED
@ ERR_NCX_RESOURCE_DENIED
269
Definition: status_enum.h:310
ERR_NCX_TYPE_NOT_INDEX
@ ERR_NCX_TYPE_NOT_INDEX
252
Definition: status_enum.h:291
ERR_NCX_RUNNING_NOT_VALID
@ ERR_NCX_RUNNING_NOT_VALID
394
Definition: status_enum.h:437
agt_restcmn.h
Common function for RESTCONF and YANG-API protocols.
ERR_NCX_BINARY_FILE
@ ERR_NCX_BINARY_FILE
395
Definition: status_enum.h:438
ERR_NCX_NOT_FOUND
@ ERR_NCX_NOT_FOUND
225
Definition: status_enum.h:264
ERR_XML_READER_NULLVAL
@ ERR_XML_READER_NULLVAL
216
Definition: status_enum.h:255
ERR_OPEN_DIR_FAILED
@ ERR_OPEN_DIR_FAILED
122
Definition: status_enum.h:234
obj_errmsg_check_val
status_t obj_errmsg_check_val(const xmlChar *error_tag, const xmlChar *error_app_tag, const xmlChar *error_lang, val_value_t *error_val, xmlChar **retmsg)
Get the custom error message if any configured for the eror_val.
Definition: obj_errmsg.c:618
RPC_ERR_MISSING_ELEMENT
@ RPC_ERR_MISSING_ELEMENT
missing-element
Definition: rpc_err.h:417
ERR_NCX_NO_ACCESS_LOCK
@ ERR_NCX_NO_ACCESS_LOCK
301
Definition: status_enum.h:344
agt_rpcerr_get_rpcerr
rpc_err_t agt_rpcerr_get_rpcerr(status_t intres)
Translate the status_t to a rpc_err_t.
Definition: agt_rpcerr.c:2187
RPC_ERR_PARTIAL_OPERATION
@ RPC_ERR_PARTIAL_OPERATION
partial-operation, deprecated; not used
Definition: rpc_err.h:429
ERR_NCX_BAD_ATTRIBUTE
@ ERR_NCX_BAD_ATTRIBUTE
261
Definition: status_enum.h:302
ERR_NCX_EXTRA_CHOICE
@ ERR_NCX_EXTRA_CHOICE
295
Definition: status_enum.h:338
ERR_FIL_READ
@ ERR_FIL_READ
101
Definition: status_enum.h:213
ERR_NCX_INVALID_PATTERN
@ ERR_NCX_INVALID_PATTERN
313
Definition: status_enum.h:356
RPC_ERR_UNKNOWN_NAMESPACE
@ RPC_ERR_UNKNOWN_NAMESPACE
unknown-namespace
Definition: rpc_err.h:420
ERR_NCX_OPERATION_NOT_SUPPORTED
@ ERR_NCX_OPERATION_NOT_SUPPORTED
273
Definition: status_enum.h:314
ERR_NCX_PREFIX_NOT_FOUND
@ ERR_NCX_PREFIX_NOT_FOUND
331
Definition: status_enum.h:374
xml_msg.h
XML and JSON Message send and receive support.
ERR_DB_DELETE_FAILED
@ ERR_DB_DELETE_FAILED
113
Definition: status_enum.h:225
ERR_NCX_LOCK_DENIED
@ ERR_NCX_LOCK_DENIED
268
Definition: status_enum.h:309
ERR_NCX_INVALID_NUM
@ ERR_NCX_INVALID_NUM
241
Definition: status_enum.h:280
ERR_NCX_TOO_MANY_XML
@ ERR_NCX_TOO_MANY_XML
411
Definition: status_enum.h:454
agt_rpcerr_get_http_status_string
const xmlChar * agt_rpcerr_get_http_status_string(uint32 status)
Translate the HTTP status code to an HTTP status line.
Definition: agt_rpcerr.c:2323
ERR_NCX_UNKNOWN_OBJECT
@ ERR_NCX_UNKNOWN_OBJECT
293
Definition: status_enum.h:336
ERR_NCX_EXP_MODULE
@ ERR_NCX_EXP_MODULE
329
Definition: status_enum.h:372
ERR_END_OF_FILE
@ ERR_END_OF_FILE
001
Definition: status_enum.h:189
NCX_NT_OBJ
@ NCX_NT_OBJ
obj_template_t
Definition: ncxtypes.h:277
ERR_NCX_IMP_NOT_FOUND
@ ERR_NCX_IMP_NOT_FOUND
321
Definition: status_enum.h:364
ERR_FIL_SETPOS
@ ERR_FIL_SETPOS
108
Definition: status_enum.h:220
xpath_get_first_resnode
xpath_resnode_t * xpath_get_first_resnode(xpath_result_t *result)
Get the first result in the renodeQ from a result struct.
Definition: xpath.c:3931
agt_rpcerr_add_user_data
status_t agt_rpcerr_add_user_data(rpc_err_rec_t *err, dlq_hdr_t *dataQ)
Add data nodes to return in the <error-info> section of an error record.
Definition: agt_rpcerr.c:2431
errmsg_dict_find
ncx_errmsg_t * errmsg_dict_find(const xmlChar *lang, status_t findres)
Find a value node from the specified language tree.
Definition: errmsg_dict.c:315
ERR_NCX_MISSING_ACCEPT_HEADER
@ ERR_NCX_MISSING_ACCEPT_HEADER
405
Definition: status_enum.h:448
ERR_NCX_INVALID_MEDIA
@ ERR_NCX_INVALID_MEDIA
401
Definition: status_enum.h:444
ERR_NCX_INVALID_INSTANCEID
@ ERR_NCX_INVALID_INSTANCEID
349
Definition: status_enum.h:392
ERR_NCX_MISSING_TYPE
@ ERR_NCX_MISSING_TYPE
322
Definition: status_enum.h:365
ERR_NCX_LEN_EXCEEDED
@ ERR_NCX_LEN_EXCEEDED
237
Definition: status_enum.h:276
ERR_NCX_VAL_NOTINSET
@ ERR_NCX_VAL_NOTINSET
291
Definition: status_enum.h:334
ERR_NCX_WRONG_NUMTYP
@ ERR_NCX_WRONG_NUMTYP
289
Definition: status_enum.h:332
RPC_ERR_IN_USE
@ RPC_ERR_IN_USE
in-use
Definition: rpc_err.h:411
ERR_NCX_INVALID_CONDITIONAL
@ ERR_NCX_INVALID_CONDITIONAL
343
Definition: status_enum.h:386
RPC_ERR_SEV_WARNING
@ RPC_ERR_SEV_WARNING
warning
Definition: rpc_err.h:437
RPC_ERR_MALFORMED_MESSAGE
@ RPC_ERR_MALFORMED_MESSAGE
malformed-message
Definition: rpc_err.h:430
ERR_NCX_DEC64_FRACOVFL
@ ERR_NCX_DEC64_FRACOVFL
363
Definition: status_enum.h:406
RPC_ERR_BAD_ELEMENT
@ RPC_ERR_BAD_ELEMENT
bad-element
Definition: rpc_err.h:418
ERR_NCX_WRONG_NAMESPACE
@ ERR_NCX_WRONG_NAMESPACE
netconf error extensions start here
Definition: status_enum.h:319
agt_rpcerr_get_http_status_code
uint32 agt_rpcerr_get_http_status_code(status_t res)
Translate the rpc_err_t to an HTTP code.
Definition: agt_rpcerr.c:2211
ERR_NCX_WRONG_ELEMENT
@ ERR_NCX_WRONG_ELEMENT
279
Definition: status_enum.h:322
ERR_BUFF_OVFL
@ ERR_BUFF_OVFL
106
Definition: status_enum.h:218
ncxtypes.h
YANG module data structures Many internal representations of YANG module constructs.
ERR_NCX_CFG_STATE
@ ERR_NCX_CFG_STATE
297
Definition: status_enum.h:340
ERR_MUTEX_ERR
@ ERR_MUTEX_ERR
015
Definition: status_enum.h:205
ERR_NCX_UNKNOWN_MODULE
@ ERR_NCX_UNKNOWN_MODULE
356
Definition: status_enum.h:399
ERR_XML_READER_INTERNAL
@ ERR_XML_READER_INTERNAL
121
Definition: status_enum.h:233
ERR_NCX_VALUE_NOT_SUPPORTED
@ ERR_NCX_VALUE_NOT_SUPPORTED
358
Definition: status_enum.h:401
ERR_NCX_INVALID_STATUS_REF
@ ERR_NCX_INVALID_STATUS_REF
416
Definition: status_enum.h:459
xmlns_nc_id
xmlns_id_t xmlns_nc_id(void)
Get the ID for the NETCONF namespace or 0 if it doesn't exist.
Definition: xmlns.c:880
ERR_NCX_UNKNOWN_NS
@ ERR_NCX_UNKNOWN_NS
229
Definition: status_enum.h:268
LOGDEBUG
#define LOGDEBUG
Check if at least log-level=debug.
Definition: log.h:287
ERR_NCX_UNLOAD_NOT_ALLOWED
@ ERR_NCX_UNLOAD_NOT_ALLOWED
397
Definition: status_enum.h:440
ERR_NCX_INDEX_TYPE_NOT_FOUND
@ ERR_NCX_INDEX_TYPE_NOT_FOUND
253
Definition: status_enum.h:292
agt_rpcerr_gen_error
rpc_err_rec_t * agt_rpcerr_gen_error(ncx_layer_t layer, status_t interr, const xml_node_t *errnode, ncx_node_t parmtyp, const void *error_parm, xmlChar *error_path)
Generate an internal <rpc-error> record for an element (or non-attribute) related error for any layer...
Definition: agt_rpcerr.c:1390
agt_find_in_datastore
status_t agt_find_in_datastore(ncx_cfg_t cfg_id, val_value_t *err_value, val_value_t **retval)
Find the node (should be from an <edit-config> content node) in the specified datastore.
Definition: agt_util.c:6387
ERR_NCX_INVALID_FORMAT
@ ERR_NCX_INVALID_FORMAT
402
Definition: status_enum.h:445
rpc_err.h
NETCONF protocol standard error definitions.
ERR_DUP_VALPAIR
@ ERR_DUP_VALPAIR
206
Definition: status_enum.h:245
RPC_ERR_INVALID_VALUE
@ RPC_ERR_INVALID_VALUE
invalid-value
Definition: rpc_err.h:412
ERR_NCX_OVERLAP_RANGE
@ ERR_NCX_OVERLAP_RANGE
249
Definition: status_enum.h:288
ERR_MISSING_FORM_PARAMS
@ ERR_MISSING_FORM_PARAMS
209
Definition: status_enum.h:248
ERR_NCX_CFG_NOT_FOUND
@ ERR_NCX_CFG_NOT_FOUND
307
Definition: status_enum.h:350
obj_errmsg_test_val
status_t obj_errmsg_test_val(const xmlChar *error_tag, const xmlChar *error_app_tag, const xmlChar *error_lang, val_value_t *error_val)
Check if there needs to be a custom error msg.
Definition: obj_errmsg.c:706
NCX_NT_VAL
@ NCX_NT_VAL
val_value_t
Definition: ncxtypes.h:276
ERR_NCX_INVALID_DEV_STMT
@ ERR_NCX_INVALID_DEV_STMT
347
Definition: status_enum.h:390
ERR_READ_DIR_FAILED
@ ERR_READ_DIR_FAILED
123
Definition: status_enum.h:235
NCX_BT_UINT32
@ NCX_BT_UINT32
uint32
Definition: ncxtypes.h:213
ERR_NCX_PUSH_UNCHANGING_SELECTION
@ ERR_NCX_PUSH_UNCHANGING_SELECTION
437
Definition: status_enum.h:484
dlq_deque
void * dlq_deque(dlq_hdrT *listP)
remove the first queue node from the queue list
Definition: dlq.c:286
NCX_NT_NONE
@ NCX_NT_NONE
not set
Definition: ncxtypes.h:273
ERR_NCX_EXP_SUBMODULE
@ ERR_NCX_EXP_SUBMODULE
330
Definition: status_enum.h:373
RPC_ERR_OPERATION_NOT_SUPPORTED
@ RPC_ERR_OPERATION_NOT_SUPPORTED
operation-not-supported
Definition: rpc_err.h:427
ERR_NCX_IMPORT_LOOP
@ ERR_NCX_IMPORT_LOOP
327
Definition: status_enum.h:370
ERR_NCX_INVALID_DUP_IMPORT
@ ERR_NCX_INVALID_DUP_IMPORT
353
Definition: status_enum.h:396
ERR_NCX_SHUTDOWN_MODE
@ ERR_NCX_SHUTDOWN_MODE
418
Definition: status_enum.h:461
dlq_empty
#define dlq_empty(listP)
check if queue list is empty
Definition: dlq.h:367
ERR_NCX_SUBMOD_NOT_LOADED
@ ERR_NCX_SUBMOD_NOT_LOADED
374
Definition: status_enum.h:417
ERR_NCX_MISSING_ELEMENT
@ ERR_NCX_MISSING_ELEMENT
263
Definition: status_enum.h:304
ERR_DB_QUERY_FAILED
@ ERR_DB_QUERY_FAILED
112
Definition: status_enum.h:224
ERR_NCX_NOTIF_FILTER_UNSUPPORTED
@ ERR_NCX_NOTIF_FILTER_UNSUPPORTED
424
Definition: status_enum.h:469
ERR_XML_READER_START_FAILED
@ ERR_XML_READER_START_FAILED
212
Definition: status_enum.h:251
ERR_NCX_NO_MATCHES
@ ERR_NCX_NO_MATCHES
365
Definition: status_enum.h:408
ERR_XML_READER_WRONGVAL
@ ERR_XML_READER_WRONGVAL
218
Definition: status_enum.h:257
agt_get_profile
agt_profile_t * agt_get_profile(void)
Get the server profile struct.
Definition: agt.c:4118
ERR_NCX_NOTIF_REPLAY_UNSUPPORTED
@ ERR_NCX_NOTIF_REPLAY_UNSUPPORTED
427
Definition: status_enum.h:472
ERR_NCX_PROTO11_NOT_ENABLED
@ ERR_NCX_PROTO11_NOT_ENABLED
379
Definition: status_enum.h:422
ERR_XML_READER_EOF
@ ERR_XML_READER_EOF
221
Definition: status_enum.h:260
rpc_err_get_errtag
const xmlChar * rpc_err_get_errtag(rpc_err_t errid)
Get the RPC error-tag for an rpc_err_t enumeration.
Definition: rpc_err.c:234
ERR_NCX_VAR_NOT_FOUND
@ ERR_NCX_VAR_NOT_FOUND
360
Definition: status_enum.h:403
RPC_ERR_BAD_ATTRIBUTE
@ RPC_ERR_BAD_ATTRIBUTE
bad-attribute
Definition: rpc_err.h:415
RPC_ERR_SEV_ERROR
@ RPC_ERR_SEV_ERROR
error (only used value)
Definition: rpc_err.h:438
dlq_firstEntry
#define dlq_firstEntry(listP)
get the first entry in the queue list
Definition: dlq.h:337
ERR_NCX_PUSH_ON_CHANGE_UNSUPPORTED
@ ERR_NCX_PUSH_ON_CHANGE_UNSUPPORTED
432
Definition: status_enum.h:479
ERR_NCX_MIN_ELEMS_VIOLATION
@ ERR_NCX_MIN_ELEMS_VIOLATION
338 - 13.3
Definition: status_enum.h:381
ERR_NCX_ACCESS_DENIED
@ ERR_NCX_ACCESS_DENIED
267
Definition: status_enum.h:308
ERR_NCX_MISSING_VAL_INST
@ ERR_NCX_MISSING_VAL_INST
310 - 13.5
Definition: status_enum.h:353
ERR_NCX_EXTRA_LISTSTR
@ ERR_NCX_EXTRA_LISTSTR
292
Definition: status_enum.h:335
ncx.h
YANG module utility functions.
ERR_DB_NOT_FOUND
@ ERR_DB_NOT_FOUND
111
Definition: status_enum.h:223
ERR_NCX_NOT_WRITABLE
@ ERR_NCX_NOT_WRITABLE
312
Definition: status_enum.h:355
agt_rpcerr.h
NETCONF protocol <rpc-error> server-side handler.
NCX_NT_UINT32_PTR
@ NCX_NT_UINT32_PTR
session ID, error only
Definition: ncxtypes.h:283
RPC_ERR_OPERATION_FAILED
@ RPC_ERR_OPERATION_FAILED
operation-failed
Definition: rpc_err.h:428
obj.h
Data Object Support.
ERR_XML_READER_NODETYP
@ ERR_XML_READER_NODETYP
214
Definition: status_enum.h:253
ERR_XML_READER_READ
@ ERR_XML_READER_READ
213
Definition: status_enum.h:252
ERR_FIL_CHDIR
@ ERR_FIL_CHDIR
104
Definition: status_enum.h:216
ERR_XML_READER_WRONGNAME
@ ERR_XML_READER_WRONGNAME
217
Definition: status_enum.h:256
ERR_NCX_DEF_LOOP
@ ERR_NCX_DEF_LOOP
325
Definition: status_enum.h:368
ERR_NCX_VAR_READ_ONLY
@ ERR_NCX_VAR_READ_ONLY
361
Definition: status_enum.h:404
RPC_ERR_NONE
@ RPC_ERR_NONE
not set
Definition: rpc_err.h:410
xmlns_get_ns_name
const xmlChar * xmlns_get_ns_name(xmlns_id_t ns_id)
Get the name for the specified namespace.
Definition: xmlns.c:690
ERR_NCX_LEAFREF_LOOP
@ ERR_NCX_LEAFREF_LOOP
359
Definition: status_enum.h:402
ERR_NCX_XPATH_NOT_NODESET
@ ERR_NCX_XPATH_NOT_NODESET
370
Definition: status_enum.h:413
ERR_NCX_IN_USE
@ ERR_NCX_IN_USE
match netconf errors (257 - 275)
Definition: status_enum.h:298
ERR_XML_READER_EXTRANODES
@ ERR_XML_READER_EXTRANODES
220
Definition: status_enum.h:259
ERR_NCX_NOTIF_INSUFFICIENT_RESOURCES
@ ERR_NCX_NOTIF_INSUFFICIENT_RESOURCES
425
Definition: status_enum.h:470
ERR_NCX_PARTIAL_OPERATION
@ ERR_NCX_PARTIAL_OPERATION
275
Definition: status_enum.h:316
ERR_FIL_BAD_FILENAME
@ ERR_FIL_BAD_FILENAME
205
Definition: status_enum.h:244
ERR_TR_BEEP_INIT
@ ERR_TR_BEEP_INIT
119
Definition: status_enum.h:231
ERR_DB_WRITE_FAILED
@ ERR_DB_WRITE_FAILED
117
Definition: status_enum.h:229
ERR_NCX_UNKNOWN_ATTRIBUTE
@ ERR_NCX_UNKNOWN_ATTRIBUTE
262
Definition: status_enum.h:303
dlq_enque
void dlq_enque(REG void *newP, REG dlq_hdrT *listP)
add a queue node to the end of a queue list Add newP to listP
Definition: dlq.c:246
ERR_NCX_WRONG_DATATYP
@ ERR_NCX_WRONG_DATATYP
285
Definition: status_enum.h:328
ERR_NCX_EVAL_VERSION
@ ERR_NCX_EVAL_VERSION
387
Definition: status_enum.h:430
ERR_NCX_METHOD_NOT_ALLOWED
@ ERR_NCX_METHOD_NOT_ALLOWED
390
Definition: status_enum.h:433
ERR_NCX_INVALID_HEXNUM
@ ERR_NCX_INVALID_HEXNUM
242
Definition: status_enum.h:281
xmlns_inv_id
xmlns_id_t xmlns_inv_id(void)
Get the INVALID namespace ID.
Definition: xmlns.c:931
ERR_XML2_FAILED
@ ERR_XML2_FAILED
013
Definition: status_enum.h:203
ERR_DUP_NS
@ ERR_DUP_NS
211
Definition: status_enum.h:250
SET_ERROR
#define SET_ERROR(E)
macro SET_ERROR
Definition: status_enum.h:103
ERR_NCX_DATA_MISSING
@ ERR_NCX_DATA_MISSING
272
Definition: status_enum.h:313
ERR_NCX_EMPTY_VAL
@ ERR_NCX_EMPTY_VAL
235
Definition: status_enum.h:274
ERR_NCX_SESSION_DROPPED
@ ERR_NCX_SESSION_DROPPED
400
Definition: status_enum.h:443
ERR_NCX_PUSH_SYNC_TOO_BIG
@ ERR_NCX_PUSH_SYNC_TOO_BIG
436
Definition: status_enum.h:483
ERR_DB_INIT_FAILED
@ ERR_DB_INIT_FAILED
118
Definition: status_enum.h:230
RPC_ERR_DATA_MISSING
@ RPC_ERR_DATA_MISSING
data-missing
Definition: rpc_err.h:426
ERR_NCX_RESOURCE_INSTANCE_UNKNOWN
@ ERR_NCX_RESOURCE_INSTANCE_UNKNOWN
388
Definition: status_enum.h:431
ERR_NCX_TOP_NOT_FOUND
@ ERR_NCX_TOP_NOT_FOUND
256
Definition: status_enum.h:295
ERR_NCX_DUP_REFINE_STMT
@ ERR_NCX_DUP_REFINE_STMT
346
Definition: status_enum.h:389
xmlns_ncx_id
xmlns_id_t xmlns_ncx_id(void)
Get the ID for the NETCONF Extensions namespace or 0 if it doesn't exist.
Definition: xmlns.c:897
ERR_NCX_WHEN_KEY
@ ERR_NCX_WHEN_KEY
409
Definition: status_enum.h:452
ERR_NCX_EXTRA_PARM
@ ERR_NCX_EXTRA_PARM
234
Definition: status_enum.h:273
ERR_NCX_UNKNOWN_NAMESPACE
@ ERR_NCX_UNKNOWN_NAMESPACE
266
Definition: status_enum.h:307
ERR_NCX_WRONG_NODETYP_CPX
@ ERR_NCX_WRONG_NODETYP_CPX
284
Definition: status_enum.h:327
NCX_BT_STRING
@ NCX_BT_STRING
string
Definition: ncxtypes.h:217
ERR_FIL_OPEN
@ ERR_FIL_OPEN
system errors start at 100
Definition: status_enum.h:212
ERR_NCX_DEC64_BASEOVFL
@ ERR_NCX_DEC64_BASEOVFL
362
Definition: status_enum.h:405
ERR_NCX_EVAL_LIMIT_REACHED
@ ERR_NCX_EVAL_LIMIT_REACHED
398
Definition: status_enum.h:441
ERR_NCX_INVALID_UNIQUE_NODE
@ ERR_NCX_INVALID_UNIQUE_NODE
352
Definition: status_enum.h:395
ERR_NCX_UNKNOWN_HOST
@ ERR_NCX_UNKNOWN_HOST
316
Definition: status_enum.h:359
ERR_NCX_INVALID_ESCSTR
@ ERR_NCX_INVALID_ESCSTR
415
Definition: status_enum.h:458
ERR_NCX_PUSH_CANT_EXCLUDE
@ ERR_NCX_PUSH_CANT_EXCLUDE
ietf-yang-push errors (429 - 437)
Definition: status_enum.h:476
ERR_NCX_INVALID_DUP_INCLUDE
@ ERR_NCX_INVALID_DUP_INCLUDE
354
Definition: status_enum.h:397
ERR_NCX_RESTRICT_NOT_ALLOWED
@ ERR_NCX_RESTRICT_NOT_ALLOWED
323
Definition: status_enum.h:366
ERR_FIL_BAD_PATH
@ ERR_FIL_BAD_PATH
204
Definition: status_enum.h:243
ERR_NCX_IMPORT_DEPENDENCY
@ ERR_NCX_IMPORT_DEPENDENCY
396
Definition: status_enum.h:439
ERR_NCX_INVALID_TYPE_CHANGE
@ ERR_NCX_INVALID_TYPE_CHANGE
334
Definition: status_enum.h:377
ERR_NCX_MISSING_INPUT
@ ERR_NCX_MISSING_INPUT
407
Definition: status_enum.h:450
xmlns.h
XML namespace support.
ERR_NCX_UNIQUE_TEST_FAILED
@ ERR_NCX_UNIQUE_TEST_FAILED
336 - 13.1
Definition: status_enum.h:379
val_find_root
val_value_t * val_find_root(val_value_t *val)
Find the root value node or top-val if no ncx:root found.
Definition: val.c:15186
val_free_value
void val_free_value(val_value_t *val)
Scrub the memory in a val_value_t by freeing all the sub-fields and then freeing the entire struct it...
Definition: val.c:2842
ERR_NCX_MISSING_RBRACE
@ ERR_NCX_MISSING_RBRACE
377
Definition: status_enum.h:420
status.h
Global error messages for status code enumerations.
obj_get_nsid
xmlns_id_t obj_get_nsid(const obj_template_t *obj)
Get the namespace ID for this object.
Definition: obj.c:12395
ERR_NCX_NOTIF_DSCP_UNAVAILABLE
@ ERR_NCX_NOTIF_DSCP_UNAVAILABLE
ietf-subscribed-notifications errors (421 - 428)
Definition: status_enum.h:466
ERR_NO_CFGFILE
@ ERR_NO_CFGFILE
200
Definition: status_enum.h:239
NCX_DEF_LANG
#define NCX_DEF_LANG
Default language for error messages.
Definition: ncxconst.h:295
ERR_NCX_MISSING_INSTANCE
@ ERR_NCX_MISSING_INSTANCE
350 - 13.6
Definition: status_enum.h:393
RPC_ERR_DATA_EXISTS
@ RPC_ERR_DATA_EXISTS
data-exists
Definition: rpc_err.h:425
errmsg_dict.h
AVL Tree storage of Language Specific Error Messages.
RPC_ERR_UNKNOWN_ELEMENT
@ RPC_ERR_UNKNOWN_ELEMENT
unknown-element
Definition: rpc_err.h:419
ERR_NCX_NO_ACCESS_STATE
@ ERR_NCX_NO_ACCESS_STATE
302
Definition: status_enum.h:345
ERR_RWLOCK_ERR
@ ERR_RWLOCK_ERR
014
Definition: status_enum.h:204