Move adsal into its own subdirectory. Moved various adsal components into an opendaylight/adsal subdir, gave it a parent pom, and changed the root parent pom to have the opendaylight/adsal as a module. Change-Id: I1d0e5a7b2a50c65559c2f80dd47cab491b68d561 Signed-off-by: Ed Warnicke <eaw@cisco.com>
Support for FIQL queries on REST retreive operations - Retreive operations can be filtered based on FIQL queries. - Spec at http://tools.ietf.org/html/draft-nottingham-atompub-fiql-00 - Details of the feature can be found at https://pad.opendaylight.org/p/rest-search Change-Id: I3d7cc4350e890148fff5bd086f76ec51e63f2c3b Signed-off-by: Prasanth Pallamreddy <ppallamr@cisco.com>
Cherry-picked and merged modified JavaDocs for northbound apis to fix JSON/XML representation Change-Id: I322b3b77e55c54b54352eb3999ec0fc7a447b2c6 Signed-off-by: mrajvaid <mrajvaid@cisco.com>
Controller User Audit log to track activities Change-Id: I78760a5bcea3de9fcea4a0edd46eb7ea44765db0 Signed-off-by: Sapan Shah <sapshah@cisco.com>
Bug #65 - Fix inconsistencies in the NB REST APIs 1) PUT is used to create resources (when resource path is known to client and the action is idempotent). 2) Use plural resource name when listing contents. 3) Rename service names (flow -> flowprogrammer, host -> hosttracker, subnet -> subnetservice) as they conflict with resource names. Change-Id: I7171ec725b83799ec3686460ab7aa23c7df56c9b Signed-off-by: Prasanth Pallamreddy <ppallamr@cisco.com>
Bug #60 : JSON list responses from the NB-APIs returns native object (instead of List) when the API returns a single element. We use Jersey and JAXB frameworks for the NB-API implementation. Jersey by default uses Jettison for the JSON marshalling/demarshalling. It seems like there is a bug in Jettison for this case. And the recommended approach is to use Jackson instead. Among various approaches to replace Jettison with Jackson (including package scanning, etc..), the only easy approach in an OSGi environment is to directly refer to the JerseyJaxbJsonProvider class from the Northbound application. JerseyJaxbJsonProvider has dependancies on jersey-xc which is also pulled in. The Northbound Integration Test has inbuilt assumption that the NB-APIs use Jettison & hence a whole bunch of such bugs were hidden and not visible to the tests as well. The correct approach is to use JAXB bindings in the IT so that immaterial of Jettison or Jackson as the NB Marshalling infra, the IT need not change. But, that is a bigger change and hence to restrict to the changes being addressed, this changeset just fixed these incorrect assumptions and continued to use the Jettison library for demarshalling (while the actual Northbound API uses Jackson). Also note that, such infra changes call for bumping both the NB-API version and the bundle version. But, given the fact that the API freeze is scheduled later in October and more NB related changes are coming, the version bump process can be scheduled later to ease the development work. Change-Id: I47d8309dfbe11c251a30316bca37c7823cb0325a Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>
Few additional fixes to enable Client script access to Northbound. After Tomcat 7, httpOnly is true by default. This causes the httponly flag set on the Cookie. This prevents the Scripts to access the cookie. setting it to false by default. Due to the recent fix on disabling authentication for OPTIONS, if a script uses OPTIONS for an NB-API, the username is null causing null pointer exception. Hence adding null pointer safety checks on all the northbound APIs. Change-Id: I726fd058b629c04695bf07d9fd52f6483d193b79 Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>
Fix to remove @ from id and type parameter of node and nodeconnector in Northbound javadocs Change-Id: I343fc32d34ffb9940961e3319a260345db45d05b Signed-off-by: Pramila Singh <pramisin@cisco.com>
Northbound cleanup for topology manager Change-Id: I49862df3d3ac616127c82e7622e7c158ca58849e Signed-off-by: Jason Ye <yisye@cisco.com>
Log all configuration(add/modify/delete) changes to a new log file audit.log Change-Id: Icf16c88dbbd703dafe634f145f9e52f1e425f843 Signed-off-by: Sapan Shah <sapshah@cisco.com>
Checkstyle enforcer Started to enforce checkstyle, if the code style doesn't match the checkstyle settings build will break. This is needed in order to make sure folks comply to one code style and don't start diverging. For now the enforcement is only limited to: - make sure no TABS are present in the java files - make sure that no trailing whitespaces are present Along with code style enforcement updates all the files that didn't comply else compilation would not be successful. Added new exclusion in .gitignore Added new parent for commons.opendaylight, please read the README in the commons.parent project for the reason for it. Make sure the violation of checkstyle are reported on the console to avoid for a developer to be able to dig through the log in the target directory Change-Id: I4e35aa74e685e5cebb8182caf0b3b39da0906948 Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Revert "Checkstyle enforcer" This reverts commit 541d0a36997f292bb037a2199463431eee538358 We are going to talk a bit more about this before doing it. Change-Id: I788ecea18796c6eb325285dfaa83a6aae300634c
Checkstyle enforcer Started to enforce checkstyle, if the code style doesn't match the checkstyle settings build will break. This is needed in order to make sure folks comply to one code style and don't start diverging. For now the enforcement is only limited to: - make sure no TABS are present in the java files - make sure that no trailing whitespaces are present Along with code style enforcement updates all the files that didn't comply else compilation would not be successful. Added new exclusion in .gitignore Change-Id: Ic95da373575cec3cfe0c99b31fce92f66bc41263 Signed-off-by: Giovanni Meo <gmeo@cisco.com>
Authorization fixes for Northbound bundles Signed-off-by: Sapan Shah <sapshah@cisco.com>
- If a port is already under OF control and then hw LLDP transmit is enabled on it, controller should discard the hw LLDP packet. - When we change the name of the Production switch, stale entries should be removed. - Added Backend APIs to add/delete/get user link configs - Northbound REST APIs to GET/POST/DELETE user link configs - Endpoint connected as Production Switch to OF port. If the system-name TLV exists in the hw LLDP packet, it should be used for display. - Some misc osgi debugging commands. Signed-off-by: Jason Ye <yisye@cisco.com>
OpenDaylight Controller functional modules. Change-Id: I1cd6668738099e8db3cfe83f812a92c922ced38c Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>