Bug 6535: Fix feature config pusher warning 69/44669/6
authorTom Pantelis <tpanteli@brocade.com>
Thu, 25 Aug 2016 13:52:35 +0000 (09:52 -0400)
committerTom Pantelis <tpanteli@brocade.com>
Tue, 30 Aug 2016 18:51:57 +0000 (18:51 +0000)
commitbde61c4e874d8c7288ba20bcbda326f5904c25b6
tree640e1185b938d604da928a6f70b9ca6ab91bf107
parentcd2f680988549922b1c928b7c01fc31112eeca4c
Bug 6535: Fix feature config pusher warning

The feature config pusher assumes config files installed by features
that have XML extension are CSS files and tries to parse them. On failure
it prints a warning but ignores it and moves on. Up till now we've only
had CSS XML files but we now have XML files related to the
clustered-app-config. To avoid the warning I added a check to see if the
root element is "snapshot" if JAXB parsing fails.

Change-Id: I877921afc13564f131f61a1eb8327db71d3638fe
Signed-off-by: Tom Pantelis <tpanteli@brocade.com>
opendaylight/config/config-persister-feature-adapter/src/main/java/org/opendaylight/controller/configpusherfeature/internal/AbstractFeatureWrapper.java