Teach RFC8040 URL parser about actions 66/82866/12
authorajay.dp001 <ajay.deep.singh@ericsson.com>
Mon, 1 Jul 2019 11:40:03 +0000 (12:40 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 29 Jul 2019 22:42:23 +0000 (00:42 +0200)
commitdc257562ee6fdee2ce86dc8cbaf662c8af75ec8d
tree4498edeac1cd5f29448c3148ad01789d5470d8f5
parent5062322aa59183ade78f38d835caab451fb879a0
Teach RFC8040 URL parser about actions

RFC8040 allows invocation of actions, but unfortunately our
parser is not equipped to deal with them.

This updates the utilities to try to locate actions when the
data is not found.

JIRA: NETCONF-619
Change-Id: I93d69ea76fd928f963cb7a8c703c97c125820818
Signed-off-by: ajay.dp001 <ajay.deep.singh@ericsson.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/ParserIdentifier.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierDeserializer.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/ParserIdentifierTest.java
restconf/restconf-nb-rfc8040/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierDeserializerTest.java
restconf/restconf-nb-rfc8040/src/test/resources/parser-identifier/example-actions.yang [new file with mode: 0644]
restconf/restconf-nb-rfc8040/src/test/resources/restconf/parser/deserializer/example-actions.yang [new file with mode: 0644]