Merge "Re-Enable the pax-exam execution in Eclipse"
Choice and case resolving in JSON output

Searching via choices and cases which are defined in YANG when resolving
composite node to find elements with corresponding name.

Change-Id: I4b62b323676a2cdd8212f102bcd0dbbbaf9b6c10
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Add running configuration data to get netconf operation response

Change-Id: Ia268965a9ef64944138c3b6eb7313fd1ca606da4
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Revert "Fix bug 171. EchoReply payload must be the same as the correspoding EchoRequest payload" because is causing the switches to periodically disconnect.

This reverts commit e4f47d259077775ceeb1554c807eed8841263865.

Change-Id: I0aa07d67ca6e6651e4d29a03c4282d5d6d2168da
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Merge "Revert "Fix bug 171. EchoReply payload must be the same as the correspoding EchoRequest payload" because is causing the switches to periodically disconnect."
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>
Add config-persister-directory-adapter.
This implementation reads initial configuration from a directory. It can combine multiple files into one snapshot to be
sent to netconf. It does not support writing when configuration changes.

Change-Id: I6d92ce6a7221c424f64b2fe07b61fee30e9590f0
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Merge "Refactor persister: require only capabilities referenced by the xml snapshot. Also repair logback bug preventing it from taking snapshot configuration."
Merge "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."
Merge "Add config-persister-directory-adapter. This implementation reads initial configuration from a directory. It can combine multiple files into one snapshot to be sent to netconf. It does not support writing when configuration changes."
Merge "Choice and case resolving in JSON output"
Merge changes Ia268965a,Iefa79f99

* changes:
  Add running configuration data to get netconf operation response
  Add support for configuration attributes based on yang leaves with custom types (typedef) to netconf.
Merge "Add support for enums as configuration attributes in config and netconf subsystem."
Merge "removed config-util from pax-exam minimum bundles as this is not a bundle"
Resolved namespace from input data

Data of POST and PUT operations can contain namespace/module name:
- xml element can contain yang namespace
- json element can contain yang module name

Change-Id: I503c36de5cf76d6e7ca852d4b4e54e93d171920c
Signed-off-by: Martin Sunal <msunal@cisco.com>
Finding data nodes in choices and cases.

Feature was rewritten. It is no more taken into account if schemas for data
nodes at the same level are in the same case for concrete choice. This check should be done in system which takes Json as input

Change-Id: I12e9d2dd9bba21e5ec59a6864a41c4b82cb4f43f
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
Fix race conditions between config-manager and persister.

Config-manager commits a blank transaction each time new ModuleFactory is discovered. At the same time
persister might try to push configuration. Add retries to both routines to overcome optimistic lock failure.

Change-Id: Ia45505d285b2eb6cc7fa949289a3fbeb4c62f9e7
Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Merge "Resolved namespace from input data"
Make sure config.yang is MD-SAL enabled

In the controller-controlling-controllers scenario we need to be able to
generate MD-SAL bindings against config subsystem models. In order to do
that, we need the base definitions provided by config.yang.

This patch subjects all config components to MD-SAL binding generation
and introduces a new parent, which adds another execution to generate
JMX bindings. Infrastructure components continue to use config-subsystem
parent while the various config plugins (netty et al.) switch to the new
config-plugin-parent.

Change-Id: Id243d658a95ccfee0dbfe70044867f8de09cc20e
Signed-off-by: Robert Varga <robert.varga@pantheon.sk>
Merge "Fix race conditions between config-manager and persister."