controller.git
10 years agoChanged sun_coding_style.xml to have 120 line wrap instead of 80 89/489/1
Ed Warnicke [Fri, 14 Jun 2013 19:15:30 +0000 (14:15 -0500)]
Changed sun_coding_style.xml to have 120 line wrap instead of 80

See thread on controller-dev starting here:
https://lists.opendaylight.org/pipermail/controller-dev/2013-June/000673.html

Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoMerge "Disable unit tests on integration tests plugin"
Ed Warnicke [Fri, 14 Jun 2013 19:12:47 +0000 (19:12 +0000)]
Merge "Disable unit tests on integration tests plugin"

10 years agoDisable unit tests on integration tests plugin 88/488/2
Giovanni Meo [Fri, 14 Jun 2013 13:08:44 +0000 (15:08 +0200)]
Disable unit tests on integration tests plugin

- This patch disable unit tests to be even looked on the integration
tests bundles, so that we are sure that integration tests are only
looked by failsafe and so they can be disabled without impacting unit
tests.

Change-Id: I54a5c1f81e04ea9ebb0c4d398d214b7a93148ffc
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
10 years agoMerge "Parents pom distribution"
Ed Warnicke [Fri, 14 Jun 2013 18:53:08 +0000 (18:53 +0000)]
Merge "Parents pom distribution"

10 years agoAdd IfNewHostNotify to DeviceManager 84/484/2
Kalvin Hom [Fri, 14 Jun 2013 01:25:52 +0000 (18:25 -0700)]
Add IfNewHostNotify to DeviceManager

Small changes so that DeviceManager uses
IfNewHostNotify as listener to pass new
host info.  SimpleForwardingManager app should
now function, creating flows and allowing hosts
to ping each other.

Change-Id: I457696238c9bd14d7b897ef76dbbf8c738578329
Signed-off-by: Kalvin Hom <kahom@cisco.com>
10 years agoMerge "Enable checkstyle for other non-source files"
Jason Ye [Fri, 14 Jun 2013 16:01:14 +0000 (16:01 +0000)]
Merge "Enable checkstyle for other non-source files"

10 years agoSubnets Northbound integration tests. 85/485/5
patrichu [Fri, 14 Jun 2013 05:52:31 +0000 (22:52 -0700)]
Subnets Northbound integration tests.

Change-Id: I8dc1017565b8e0f7aef72e01c915fa479458f1d8
Signed-off-by: patrichu <patrichu@cisco.com>
10 years agoEnable checkstyle for other non-source files 74/474/2
Giovanni Meo [Thu, 13 Jun 2013 10:00:36 +0000 (12:00 +0200)]
Enable checkstyle for other non-source files

Just to make sure there is uniformity of threatment, also other files
are being exposed to checkstyle, limited to space and tabs rules.
Along with the rules, bulk changing the code to avoid breakages in the
build.

Change-Id: I11c6a10d00fc7fc6a14d41369e2a39fd6ad01d6b
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
10 years agoMerge "Bumped version of YANG tools to 0.5.2-SNAPSHOT"
Giovanni Meo [Fri, 14 Jun 2013 13:54:48 +0000 (13:54 +0000)]
Merge "Bumped version of YANG tools to 0.5.2-SNAPSHOT"

10 years agoBumped version of YANG tools to 0.5.2-SNAPSHOT 87/487/2
Tony Tkacik [Fri, 14 Jun 2013 12:29:39 +0000 (14:29 +0200)]
Bumped version of YANG tools to 0.5.2-SNAPSHOT

Change-Id: I4151e59cfb51ff934ce3c3c18090a30fb4a4179e
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Configuration integrationtest to test save config functionality"
Giovanni Meo [Fri, 14 Jun 2013 13:15:58 +0000 (13:15 +0000)]
Merge "Configuration integrationtest to test save config functionality"

10 years agoMerge "Rooted out the last of the ReflectionToStringBuilder usage"
Giovanni Meo [Fri, 14 Jun 2013 12:54:27 +0000 (12:54 +0000)]
Merge "Rooted out the last of the ReflectionToStringBuilder usage"

10 years agoConfiguration integrationtest to test save config functionality 83/483/9
Dheeraj Uppalapati [Thu, 13 Jun 2013 21:29:01 +0000 (14:29 -0700)]
Configuration integrationtest to test save config functionality

- Renamed to make sure the integration test runs only as part of
failsafe phase, so it can be skipped

Change-Id: If69d30f1f653ec35e96861df541c94114c6ce791
Signed-off-by: Dheeraj Uppalapati <duppalap@cisco.com>
10 years agoMerge "Added support for source code generation from identity statement, grouping...
Giovanni Meo [Fri, 14 Jun 2013 11:25:28 +0000 (11:25 +0000)]
Merge "Added support for source code generation from identity statement, grouping statement and identityref type statement. Introduce new BaseIdentity class as base for all classes generated from identity statements. Introduce new WildcardType interface to add possibility to generate wildcard java type parameters in generated code. Updated tests."

