Remove CSS code JIRA: TSC-111 Change-Id: Ib74c1d3dfc029c2472b8834ae55ce05c8231d225 Signed-off-by: Tom Pantelis <tompantelis@gmail.com>
Fix checkstyle issues to enforce it Fix checkstyle issues to enforce it. Change-Id: I306255919cdfe43208d7c254f2f6455f4126b92f Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
Fix Eclipse warnings in config-manager Change-Id: I0ed9bc52d4cf4e5ee7a4da8bd53355191326cba6 Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
BUG-2283 Fix close order when reconfiguring config modules. Close is called from top(dependency source) to bottom(dependency target) while createInstance is called in opposite direction. This commit changes API and SPI of config subsystem and thus breaks runtime compatibility. Change-Id: I5b03f0673c5ecb95efbfccad7fa6ed7a490ff61b Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Fix checkstyle warnings in config-manager Change-Id: Id8551489d678ebb35908f052a571303fc6c68999 Signed-off-by: Marian Dubai <mdubai@cisco.com>
Fix checkstyle warnings in opendaylight/config Change-Id: Ie82918d2888b6271850e371340b46825079ad485 Signed-off-by: Robert Varga <rovarga@cisco.com>
Bug 1022 - Add ability to lookup dependent Module's attribute. Add 2 methods to DependencyResolver to allow modules look up values of dependent bean attributes. Change-Id: I2ebee82cc1260a84a16f5e69b32c9234bf576e87 Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Resolve Bug:807 - Keep ModuleFactory references shutdown purposes. Retain ModuleFactory instances even if they disappear from OSGi SR, so that the already committed instances can be closed cleanly. Also remove shutdown customization (stopping config-manager as first bundle) from shutdown-impl. Change-Id: I8e90a7d593b7e4cc84c7a9a7d3f8bb804daf5f41 Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Add watchdog thread to detect illegal blocking calls during second phase commit. Add a thread that starts when second phase commit starts, that will monitor if a module instance occupies the commit thread for more than 5 seconds. If so, log a warning every second informing about possible misuse of config subsystem to block on external resources. Added a proxy module that caches Module#getInstance() call as this method is idempotent. Change-Id: Ia1e56386bdd8c6b7a6dc625cfc69253b927c92a9 Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Add support for identity-ref config attributes to config/netconf subsystem Change-Id: I79d5147f1d6bb1acd6b5a374bb76f48b6a3aaf55 Signed-off-by: Maros Marsalek <mmarsale@cisco.com> Signed-off-by: Tomas Olvecky <tolvecky@cisco.com> Signed-off-by: Robert Varga <rovarga@cisco.com>
Persist service references as separate MBeans. Create dummy MBean - ServiceReferenceMXBean - that contains link to implementation of the service as an attribute. Add support for resolving of SR to dependency resolver. Each time user saves SR, create MBean and add the interface QName together with user defined reference name to ObjectName of the newly created SR MBean. Change-Id: I71ddb762e00d9be8b426fb979ff5ade046d46050 Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Add warning when user destroys default module. Change-Id: I0a2b27fa8bac7e00b138847935cf803bb1ee8156 Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>
Initial code drop of yang model driven configuration system Configuration system employs two phase commit to validate and push configuration changes to a running system. It allows changing simple attributes, complex transfer objects, and also provides dependency injection between configured modules. Module config-api contains base yang model config.yang, defining language extensions and other elements required by all configuration models. Other than that it contains both apis implemented by config-manager and spis to be implemeted by configuration providers. Since the configuration system is internally driven by JMX, package org.opendaylight.controller.config.api.jmx contains all M(X)Bean interfaces exposed by config-manager. Module config-manager is implementation of config-api. Module config-util contains clients (both JMX and jolokia, which is http based bridge to JMX) of configuration system. Module yang-jmx-generator parses yang models and creates java representation of configuration models and service interfaces. Module yang-jmx-generator-plugin is connector to yangtools yang-maven-plugin that generates skeletons of java files needed by configuration providers. Module yang-test contains example yang file, from which code is being generated. Module yang-jmx-generator-it tests yang-test. Module yang-store-api contains api for a registry of all yang models parsed by yang-jmx-generator. Module yang-store-impl uses OSGi extender pattern to read META-INF/yang/*.yang from all bundles and provides snapshot view of currently available configuration models. Change-Id: Icf3201f9754e4ca28ebce3411d2a667dcd7e75c8 Signed-off-by: Tomas Olvecky <tolvecky@cisco.com>