Add AST yang model caching to netconf connector's schema repository 16/72016/1
authorMaros Marsalek <mmarsalek@frinx.io>
Thu, 10 May 2018 14:27:49 +0000 (16:27 +0200)
committerMaros Marsalek <mmarsalek@frinx.io>
Tue, 15 May 2018 11:18:58 +0000 (13:18 +0200)
commitdb1f73a19df067d73ad72551e784a11ab837e34e
tree9a35b1461e60c337f3a6e933f1481359143c8f18
parent750d597750ad1932ec82233344cb836f8c75d701
Add AST yang model caching to netconf connector's schema repository

text -> AST transformation of YANG takes majority of the time when tryinh to parse
SchemaContext. Caching is important when mounting a device where not all yang models
are valid or have their dependencies. Netconf connector tires to parse and eliminate
YANG models in a loop until a valid subset is found. Until now, the text -> AST has
been performed in each iteration, really slowing donw the mount process.

Also fix logs in NetconfDevice

Change-Id: I0587299eefdc7a813afd9967363200243b815551
Signed-off-by: Maros Marsalek <mmarsalek@frinx.io>
netconf/netconf-topology-singleton/src/main/java/org/opendaylight/netconf/topology/singleton/impl/utils/NetconfTopologyUtils.java
netconf/netconf-topology/src/main/java/org/opendaylight/netconf/topology/AbstractNetconfTopology.java
netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/NetconfDevice.java