10 years agoMerge "Generation of Notifications and RPCs from YANG"
Giovanni Meo [Fri, 14 Jun 2013 11:21:37 +0000 (11:21 +0000)]
Merge "Generation of Notifications and RPCs from YANG"

10 years agoMerge "Added Static Routing Northbound integration tests for all available REST APIs."
Giovanni Meo [Fri, 14 Jun 2013 11:00:23 +0000 (11:00 +0000)]
Merge "Added Static Routing Northbound integration tests for all available REST APIs."

10 years agoMerge "HostTracker Fixes"
Giovanni Meo [Fri, 14 Jun 2013 10:59:53 +0000 (10:59 +0000)]
Merge "HostTracker Fixes"

10 years agoAdded support for source code generation from identity statement, grouping statement... 78/478/2
Martin Vitez [Thu, 13 Jun 2013 15:25:18 +0000 (17:25 +0200)]
Added support for source code generation from identity statement, grouping statement and identityref type statement.
Introduce new BaseIdentity class as base for all classes generated from identity statements.
Introduce new WildcardType interface to add possibility to generate wildcard java type parameters in generated code.
Updated tests.

Change-Id: I99de20dc4268be43ec9966461aeb75521fe5dd6c
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoRooted out the last of the ReflectionToStringBuilder usage 24/424/3
Ed Warnicke [Mon, 3 Jun 2013 23:02:19 +0000 (18:02 -0500)]
Rooted out the last of the ReflectionToStringBuilder usage

Change-Id: I0597e09797f30a43354902ee7e4a6d1477b1627d
Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoCorrection for TopologyManager jUNIT test. Arguments for Edge() was in 70/470/2
taochang [Thu, 13 Jun 2013 00:12:33 +0000 (17:12 -0700)]
Correction for TopologyManager jUNIT test. Arguments for Edge() was in
wrong order.

Signed-off-by: taochang <taochang@cisco.com>
10 years agoMerge "Separate UserManager into api and implementation bundles"
Giovanni Meo [Fri, 14 Jun 2013 10:19:04 +0000 (10:19 +0000)]
Merge "Separate UserManager into api and implementation bundles"

10 years agoAdded Static Routing Northbound integration tests for all available REST APIs. 71/471/2
patrichu [Thu, 13 Jun 2013 00:32:29 +0000 (17:32 -0700)]
Added Static Routing Northbound integration tests for all available REST APIs.

Change-Id: I7eb0b1ac7b951fccbf4b5c16f8769e11594fab43
Signed-off-by: patrichu <patrichu@cisco.com>
10 years agoGeneration of Notifications and RPCs from YANG 80/480/2
Tony Tkacik [Thu, 13 Jun 2013 17:50:49 +0000 (19:50 +0200)]
Generation of Notifications and RPCs from YANG

 - Added generation of RPC Service interfaces
 - Added generation of RPC Messages
 - Added generation of Notifications
 - Updated JUnit tests to reflect changes

Change-Id: Ic98d11ef70f42fbef680265d8eff71e2a3a51861
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoSeparate UserManager into api and implementation bundles 68/468/2
taochang [Wed, 12 Jun 2013 19:43:04 +0000 (12:43 -0700)]
Separate UserManager into api and implementation bundles

Change-Id: I3fd0fec1378b31ab330700d6cd0dd5319a6f7f5b
Signed-off-by: taochang <taochang@cisco.com>
10 years agoHostTracker Fixes 81/481/2
Kalvin Hom [Thu, 13 Jun 2013 21:12:31 +0000 (14:12 -0700)]
HostTracker Fixes

Fixes the following:
Hosts not being added due to SwitchManager
not being set and NullPointerException

Conversion added from Device to HostNodeConnector

REST Service nb/v2/host/default will show hosts

Known problems still need fixing:
- hosts cannot ping each other.
- When mininet is already running and switches are there,
  startup for controller is fine.  If controller already
  running, then mininet started and new switches added,
  controller is throwing errors.
- GUI isn't showing hosts in the diagram.

Change-Id: I16290feb269f4bfff8bb0f28e9d5601f0d9b1386
Signed-off-by: Kalvin Hom <kahom@cisco.com>
10 years agoMerge "Fix bulk sync in SwitchMananger."
Giovanni Meo [Thu, 13 Jun 2013 16:46:56 +0000 (16:46 +0000)]
Merge "Fix bulk sync in SwitchMananger."

10 years agoMerge "HostTracker Bundle Separation"
Giovanni Meo [Thu, 13 Jun 2013 16:33:55 +0000 (16:33 +0000)]
Merge "HostTracker Bundle Separation"

10 years agoFix bulk sync in SwitchMananger. 79/479/1
Jason Ye [Thu, 13 Jun 2013 05:18:03 +0000 (22:18 -0700)]
Fix bulk sync in SwitchMananger.

When node connector is added to a container, notify node addition if it was not present in the container.

Signed-off-by: Jason Ye <yisye@cisco.com>
10 years agoMerge "Added Support for conversion yang binary type to java type;"
Giovanni Meo [Thu, 13 Jun 2013 16:07:14 +0000 (16:07 +0000)]
Merge "Added Support for conversion yang binary type to java type;"

