-
Notifications
You must be signed in to change notification settings - Fork 317
Closed
Description
In below NETCONF rpc, 'path' is of type-def xpath as defined in RFC 6536 NACM
Extracts from the RFC 6536 defined YANG file:
leaf path {
type node-instance-identifier;
typedef node-instance-identifier {
type yang:xpath1.0;
If input for "path" is given as below:

- The namespace is invalid ("yang-library12"). But still parsing is success.
- The struct lyd_node_leaf_list *pstLeaf, for the "path"
*pstLeaf = {schema = 0x816f1f8, validity = 0 '\000', dflt = 0 '\000', when_status = 0 '\000', attr = 0x0, next = 0x0, prev = 0x8191b58, parent = 0x8181480, value_str = 0x818b0a0 "/t:modules-state", value = {
binary = 0x818b0a0 "/t:modules-state", bit = 0x818b0a0, bln = -96 '\240', dec64 = 135835808, enm = 0x818b0a0, ident = 0x818b0a0, instance = 0x818b0a0, int8 = -96 '\240', int16 = -20320, int32 = 135835808, int64 = 135835808,
leafref = 0x818b0a0, string = 0x818b0a0 "/t:modules-state", uint8 = 160 '\240', uint16 = 45216, uint32 = 135835808, uint64 = 135835808}, value_type = 10}
==> the value_str is not "expanding" the prefix to valid module-name even if valid namespace is given.
Metadata
Metadata
Assignees
Labels
No labels