Bug 5485: Improve DataTreeModification pruning on recovery 13/36013/5
authorTom Pantelis <tpanteli@brocade.com>
Wed, 9 Mar 2016 04:07:02 +0000 (23:07 -0500)
committerGerrit Code Review <gerrit@opendaylight.org>
Wed, 16 Mar 2016 17:42:36 +0000 (17:42 +0000)
Modified the PruningDataTreeModification and NormalizedNodePruner to
validate path and node QNames via the SchemaContext instead of just
namespaces. This allows migration support for any element to be removed
from a yang hierarchy.

Also handled SchemaValidationFailedException on ready which can happen
with writes which don't immediately validate the sctructure as merge
does. The modification tree is re-applied with pruning.

Change-Id: I8c4f84fbaa93563ce6741d7a3e15855f7fc4940f
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>

No differences found