10 years agoMerge "Fixed schema path of types in augment statements. Updated tests."
Giovanni Meo [Thu, 13 Jun 2013 16:02:35 +0000 (16:02 +0000)]
Merge "Fixed schema path of types in augment statements. Updated tests."

10 years agoMerge "Fixed platform dependant bugs in maven plugin"
Giovanni Meo [Thu, 13 Jun 2013 15:32:33 +0000 (15:32 +0000)]
Merge "Fixed platform dependant bugs in maven plugin"

10 years agoAdded Support for conversion yang binary type to java type; 77/477/1
lsedlak [Thu, 13 Jun 2013 13:30:01 +0000 (15:30 +0200)]
Added Support for conversion yang binary type to java type;

Added support for generation of primitive java types;
Added support for conversion yang binary type to java byte array;

Updated toString method in AbstractBaseType in case that primitive type does not contain package name;

Added documentation into TypeProvider javaTypeForSchemaDefinitionType method;
Updated GeneratorUtil methods to not generate fully qualified names or imports in case of generating of java primitive types;

Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
10 years agoMerge "removing DataPacketService's receive queue"
Giovanni Meo [Thu, 13 Jun 2013 14:47:30 +0000 (14:47 +0000)]
Merge "removing DataPacketService's receive queue"

10 years agoMerge "UserManager as role coordinator"
Giovanni Meo [Thu, 13 Jun 2013 14:43:40 +0000 (14:43 +0000)]
Merge "UserManager as role coordinator"

10 years agoremoving DataPacketService's receive queue 59/459/2
Colin Dixon [Sat, 8 Jun 2013 02:53:21 +0000 (19:53 -0700)]
removing DataPacketService's receive queue

Change-Id: Ib1d0e929f6679935f9f0d5a86afafecea4e3ce5d
Signed-off-by: Colin Dixon <ckd@us.ibm.com>
10 years agoFixed schema path of types in augment statements. 75/475/1
Martin Vitez [Thu, 13 Jun 2013 12:44:28 +0000 (14:44 +0200)]
Fixed schema path of types in augment statements.
Updated tests.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoSwitchNorthbound tests 50/450/3
patrichu [Sun, 9 Jun 2013 06:36:31 +0000 (23:36 -0700)]
SwitchNorthbound tests

Added tests for all available SwitchManager REST APIs.
Made changes to stub InventoryService to allow for updating nodeProps and nodeConnectorProps.
Made changes to SwitchNorthbound.java to check for both nodeType and nodeId when getting a Node.
Made changes in all northbound tests to throw JSONException instead of simple assertion failure.

Change-Id: I816dcbaea2ed10833e3270395fe894e5c152f5d8
Signed-off-by: patrichu <patrichu@cisco.com>
10 years agoFixed platform dependant bugs in maven plugin 73/473/1
Maros Marsalek [Thu, 13 Jun 2013 07:21:59 +0000 (09:21 +0200)]
Fixed platform dependant bugs in maven plugin

Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoUserManager as role coordinator 67/467/1
Alessandro Boch [Wed, 12 Jun 2013 19:24:41 +0000 (12:24 -0700)]
UserManager as role coordinator

- UM to expose API to check if a role name is already in use
- Included search in local authorization configurations when querying for roles on user, getUserRoles()
- Added local authorization code to Junit to exercise the above
- Minor code refactoring to resuse getUserRoles() to avoid code duplication
- Downgrade and changed log level on cache allocation when cache is already present
- Removed new line in UM log messages to be in line with other bundles

Signed-off-by: Alessandro Boch <aboch@cisco.com>
10 years agoHostTracker Bundle Separation 66/466/6
Kalvin Hom [Wed, 12 Jun 2013 16:56:03 +0000 (09:56 -0700)]
HostTracker Bundle Separation

Moved the new HostTracker into
hostracker_new bundles.

Added exclusion to bin.xml so it doesn't
get assembled into distribution.

Added original hosttracker back.

Goal is to allow collaboration and
incremental check-ins for this
module without breaking anything else.

Original information from Rob Adams:
    Author: Rob Adams <rob.adams@bigswitch.com>
    Date:   Wed Jun 5 14:58:02 2013 -0700

    Initial port of device manager to cisco controller.  Currently capable
    of tracking devices but still a long list of TODOs:
    - No VLAN support - Ethernet frame parser can't parse VLAN tags and
      would be a bit of work to add it since current code can't handle
      anything but fixed-format header field which doesn't cover 802.1Q
    - No shared framework for asynchronous tasks.  For now device manager
      just allocates its own scheduled thread pool but a shared thread
      pool would be much better.
    - No clustering support in this code.  There is code that uses an
      eventually-consistent data store to support this but it's commented
      out since this is not available in daylight.  It would be possible
      to port this to the consistent store but this would lose valuable
      semantics and a component in the core should handle eventual
      consistency.
    - No web API support.  Would need to write a new implementation of the
      API; shouldn't be too hard presumably
    - Debug counters not ported
    - No mechanism for documenting log messages.  This doesn't exist in
      ODL.
    - DHCP parsing not supported; disable pulling hostname from DHCP.
    - Node/Port IDs are derived from Object and have no useful semantics.
      Device manager needs them to be comparable in order to get
      attachment points correct and consistent in all cases.  At the
      moment it just blindly casts them
    - Topology module doesn't implement the needed semantics.  First need
      to port net-virt-platform topology code, but there are impedance
      mismatches in the APIs to resolve first
    - Need to merge host tracker and device manager APIs to a new unified
      API and port all existing code to the new API, or adopt the device
      manager API.
    - Need to replace ARP handler to just handle ARPs and not be
      responsible for trying to discover devices
    - Unit tests need to be ported as well; currently commented out

