Bug 6272 - support RESTCONF PATCH for mounted NETCONF nodes 33/46533/5
authorIvan Hrasko <ivan.hrasko@pantheon.tech>
Fri, 2 Sep 2016 14:01:32 +0000 (16:01 +0200)
committerIvan Hrasko <ivan.hrasko@pantheon.tech>
Wed, 5 Oct 2016 10:19:03 +0000 (12:19 +0200)
commitc1b194eddf290c46e4558c83f2a21feb5b4453d2
tree6764f5452ed20e1562a3c6e1cd99d7b4c6cebf1c
parent75c3077e96415288ca4af0e73bd782570d08d3f8
Bug 6272 - support RESTCONF PATCH for mounted NETCONF nodes

- adaptation for beryllium
- distinguish between operation on server or on mount point
- when operates on server then use global schema context and
data broker
- when operates on mount point then use schema context and
broker from mount point
- if broker on mount point is missing then PATCH operation fails
with global error
- contains unit tests

Change-Id: I97135a467209fcb4a5782d1c2677f482b842ff8a
Signed-off-by: Ivan Hrasko <ivan.hrasko@pantheon.tech>
opendaylight/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/BrokerFacade.java
opendaylight/restconf/sal-rest-connector/src/main/java/org/opendaylight/netconf/sal/restconf/impl/RestconfImpl.java
opendaylight/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/AbstractBodyReaderTest.java
opendaylight/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestJsonPATCHBodyReaderMountPoint.java [new file with mode: 0644]
opendaylight/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestXmlPATCHBodyReader.java
opendaylight/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/rest/impl/test/providers/TestXmlPATCHBodyReaderMountPoint.java [new file with mode: 0644]
opendaylight/restconf/sal-rest-connector/src/test/java/org/opendaylight/controller/sal/restconf/impl/test/BrokerFacadeTest.java