Bug 6535: Fix feature config pusher warning 83/44883/1
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 19:18:49 +0000 (15:18 -0400)
commitb3d6b930fa57d225c8c778dc09e5971e0c4f9ef7
treeb89c61429b891b1fc2c3a1ec65d05c14a96ab4aa
parent6426e65f31e2875bc3656c78b1d36ef01dc1c945
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