Change-Id: If65e6582599a9c6fafaabfeb4b93b1d931965ab1
Signed-off-by: Kalvin Hom <kahom@cisco.com>
10 years agoAdded Support for Union Type def resolving and bug fixes. 65/465/3
lsedlak [Tue, 11 Jun 2013 15:08:25 +0000 (17:08 +0200)]
Added Support for Union Type def resolving and bug fixes.

Added implementation into TypeProviderImpl to proper resolve union type definitions;
Added UnionDependencySort for correct resolution of multiple unions in same yang model;
Added support for resolving of imported union types from multiple modules;
Added tests for Union Type def resolving;

Fixed Resolving of typedef Enumerations - now the Enumeration is resolved as standalone enum typedef name .java;
Fixed resolving of Inner Enumerations;
Fixed resolving of referenced Inner Enumerations through leafref definition;
Added EnumGenerator class for generating of Enum definitions and inner Enum definitions;
Fixed generation of Enumeration type through code writer;
Fixed generation of Enumeration package name in case of inner enum definition in Class and Generated Transfer Objects;
Added capability to generate inner enums into ClassCodeGenerator and InterfaceGenerator;

Fixed of missing apostrophe in createToString method in GeneratorUtil.java in case when more than one property should be generated in toString method;

Fixed platform specific bug in maven-yang-plugin incorrect retieval of maven dependency in YangToSourcesProcessor.java;
Fixed platform specific bug in maven-yang-plugin-it - hard coded resource paths replaced for getClass().getResource calls;

Added support into BindingGenerator API to suppor of generation of Types with restriction of specified modules that will be generated;
Added implementation of generateTypes in BindingGeneratorImpl;

Added tests and test resources for testing Enumeration gen. types
Added test resources for augment relative xpath testing;

Fixed improper implementation of hashCode and equals in ExtendedType in yang-model-util;
Fixed findParentModule method in SchemaContextUtil in yang-model-util project;

Change-Id: I144acbeec9ce547da856e2979d27b2c072174a52
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
10 years agoMerge "Checkstyle enforcer"
Madhu Venugopal [Wed, 12 Jun 2013 16:49:08 +0000 (16:49 +0000)]
Merge "Checkstyle enforcer"

10 years agoMerge "Yang-maven-plugin refactored and config attributes and spi adjusted."
Giovanni Meo [Wed, 12 Jun 2013 16:25:22 +0000 (16:25 +0000)]
Merge "Yang-maven-plugin refactored and config attributes and spi adjusted."

10 years agoCheckstyle enforcer 57/457/3
Giovanni Meo [Wed, 12 Jun 2013 15:43:29 +0000 (17:43 +0200)]
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>
10 years agoFixed bug in parser in augment resolving process. 63/463/2
Martin Vitez [Wed, 12 Jun 2013 14:37:50 +0000 (16:37 +0200)]
Fixed bug in parser in augment resolving process.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoFixed parsing of typedef statement. Refactored YangParserImpl to improve code readabi... 56/456/2
Martin Vitez [Tue, 11 Jun 2013 09:55:29 +0000 (11:55 +0200)]
Fixed parsing of typedef statement. Refactored YangParserImpl to improve code readability.
Added methods to LeafSchemaNode interface. Updated tests.

Change-Id: I63c84a5c0c3c4f6c68b8c2dabdcbb66266496000
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoParents pom distribution 58/458/1
Giovanni Meo [Tue, 11 Jun 2013 12:49:10 +0000 (14:49 +0200)]
Parents pom distribution

- Introduced a distribution that gather all the parents module and
allow for their deployment in one shot rather in multiple single calls
as done right now by jenkins

Change-Id: I11c485c2d50e7de69cea7a8091cd0e62068a3641
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
10 years agoYang-maven-plugin refactored and config attributes and spi adjusted. 44/444/6
Maros Marsalek [Fri, 7 Jun 2013 10:20:29 +0000 (12:20 +0200)]
Yang-maven-plugin refactored and config attributes and spi adjusted.

Removed project base dir parameter from CodeGenerator
since it can be acquired via additionalConfiguration.
Added resourceBaseDir config attribute that allows resources
to be added to packaged jar.
Added mavenProject config attribute that provides any additional
configuration to code generators if necessary.
Adjusted log levels for the plugin.

