Decouple config and netconf subsystems. Extract a common mapping for config pusher and config subsystem netconf Add a ConfigPersisterFacade for XML that allows reads/writes from/to config subsystem using XML format Push notifications from YangStoreService to NetconfNotificationManager instead of using custom listeners Migrate netconf features from controller features, untangle features Change-Id: I71e4ca6e0258e0b1f0d6c19119f93eb9d68b7bca Signed-off-by: Tomas Cere <tcere@cisco.com> Signed-off-by: Maros Marsalek <mmarsale@cisco.com> Signed-off-by: Ed Warnicke <hagbard@gmail.com>
Fix checkstyle warnings for config-persister-impl Change-Id: Ife66b5fea7bb6d1fe293d6181d6da7221e296731 Signed-off-by: Marian Dubai <mdubai@cisco.com>
BUG-1521 Add missing unit tests for config-persister-impl Change-Id: Id9b6f024da20ea71daa6b29353e39fbdb81e0fb2 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Bug 460 - Fix warning throughout netconf subsystem Change-Id: I461a7bab47ef67c13c6fd5864d8938cdd47c3c8b Signed-off-by: Martin Bobak <mbobak@cisco.com>
BUG-672 Remove deprecated plaintext/autodetect persister adapters. Xml adapters are the default adapters now for configuration persister. Change-Id: Ie8eb41520671bb00503a340f6b4b55ebe1ef7bf1 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Refactor configuration for ConfigPersister. Pulled Configuration class from ConfigPusher that contains all the delays, timeouts and attempts numbers. Add tests for config perister. Change-Id: I187e721e0120931d0cca519353db840905816a20 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Added xml storage adapter bundle fragments for config persister. File and Directory based xml adapters are now available. Only File xml adapter is used so far to persist current configuration. Directory based persister is still using plain text to keep backwards compatibility. Change-Id: If1a83701ce23d36313c943e9fe49bd4e704afe27 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Refactor persister: Add ability to publish multiple snapshots while loading initial configuration. Persister adaptors now return list of snapshots to be pushed to netconf at server startup. Persister maintains an ordered list of adaptor instances, each with its configuration. During server startup it iterates the list backwards until non empty list of snapshot is returned. Each snapshot can depend on different capabilities, once all capabilities for given snapshot are announced by server, persister pushes this snapshot. Change-Id: If73ead980c9cf8cd237af170872fbf1a491cb029 Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Fixed PersisterAggregatorTest. Change-Id: Iefc264ddc026df33f5a8124c17835f177627cd50 Signed-off-by: Milos Fabian <milfabia@cisco.com>
Refactor persister to handle multiple storage engines. Allow persister to load and save configuration snapshots from/to multiple storage instances. Loading works by iterating list of storages backwards and pushing first non-empty response to netconf. This allows having a default (initial) configuration for the controller that will never be overwrittern. Saving configuration will be propagated to all storage engines except those configured as read only. Change-Id: If4cdbb9e0c303d5ebb2a3d04a316c74ff76dfb91 Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>