Plugin refactored and generate sources test fixed.

Change-Id: Ic3cc1342bb8eb8d6cc374da8af28fa9905ee8fcf
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMerge "Updated example with OF model done during HackFest."
Giovanni Meo [Mon, 10 Jun 2013 15:24:04 +0000 (15:24 +0000)]
Merge "Updated example with OF model done during HackFest."

10 years agoMerge "Samples/maven-code-gen-sample pom.xml updated after recent changes."
Giovanni Meo [Mon, 10 Jun 2013 15:19:52 +0000 (15:19 +0000)]
Merge "Samples/maven-code-gen-sample pom.xml updated after recent changes."

10 years agoMerge "Modified construction of built-in yang types."
Giovanni Meo [Mon, 10 Jun 2013 15:19:00 +0000 (15:19 +0000)]
Merge "Modified construction of built-in yang types."

10 years agoMerge "Adding Set Next Hop action"
Giovanni Meo [Mon, 10 Jun 2013 14:59:12 +0000 (14:59 +0000)]
Merge "Adding Set Next Hop action"

10 years agoSamples/maven-code-gen-sample pom.xml updated after recent changes. 53/453/1
Maros Marsalek [Mon, 10 Jun 2013 11:18:08 +0000 (13:18 +0200)]
Samples/maven-code-gen-sample pom.xml updated after recent changes.

Added insepctDependencies config attribute.
Yang-maven-plugin integration tests marked as IT and now run by failsafe.

Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoMerge "Manual link addition feature assumes Long for Switch identifier and Short...
Jason Ye [Mon, 10 Jun 2013 06:03:37 +0000 (06:03 +0000)]
Merge "Manual link addition feature assumes Long for Switch identifier and Short for Port identifier. This commit fixes that assumption."

10 years agoFixed Openflow InventoryService to return the property cache. 52/452/1
Madhu Venugopal [Mon, 10 Jun 2013 01:57:00 +0000 (18:57 -0700)]
Fixed Openflow InventoryService to return the property cache.

Change-Id: I82466d3af47e7b0f2bcc1c0cbedc4fef1e25d915
Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>
10 years agoManual link addition feature assumes Long for Switch identifier and Short for Port... 51/451/1
Madhu Venugopal [Mon, 10 Jun 2013 01:43:22 +0000 (18:43 -0700)]
Manual link addition feature assumes Long for Switch identifier and Short for Port identifier. This commit fixes that assumption.

Change-Id: Ibffd2c1b8704465e928dd180832ad026ce749d48
Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>
10 years agoMerge "Revert "Checkstyle enforcer""
Madhu Venugopal [Sat, 8 Jun 2013 14:24:11 +0000 (14:24 +0000)]
Merge "Revert "Checkstyle enforcer""

10 years agoRevert "Checkstyle enforcer" 49/449/1
Ed Warnicke [Sat, 8 Jun 2013 14:08:53 +0000 (14:08 +0000)]
Revert "Checkstyle enforcer"

This reverts commit 541d0a36997f292bb037a2199463431eee538358

We are going to talk a bit more about this before doing it.

Change-Id: I788ecea18796c6eb325285dfaa83a6aae300634c

10 years agoMerge "Checkstyle enforcer"
Ed Warnicke [Sat, 8 Jun 2013 05:46:14 +0000 (05:46 +0000)]
Merge "Checkstyle enforcer"

10 years agoCheckstyle enforcer 47/447/2
Giovanni Meo [Fri, 7 Jun 2013 21:17:55 +0000 (23:17 +0200)]
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>
10 years agoFixed a bug in removeSpanPorts 46/446/1
Youcef Laribi [Fri, 7 Jun 2013 20:51:55 +0000 (13:51 -0700)]
Fixed a bug in removeSpanPorts

Signed-off-by: Youcef Laribi <Youcef.Laribi@citrix.com>
10 years agoUpdated example with OF model done during HackFest. 45/445/1
Tony Tkacik [Fri, 7 Jun 2013 20:44:16 +0000 (13:44 -0700)]
Updated example with OF model done during HackFest.

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge changes I029118f9,I4a0320b9
Giovanni Meo [Fri, 7 Jun 2013 16:45:51 +0000 (16:45 +0000)]
Merge changes I029118f9,I4a0320b9

* changes:
  Fixed typo in transform package
  Cleaned up Integration Tests

10 years agoFixed typo in transform package 36/436/2
Tony Tkacik [Tue, 4 Jun 2013 20:31:25 +0000 (13:31 -0700)]
Fixed typo in transform package

Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Yang-maven-plugin refactored + fixed bugs. Removed resourceProviders argument...
Giovanni Meo [Fri, 7 Jun 2013 16:11:27 +0000 (16:11 +0000)]
Merge "Yang-maven-plugin refactored + fixed bugs. Removed resourceProviders argument(unused). Other arguments marked as optional. Added argument to set whether use yang files from dependencies or not. Added packaging of yang files from project to META-INF. Added additionalConfiguration argument for code generators."

10 years agoMerge "Finalize the OSGi launcher for the opendaylight distribution"
Ed Warnicke [Fri, 7 Jun 2013 15:11:06 +0000 (15:11 +0000)]
Merge "Finalize the OSGi launcher for the opendaylight distribution"

10 years agoModified construction of built-in yang types. 35/435/3
Martin Vitez [Wed, 5 Jun 2013 14:18:01 +0000 (16:18 +0200)]
Modified construction of built-in yang types.

Base yang types can not be restricted now. Every restriction causes creation of new ExtendedType with default yang type as base type.
Updated tests.

Change-Id: I04b2a0a069dcf4f7b3a3d1220c742fed047cba3a
Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoRemoving invalid casts from hosttracker. 42/442/1
Madhu Venugopal [Fri, 7 Jun 2013 04:21:45 +0000 (21:21 -0700)]
Removing invalid casts from hosttracker.

Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>
Change-Id: I4a2c7e73a025112ee77a2b0f7058a4d6d593c76a
Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>
10 years agoAdding Set Next Hop action 39/439/1
Alessandro Boch [Thu, 6 Jun 2013 21:06:27 +0000 (14:06 -0700)]
Adding Set Next Hop action

- It will be ignored by openflow plugin

Signed-off-by: Alessandro Boch <aboch@cisco.com>
10 years agoCleaned up Integration Tests 31/431/5
Tony Tkacik [Tue, 4 Jun 2013 21:26:32 +0000 (14:26 -0700)]
Cleaned up Integration Tests

- Removed dependency version declarations from Integration Tests.
  The version of controller bundles and dependencies is loaded
  from integration test pom files.

- Moved integration tests from test phase to verify.
  The integration tests could be skipped by -DskipITs option.

- Added common base POM for integration tests with pax-exam
  configuration.

Change-Id: I4a0320b97a438bbc2f8234beb34ae246b683c353
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
10 years agoMerge "Fix exception in HostTracker when non-OF node is removed."
Giovanni Meo [Wed, 5 Jun 2013 15:14:38 +0000 (15:14 +0000)]
Merge "Fix exception in HostTracker when non-OF node is removed."

10 years agoMerge "FlowProgrammer.Northbound test"
Giovanni Meo [Wed, 5 Jun 2013 15:12:59 +0000 (15:12 +0000)]
Merge "FlowProgrammer.Northbound test"

10 years agoMerge "Fix to maintain Java 6 compatability"
Giovanni Meo [Wed, 5 Jun 2013 14:43:16 +0000 (14:43 +0000)]
Merge "Fix to maintain Java 6 compatability"

10 years agoMerge "Custom Node Type jaxb string to id"
Giovanni Meo [Wed, 5 Jun 2013 14:40:02 +0000 (14:40 +0000)]
Merge "Custom Node Type jaxb string to id"

10 years agoMerge "Refactored ModuleBuilder to avoid name conflicts. Fixed implementation of...
Giovanni Meo [Wed, 5 Jun 2013 14:38:51 +0000 (14:38 +0000)]
Merge "Refactored ModuleBuilder to avoid name conflicts. Fixed implementation of ChoiceBuilder. Refactored parsing of refine statement. Added tests. Renamed ChildNodeBuilder -> DataNodeContainerBuilder. Renamed AbstractChildNodeBuilder -> AbstractDataNodeContainerBuilder. Renamed TypedefBuilder -> TypeDefinitionBuilderImpl."

10 years agoRemoved Equals/HashCodeBuilder for ARP/LLDPTLV 23/423/3
Ed Warnicke [Mon, 3 Jun 2013 22:41:14 +0000 (17:41 -0500)]
Removed Equals/HashCodeBuilder for ARP/LLDPTLV

This also entailed fixing equals and HashCodeBuilder for Packet.

Change-Id: I5497a719d51becfd0019fada2c7f171fadfbdb13
Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoYang-maven-plugin refactored + fixed bugs. 06/406/6
Maros Marsalek [Thu, 30 May 2013 09:49:22 +0000 (11:49 +0200)]
Yang-maven-plugin refactored + fixed bugs.
Removed resourceProviders argument(unused).
Other arguments marked as optional.
Added argument to set whether use yang files from dependencies or not.
Added packaging of yang files from project to META-INF.
Added additionalConfiguration argument for code generators.

Yang-maven-plugin SPI, ResourceProvider interface removed since
it was unused. Code generator interface improved.

YangParserImpl API changed to provide a map<File, Module>. Users will
know which module belongs to which file and can utilize this information
when parsing yang files from multiple sources. Yang-maven-plugin needs
this information since it parses yang files from project as well as its
dependencies.

Change-Id: I15c53df59c4104793e023ad3686b031ce0ba8cd3
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
10 years agoFinalize the OSGi launcher for the opendaylight distribution 29/429/2
Giovanni Meo [Tue, 4 Jun 2013 15:06:50 +0000 (17:06 +0200)]
Finalize the OSGi launcher for the opendaylight distribution

In this commit following changes are being done:
1) Adjusted opendaylight-osgi-launcher-local.launch not to include
bundles that are clustering.stub and protocol_plugin.stub because
those are only meant for integration testing
2) Modifed the opendaylight.target to refer to an http repository so
eventual problem with certificates will not be seen, using the https
url of jenkins on some system has been causing problems because the
root certificate for jenkins was not known.
3) Adjusted the opendaylight-osgi-launcher.launch not to include the
bundles that are clustering.stub and protocol_plugin.stub because
those are only meant for integration testing
4) Adjust the opendaylight-osgi-launcher.launch to make sure the
jersey libraries startup soon else an harmless yet annoying error
would be printed
5) Moved clusterin.test bundle off Declarative service else the
OSGI-INF/component.xml location even though works for built done via
maven will not work for builds done via eclipse PDE.

Change-Id: Ic2f2196514dc8c7c5af419f81c6f46e7eb29aed1
Signed-off-by: Giovanni Meo <gmeo@cisco.com>
10 years agoFix exception in HostTracker when non-OF node is removed. 34/434/1
Jason Ye [Wed, 5 Jun 2013 06:33:08 +0000 (23:33 -0700)]
Fix exception in HostTracker when non-OF node is removed.

Signed-off-by: Jason Ye <yisye@cisco.com>
10 years agoFlowProgrammer.Northbound test 33/433/2
Kalvin Hom [Wed, 5 Jun 2013 01:15:47 +0000 (18:15 -0700)]
FlowProgrammer.Northbound test

Added northbound integration tests
for adding, getting, and deleting
flows.

Change-Id: I2ed169db37ff065d650b84e29f8801744c061c26
Signed-off-by: Kalvin Hom <kahom@cisco.com>
10 years agoMerge "Fixed a bug in deriving Switch Mac-address and a null check on set payload...
Alessandro Boch [Wed, 5 Jun 2013 00:11:21 +0000 (00:11 +0000)]
Merge "Fixed a bug in deriving Switch Mac-address and a null check on set payload on ip packet Change-Id:I91cd687f3177829862b6aac4a8bce8bd53f7baa5 Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>"

10 years agoFixed a bug in deriving Switch Mac-address and a null check on set payload on ip... 32/432/2
Madhu Venugopal [Tue, 4 Jun 2013 23:40:02 +0000 (16:40 -0700)]
Fixed a bug in deriving Switch Mac-address and a null check on set payload on ip packet
Change-Id:I91cd687f3177829862b6aac4a8bce8bd53f7baa5
Signed-off-by: Madhu Venugopal <vmadhu@cisco.com>
10 years agoMerge "Principal to contain all the user roles"
Madhu Venugopal [Tue, 4 Jun 2013 23:21:55 +0000 (23:21 +0000)]
Merge "Principal to contain all the user roles"

10 years agoFix to maintain Java 6 compatability 30/430/1
Ed Warnicke [Tue, 4 Jun 2013 20:01:22 +0000 (15:01 -0500)]
Fix to maintain Java 6 compatability

Swapped out the use of Integer.compare (which requires Java 7)
for Integer.valueOf(x).compareTo(Integer.valueOf(y)) which
is promised to return the identical value here:
http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html#compare(int, int)

Change-Id: I78d325351dac312d120f5c598ec9155d31cfb689
Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoCustom Node Type jaxb string to id 13/413/3
Kalvin Hom [Fri, 31 May 2013 01:48:37 +0000 (18:48 -0700)]
Custom Node Type jaxb string to id

When using the web services, nodeIDString
needs to be parsed into the correct
type to get the nodeID when it is not
one of the preset Node types.

Change-Id: Ic55b440e0a5a951f9f8c6c167e1e1bcfa8c3b107
Signed-off-by: Kalvin Hom <kahom@cisco.com>
10 years agoRefactored ModuleBuilder to avoid name conflicts. Fixed implementation of ChoiceBuilder. 28/428/1
Martin Vitez [Tue, 4 Jun 2013 13:45:29 +0000 (15:45 +0200)]
Refactored ModuleBuilder to avoid name conflicts. Fixed implementation of ChoiceBuilder.
Refactored parsing of refine statement. Added tests.
Renamed ChildNodeBuilder -> DataNodeContainerBuilder.
Renamed AbstractChildNodeBuilder -> AbstractDataNodeContainerBuilder.
Renamed TypedefBuilder -> TypeDefinitionBuilderImpl.

Signed-off-by: Martin Vitez <mvitez@cisco.com>
10 years agoMerge "- Added osgi cmds so that user is able to configure a link. The link is added...
Madhu Venugopal [Tue, 4 Jun 2013 11:14:08 +0000 (11:14 +0000)]
Merge "- Added osgi cmds so that user is able to configure a link. The link is added to the main Topology if it's not a Production link."

10 years agoPrincipal to contain all the user roles 27/427/1
Alessandro Boch [Tue, 4 Jun 2013 02:19:28 +0000 (19:19 -0700)]
Principal to contain all the user roles

- Added IUserManager.getUserLevels() which returns all the controller levels for the passed user
- Modified CustomRealm to return a principal containing all the controller roles for the passed user
- Code style and format changes for the touched files

Signed-off-by: Alessandro Boch <aboch@cisco.com>
10 years ago- Added osgi cmds so that user is able to configure a link. The link is added to... 25/425/1
Jason Ye [Tue, 4 Jun 2013 02:41:32 +0000 (19:41 -0700)]
- Added osgi cmds so that user is able to configure a link. The link is added to the main Topology if it's not a Production link.

Usage:

addUserLink <name> <node connector string> <node connector string>
deleteUserLink <name>
printUserLink

- Fixed an exception in SwitchManager osgi cmd pns

Signed-off-by: Jason Ye <yisye@cisco.com>
10 years agoMerge "Replaced Equals/HashcodeBuilder for DatapacketListener"
Alessandro Boch [Mon, 3 Jun 2013 22:19:15 +0000 (22:19 +0000)]
Merge "Replaced Equals/HashcodeBuilder for DatapacketListener"

10 years agoNode MAC address to be derived inside the protocol plugin 22/422/4
Alessandro Boch [Mon, 3 Jun 2013 16:46:09 +0000 (09:46 -0700)]
Node MAC address to be derived inside the protocol plugin

- Moved network node's MAC computation from switch mgr to InventoryShimService in protocol plugin
- Modified MAC property to only carry network node MAC
- Some automatic coding style changes
- Some static analysis fix

Change-Id:I8481176d3fa3fcc004f642ea865b7be3593bdfc4
Signed-off-by: Alessandro Boch <aboch@cisco.com>
10 years agoFix exceptions in SwitchManager Web in case of non-OF nodes and node connectors 21/421/1
Jason Ye [Mon, 3 Jun 2013 06:12:02 +0000 (23:12 -0700)]
Fix exceptions in SwitchManager Web in case of non-OF nodes and node connectors

Signed-off-by: Jason Ye <yisye@cisco.com>
10 years agoReplaced Equals/HashcodeBuilder for DatapacketListener 20/420/1
Ed Warnicke [Sun, 2 Jun 2013 22:47:53 +0000 (17:47 -0500)]
Replaced Equals/HashcodeBuilder for DatapacketListener

Change-Id: I7e1bcf6937e503bb6b63bbb949bcbf8d3092f413
Signed-off-by: Ed Warnicke <eaw@cisco.com>
10 years agoMerge "Add 'TableStatistics' to SAL and Northbound Statistics API."
Alessandro Boch [Sun, 2 Jun 2013 18:33:20 +0000 (18:33 +0000)]
Merge "Add 'TableStatistics' to SAL and Northbound Statistics API."

10 years agoAdd 'TableStatistics' to SAL and Northbound Statistics API. 18/418/6
Aditya Prakash Vaja [Fri, 31 May 2013 19:28:15 +0000 (12:28 -0700)]
Add 'TableStatistics' to SAL and Northbound Statistics API.

It is similar to the FlowStats and PortStats (NodeConnectorStats) that are present now.

Change-Id: Ibecb95c9c4a4f911e5fd3847bbf1f2e77eb16be1
Signed-off-by: Aditya Prakash Vaja <aditya.vaja@bigswitch.com>
10 years ago- SAL Inventory needs to be modified to be able to take multiple IPluginInInventorySe... 17/417/1
Jason Ye [Fri, 31 May 2013 18:17:55 +0000 (11:17 -0700)]
- SAL Inventory needs to be modified to be able to take multiple IPluginInInventoryService providers. Same applies to IListenInventoryUpdates.
- Plugin needs to introduce a wrapper of SAL interface if it's going to be used locally within the plugin.

Signed-off-by: Jason Ye <yisye@cisco.com>
10 years agoMerge "Add hosttracker northbound integration test. This modification depends on...
Giovanni Meo [Fri, 31 May 2013 14:46:23 +0000 (14:46 +0000)]
Merge "Add hosttracker northbound integration test. This modification depends on change-id I760800: NodeConnector custom type"

10 years agoMerge "Refactored SchemaPath for yang java types. Fixed SchemaPath for augmented...
Giovanni Meo [Fri, 31 May 2013 14:35:04 +0000 (14:35 +0000)]
Merge "Refactored SchemaPath for yang java types. Fixed SchemaPath for augmented nodes types. Updated yang java types constructors. Updated tests accordingly."

10 years agoMerge "NodeConnector custom type"
Giovanni Meo [Fri, 31 May 2013 14:01:38 +0000 (14:01 +0000)]
Merge "NodeConnector custom type"

10 years agoRefactored SchemaPath for yang java types. Fixed SchemaPath for augmented nodes types. 11/411/3
Martin Vitez [Thu, 30 May 2013 14:03:54 +0000 (16:03 +0200)]
Refactored SchemaPath for yang java types. Fixed SchemaPath for augmented nodes types.
Updated yang java types constructors. Updated tests accordingly.

Change-Id: Ifeb1ddc96c89350579c837414dceeab624ef17ab
Signed-off-by: Martin Vitez <mvitez@cisco.com>