Shigeru Yasuda [Fri, 22 Aug 2014 11:25:06 +0000 (20:25 +0900)]
Use JaCoCo JUnit listener to collect test coverage.
Change-Id: I7e385fe108073ade25e7b2979ba4ecf4d8fb9ee8
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Fri, 22 Aug 2014 07:26:01 +0000 (16:26 +0900)]
api/pom.xml: Add javax.xml.bind.annotation.adapters to Import-Package.
This patch fixes a bug that XmlJavaTypeAdapter might not be visible to
Jackson.
Other changes:
* Remove unnecessary dependencies in pom.xml.
Change-Id: Ic5efede7d8d444e5248856379cd168b0967bf499
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Wed, 20 Aug 2014 10:58:28 +0000 (19:58 +0900)]
Refine implementation of FlowAction.create().
* Take IP protocol number instead of boolean value.
* Use reflection to simplify the code.
Change-Id: I6c66c62cb506071b7494d02fb411a344106309a6
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Tue, 19 Aug 2014 07:57:03 +0000 (16:57 +0900)]
Import new version of openflowplugin.
Change-Id: Ifbc36b729d5ac84e59e62ea9fa5f0e43f0a9c3d6
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Thu, 7 Aug 2014 09:51:08 +0000 (18:51 +0900)]
Fixed incorrect logging and comments.
Change-Id: I36795ce894d86b8094d794f6f1967f5ad4c660cb
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Thu, 7 Aug 2014 02:02:05 +0000 (02:02 +0000)]
Merge "Add REST APIs for flow filter."
Shigeru Yasuda [Tue, 5 Aug 2014 15:35:41 +0000 (00:35 +0900)]
Add REST APIs for flow filter.
Note that flow filter feature is not yet implemented.
Currently all flow filter REST APIs do nothing.
Change-Id: Ic6a3e65355e8162b8e19df6320008cecab209d0f
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Tue, 5 Aug 2014 23:43:46 +0000 (23:43 +0000)]
Merge "Bug 1465: Remove faulted paths that contain removed node."
Shigeru Yasuda [Tue, 5 Aug 2014 14:34:16 +0000 (23:34 +0900)]
Fixed bug of FlowAction variants.
* InetAddressAction: Fixed bug that an IP address passed via JAXB
was not set.
* DlAddrAction: MAC address should be pretty-formatted.
Other changes:
* Reduce code clone.
* Add unit tests for FlowAction variants.
Change-Id: I1ab973f369591ea78434359901c987ad50228401
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Fri, 1 Aug 2014 12:41:36 +0000 (21:41 +0900)]
Bug 1465: Remove faulted paths that contain removed node.
Change-Id: I1bbbe1c12d8848602a4f23f36a6bf6a8eff6ff78
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Tue, 5 Aug 2014 05:28:04 +0000 (05:28 +0000)]
Merge "Add vTerminal support."
Shigeru Yasuda [Fri, 1 Aug 2014 02:47:40 +0000 (11:47 +0900)]
Add vTerminal support.
vTerminal is isolated input and output terminal used by flow filter.
Other changes:
* Rename Java APIs for vBridge interface.
* IVTNManager
* getBridgeInterfaces(VBridgePath)
=> getInterfaces(VBridgePath)
* getBridgeInterface(VBridgeIfPath)
=> getInterface(VBridgeIfPath)
* addBridgeInterface(VBridgeIfPath, VInterfaceConfig)
=> addInterface(VBridgeIfPath, VInterfaceConfig)
* modifyBridgeInterface(VBridgeIfPath, VInterfaceConfig, boolean)
=> modifyInterface(VBridgeIfPath, VInterfaceConfig, boolean)
* removeBridgeInterface(VBridgeIfPath)
=> removeInterface(VBridgeIfPath)
* IVTNManagerAware
* vBridgeInterfaceChanged(VBridgeIfPath, VInterface, UpdateType)
=> vInterfaceChanged(VBridgeIfPath, VInterface, UpdateType)
* Install a flow entry that drops every incoming packet when a packet
is received from disabled virtual interface. It will be uninstalled
when the virtual interface is enabled.
Change-Id: I12ef8c65fff3ac9463de51da5d2db70b3500e74e
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Mon, 4 Aug 2014 16:30:39 +0000 (16:30 +0000)]
Merge "Refine custom serialization."
Shigeru Yasuda [Fri, 1 Aug 2014 06:03:57 +0000 (15:03 +0900)]
Refine custom serialization.
* MacMapState: Need to read/write instance fields according to
specification of Java object serialization.
* No synchronization is needed in readObject() because the instance is
not yet visible to other instances when readObject() is called.
Change-Id: I8aa1634ad981b4215c6232d277f3f0bd98d52d58
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Fri, 1 Aug 2014 04:15:16 +0000 (13:15 +0900)]
Set "@since Helium" doclet to new NB applications.
Change-Id: I2426aea386106a71537d0b530acb69f46c703a4d
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Thu, 31 Jul 2014 20:35:57 +0000 (20:35 +0000)]
Merge "Bug 1453: Fixed unstable unit tests."
Shigeru Yasuda [Wed, 30 Jul 2014 10:06:52 +0000 (19:06 +0900)]
Bug 1453: Fixed unstable unit tests.
This patch fixes unit tests that expected severe accuracy of timer task
execution.
Change-Id: Id0c3b33e2518f3e37a4b4cb495c4c2bdb8c0e964
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Wed, 30 Jul 2014 05:20:27 +0000 (14:20 +0900)]
Don't build REST API document if "vtn.doc.skip" property is defined.
Change-Id: I59681dfa61248580fd4e06289d5b76dff4335d4d
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Thu, 24 Jul 2014 02:11:41 +0000 (11:11 +0900)]
Enable to configure data flow without specifying MAC address.
A data flow without specifying MAC address will be used to drop all
packets from the specified VLAN.
Change-Id: I45134a4deb417f89450b80ebd58cd83df9c83d31
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Fri, 18 Jul 2014 12:10:43 +0000 (21:10 +0900)]
Added new checkstyle rule that checks coding style strictly.
Strict coding style check is enabled only if "-Pstrictcheck" option is
specified to mvn.
Change-Id: I550c266b86280be34785b9ab543b2b48b6833cbb
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Thu, 17 Jul 2014 20:38:37 +0000 (20:38 +0000)]
Merge "Bug 1364: Preserve flow entries during container mode."
Hideyuki Tai [Wed, 16 Jul 2014 21:38:05 +0000 (21:38 +0000)]
Merge "Fixed some sonar warnings."
Shigeru Yasuda [Tue, 15 Jul 2014 04:31:31 +0000 (13:31 +0900)]
Bug 1364: Preserve flow entries during container mode.
Flow entries in the default container should be preserved when the contoller
enters the container mode.
* Ignore FLOW_REMOVED in the default container during container mode.
* Data flow APIs behave as if no data flow is installed in the default
container during container mode.
Change-Id: Ia999160aa123ea062f8d36af1eb072c44bf77e4c
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Tue, 15 Jul 2014 02:07:21 +0000 (02:07 +0000)]
Merge "Fixed hashCode() method that returned inconsistent value."
Shigeru Yasuda [Mon, 14 Jul 2014 09:26:29 +0000 (09:26 +0000)]
Merge "Backed out OVSDB support code temporarily."
Shigeru Yasuda [Mon, 14 Jul 2014 07:40:49 +0000 (16:40 +0900)]
Backed out OVSDB support code temporarily.
OVSDB support that uses new APIs will be enabled later.
Other changes:
* integrationtest: Ensure that the VTN neutron bundle can be loaded.
* northboundIT: Ditto.
Change-Id: Ic7ccffc292d6569b59fda144b8c7bb3753fcc6ff
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Karthik.s [Thu, 10 Jul 2014 16:43:10 +0000 (22:13 +0530)]
Add Unit tests for VTNManager
* DataFlowList UT for northbound.
* MacMapping features UT for manager implementation.
Change-Id: Id5e9f22291b2cba4b72d7abc03940fb0f000f22a
Signed-off-by: Karthik.s <siva-karthik@hcl.com>
Shigeru Yasuda [Fri, 11 Jul 2014 12:55:17 +0000 (21:55 +0900)]
Fixed some sonar warnings.
Change-Id: I6eb8668cfa18e745d4db1d70ede65cb76ce34238
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Fri, 11 Jul 2014 11:35:13 +0000 (20:35 +0900)]
Fixed hashCode() method that returned inconsistent value.
Other changes:
* DataFlow: Added javadoc comment which describes the meaning of
an empty action list.
* Fixed typo in javadoc comment.
Change-Id: I7c0e31b463ce62bcdb3918266fdb1a8988c699d6
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Wed, 9 Jul 2014 09:18:02 +0000 (18:18 +0900)]
Eliminate duplicate plugins in distribution.vtn-manager.
Change-Id: I43e6c7a42e8ad9e797cd983b0dde844a1df4ce6f
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Mon, 7 Jul 2014 13:52:46 +0000 (22:52 +0900)]
Provide run.bat for Windows, and add "-of10" switch.
Change-Id: I1ec4c8c075ea495f31d5254f8dd705a1efd5d0d8
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Wed, 2 Jul 2014 06:30:21 +0000 (15:30 +0900)]
Enable MD-SAL openflow plugin if requested.
MD-SAL openflow plugin is enabled only if "-of13" switch is specified to
run.sh.
Change-Id: I02b2214c37dc55165bdf01271af6241b5e6a4233
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Mon, 30 Jun 2014 14:22:48 +0000 (23:22 +0900)]
Add path map feature.
Path map defines the packet routing policy in the physical network.
A path map keeps a pair of flow condition and path policy.
* Flow condition specifies the condition to select packets.
* Path policy implements cost-based packet routing.
Change-Id: I32692a90e636529e9c14c4223e87b0666efd079b
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Mon, 30 Jun 2014 02:23:30 +0000 (11:23 +0900)]
Remove support of "MD_SAL" node and node connector type.
MD-SAL got to use the same node and node connector type as AD-SAL for
OpenFlow switch and port.
Change-Id: I738f705908d8fa363195fa42e3ab1fa90585fe24
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Thu, 26 Jun 2014 08:00:54 +0000 (17:00 +0900)]
Do not use Class.hashCode() in hashCode() method.
Class.hashCode() is inherited from Object class, so it may return
diffent value on different JVM.
Change-Id: I9ac9e2847af73a4e172bfe3a8e17b285ee07ffd3
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Wed, 25 Jun 2014 10:57:16 +0000 (19:57 +0900)]
Bug 996: Fixed UT bug due to incorrect VTN event synchronization.
If the test code verifies the number of VTN events delivered to the
listener instance, it needs to ensure that no VTN event is pending
before adding the listener.
Additional changes:
* VTNThreadDataTest: Fixed too short timeout.
* Add some test cases for IVTNModeListener.
Change-Id: Ic6efdab85e9cdbda9f73d27bf1319263edba67ab
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Tue, 24 Jun 2014 06:08:07 +0000 (15:08 +0900)]
Add flow condition APIs.
Flow condition is used to select packets by specifying condition for
protocol header field in packets.
Change-Id: Ic7321eac15d4fbc3865a30ff31f3f972e31c3da2
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Mon, 23 Jun 2014 05:22:15 +0000 (14:22 +0900)]
Fixed incorrect name of VTN Coordinator test executables.
Change-Id: I4adbcf9c41722e3054e4dbabc2ac28ffd2a7e5f1
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Sat, 21 Jun 2014 03:29:03 +0000 (12:29 +0900)]
Fixed unstable VTN Coordinator tests.
Some tests expect that other test initializes vtncacheutil module.
Those tests may fail according to order of test execution.
Change-Id: I7df81f75f2aca173753acd0b46a2b6997e7ab297
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Sat, 21 Jun 2014 02:01:56 +0000 (11:01 +0900)]
Don't run VTN Coordinator test that may fail under heavy load.
Some VTN Coordinator tests may fail if the build host is under heavy load,
especially tests that require accuracy of system timer.
This patch eliminates those tests.
Change-Id: I9bc76e7256799a415003a00698e8d9c275d7f7d6
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Sarath Babu Gurujala [Fri, 20 Jun 2014 14:00:37 +0000 (14:00 +0000)]
Merge "Added support for new features in common driver framework in ODC driver. * Flow Filter * vTerminal"
senthil [Fri, 13 Jun 2014 19:43:43 +0000 (01:13 +0530)]
Added support for new features in common driver framework in ODC driver.
* Flow Filter
* vTerminal
Change-Id: I7fdc072119baeed78313f58cd93f629e03215ebf
Signed-off-by: senthil <senthil-b@hcl.com>
Shigeru Yasuda [Tue, 17 Jun 2014 14:31:37 +0000 (23:31 +0900)]
Rename VTN configuration file path.
VTN configurations will be saved under the container config directory.
Change-Id: I662e5827dbb9b0b40a298c8008f6afd5b6f88f77
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Tue, 17 Jun 2014 05:52:08 +0000 (14:52 +0900)]
Do not use enum's hashCode() value.
A use of enum's hashCode() may break InfiniSpan consistency because
its hash code in a JVM differs from value in another JVM.
Other changes:
* checkstyle: Allow use of magic number in hashCode().
Change-Id: I54d7e6e2503f617a89379a3cc81cc3fc492af8cb
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
kamatchi [Mon, 26 May 2014 20:12:22 +0000 (01:42 +0530)]
Updated unit tests for VTN Manager Neutron module
Change-Id: I51267edafaf0bf99e0494190279a7bc372deb24e
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
Shigeru Yasuda [Fri, 13 Jun 2014 06:36:56 +0000 (15:36 +0900)]
Add APIs to get information about data flows.
"Data flow" means a sequence of flow entries which establishes
end-to-end packet flow. APIs added by this patch provide the way to
derive data flow information from the VTN Manager.
* Condition to select packets.
* Flow actions to be applied to packets.
* Packet route in virtual and physical network.
* Statistics information.
Change-Id: I9d68eadb68fa0865d76c4c772925672327316d91
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Fri, 13 Jun 2014 12:00:01 +0000 (12:00 +0000)]
Merge "Add an example of JSON marshalling into javadoc comment."
Hideyuki Tai [Fri, 13 Jun 2014 11:50:37 +0000 (11:50 +0000)]
Merge "Add MAC mapping feature."
Hideyuki Tai [Fri, 13 Jun 2014 11:18:34 +0000 (11:18 +0000)]
Merge "Bug 1189: Suppress duplicated path fault log."
Sarath Babu Gurujala [Fri, 13 Jun 2014 07:11:16 +0000 (07:11 +0000)]
Merge "Modified implementation for ignoring unnecessary events from OVSDB plugin."
sameera [Wed, 11 Jun 2014 18:19:20 +0000 (23:49 +0530)]
Improve VTN Coordinator code to avoid some redundant code sections
Change-Id: I02a6d51f9e021d788377499289df6490be2f4ab0
Signed-off-by: sameera <sameera.k@hcl.com>
ananthip [Wed, 11 Jun 2014 10:18:32 +0000 (15:48 +0530)]
Modified implementation for ignoring unnecessary events from OVSDB plugin.
Change-Id: I511e32c2eba0e35879fcf503016585a5fdcdfc8e
Signed-off-by: ananthip <ananthip@hcl.com>
Shigeru Yasuda [Thu, 12 Jun 2014 13:45:49 +0000 (22:45 +0900)]
Add an example of JSON marshalling into javadoc comment.
Change-Id: Ic4a62f31f880c1875dcd81ebda001cf182a2c8c9
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Thu, 12 Jun 2014 12:12:21 +0000 (21:12 +0900)]
Add MAC mapping feature.
MAC mapping is virtual network mapping based on MAC address and VLAN ID.
It can associate one or more MAC addresses with a vBridge.
Note that VTN Coordinator does not support MAC mapping yet.
Other changes:
* API version of VTN Manager is changed to 2.
Change-Id: I98d1522753897595dc15ae494852d5ed3e5399f8
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Thu, 12 Jun 2014 01:03:43 +0000 (10:03 +0900)]
Bug 1189: Suppress duplicated path fault log.
An error log which indicates a path fault should not be recorded
if it is already detected.
Change-Id: Icdf81c0677742268b52146953ec69e34015c9c5f
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Wed, 11 Jun 2014 06:11:43 +0000 (15:11 +0900)]
Change VTN Manager version to 0.2.0 for Helium release.
Succeeding patches will change VTN Manager API. So I decided to change
VTN Manager version in advance.
Change-Id: I0d580002ed1c773d01468d9eb6a4d0006d64539e
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Tue, 10 Jun 2014 02:33:25 +0000 (11:33 +0900)]
Bug 1177: Change "unix_socket_directory" paramter for PostgreSQL 9.3.
"unix_socket_directory" parameter in postgresql.conf was renamed to
"unix_socket_directories" in PostgreSQL 9.3. This patch makes db_setup
script define "unix_socket_directories" parameter to specify UNIX socket
directory when it detects PostgreSQL 9.3 or later.
Change-Id: I3dda6064eaadfc24baee87da12ab0ef8675c78f6
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Tue, 10 Jun 2014 02:24:25 +0000 (11:24 +0900)]
Fixed typo in error message.
Change-Id: I7245641ab6274781347545fd9f0338de92ed3385
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Fri, 6 Jun 2014 00:25:16 +0000 (09:25 +0900)]
Fix for VTN Coordinator UT failure.
* Enlarge buffer to store absolute file path.
Change-Id: I16cfa80de944618a9237d249a0506c63c4f42921
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Thu, 5 Jun 2014 13:20:51 +0000 (13:20 +0000)]
Merge "Implementation for OVSDB-VTN Neutron Integration"
gvrangan [Mon, 14 Apr 2014 16:12:33 +0000 (09:12 -0700)]
Implementation for OVSDB-VTN Neutron Integration
* Will use the ovsdb services to create required
configuration on the OVS switch of OpenStack.
* Will Handle the Neutron Requests and create
portmapping to establish connectivity between hosts.
Change-Id: I3bbf4e99ab9a4a694ec1a9915229749dfb9dfa1f
Signed-off-by: gvrangan <venkatrangang@hcl.com>
Shigeru Yasuda [Tue, 3 Jun 2014 12:34:48 +0000 (21:34 +0900)]
Update VTN Coordinator sources to the latest version.
VTN Coordinator version is changed to 5.1.1.0-SNAPSHOT.
Change-Id: I198631ea162e562a50fd08245ca5ec4632fee0a5
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Tue, 3 Jun 2014 10:26:17 +0000 (10:26 +0000)]
Merge "Update VTN Coordinator README for Helium release."
Shigeru Yasuda [Mon, 2 Jun 2014 08:21:28 +0000 (17:21 +0900)]
Update VTN Coordinator README for Helium release.
* Tomcat server instance is installed by VTN Coordinator, and
it is started by vtn_start.
* Tomcat server port was changed to 8083/tcp.
* Version number in README is controlled by pom.xml.
* VTN Coordinator API version was changed to V1.1.
Change-Id: Id5e28158cfc164e337a0445632148014f6b8a649
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Mon, 2 Jun 2014 06:18:50 +0000 (15:18 +0900)]
Sync third-party modules to the controller.
* Jackson 2.3.2
* JaCoCo 0.6.2.
201302030002
Other changes:
* Fixed invalid JaCoCo configuration.
Change-Id: I86fbb90b9b875242198ad1c31588e999643598b2
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Thu, 29 May 2014 04:47:45 +0000 (04:47 +0000)]
Merge "Bug 1068: Fixed ODC driver controller issue during commit"
susant [Mon, 26 May 2014 17:08:18 +0000 (22:38 +0530)]
Bug 1068: Fixed ODC driver controller issue during commit
* This patch fixes ODC driver controller issue during simultaneous
commit of physical and virtual configuration
Change-Id: I0a739e593aad046c48aaffa1bc2c78e9a5f8ba91
Signed-off-by: susant <susantchandra.s@hcl.com>
Shigeru Yasuda [Wed, 28 May 2014 10:44:33 +0000 (19:44 +0900)]
Don't record trace log for LLDP packet.
Change-Id: I6d7999cd56063ee86c855099e95866d6447a4f9c
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Wed, 28 May 2014 07:13:31 +0000 (16:13 +0900)]
Use snapshot version of controller artifacts.
Other changes:
* Upgrade maven plugins.
* maven-enunciate-plugin 1.28
* maven-bundle-plugin 2.4.0
* maven-dependency-plugin 2.8
* maven-clean-plugin 2.5
* Ignore configuration directory created by integration tests.
Change-Id: I244805d1de0ffb932aeade518bc0a3fc8c935021
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Wed, 21 May 2014 06:59:17 +0000 (15:59 +0900)]
Improve integration tests which run with PaxExam.
* Don't use @BeforeClass and @AfterClass.
* Run all tests in one test container in order to shorten test time.
Change-Id: I09618b99c409261e6ccf17ecc8773576f90c851a
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Wed, 21 May 2014 05:19:24 +0000 (14:19 +0900)]
Bug 1058: Eliminate query parameters from the Location header.
Some REST APIs of the VTN Manager copy the request URI into the Location
response-header. But query parameters in the request URI should not be
copied.
Change-Id: I0ed50c9e4089f896295443b1a73dde87ffdf0321
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Tue, 20 May 2014 10:37:29 +0000 (19:37 +0900)]
Bug 1043: Create "integrationtests" build profile.
Tests which take long time will be skipped unless "integrationtests"
profile is active.
Change-Id: I353c8a695fcc8145ad9cbaaf6a5c4c9422759ce0
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Wed, 14 May 2014 05:01:05 +0000 (05:01 +0000)]
Merge "Bug 1000: Fixed unstable tests in manager.integrationtest."
Shigeru Yasuda [Tue, 13 May 2014 16:57:11 +0000 (01:57 +0900)]
Bug 1000: Fixed unstable tests in manager.integrationtest.
* testIListenDataPacket()
* Fixed invalid initial value of count down latch used to wait for
completion of flow installation.
* Need more time to wait for flow entries.
* Ensure that required edge is established before test.
* testIListenRoutingUpdates()
* Check vBridge state using VTN manager listener.
* FlowProgrammerService.mapNF needs to be synchronized.
Change-Id: I89fc5763924ed4216ec81a7b1676984c433c60de
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Tue, 13 May 2014 10:34:01 +0000 (19:34 +0900)]
Bug 996: Fixed unstable unit test.
This patch fixes failure of manager.implementation UT caused by
too short event timeout.
Change-Id: I857ba986b41aa682bdfbd21505a0d0898ec59ba2
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Thu, 8 May 2014 06:28:44 +0000 (15:28 +0900)]
Bug 975: Eliminate the use of obsolete JSON-C function.
json_object_object_get() in JSON-C library is obsolete.
json_object_object_get_ex() should be used instead.
Change-Id: I902b80df6a68f3e92f4b2511e29dfc24e2e49f3f
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
kamatchi [Thu, 24 Apr 2014 06:17:38 +0000 (11:47 +0530)]
Fix bug 711 to solve the clearing cache issue in VTN coordinator during audit
Change-Id: Ia06885e0bf6059ff7931641f76224de272189863
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
Sarath Babu Gurujala [Mon, 5 May 2014 06:54:01 +0000 (06:54 +0000)]
Merge "Add functional test for physical read audit scenario"
Shigeru Yasuda [Mon, 28 Apr 2014 06:46:33 +0000 (15:46 +0900)]
Bug 857: Add workaround for a bug of old Open vSwitch.
Old version of OVS has a bug that it may clear OFPFW_DL_VLAN_PCP bit in
FLOW_REMOVED message incorrectly. This workaround tries to remove the SAL
Flow from the flow database after eliminating DL_VLAN_PR match field if
FLOW_REMOVED handler receives a SAL Flow that has DL_VLAN_PR match field.
This should not cause any problem because current VTN Manager never uses
DL_VLAN_PR match field.
Change-Id: I700c61a51459aa86609dde9d5b192a07bb0965d9
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Hideyuki Tai [Tue, 22 Apr 2014 08:09:27 +0000 (08:09 +0000)]
Merge "Fixed unstable test."
Hideyuki Tai [Sun, 20 Apr 2014 22:33:14 +0000 (22:33 +0000)]
Merge "Refactor VTN Manager."
sameera [Thu, 17 Apr 2014 16:18:16 +0000 (21:48 +0530)]
Fix bug 712 for switch description null check in VTN coordinator
Change-Id: Id0e2cc3e7b534afd62ff4de60414256de995995e
Signed-off-by: sameera <sameera.k@hcl.com>
Sarath Babu Gurujala [Wed, 16 Apr 2014 14:02:04 +0000 (14:02 +0000)]
Merge "Fix bug 673 for read physical configuration failure in VTN coordinator during opendaylight reboot"
Sarath Babu Gurujala [Wed, 16 Apr 2014 13:58:39 +0000 (13:58 +0000)]
Merge "Fix bug 438 to solve the failure in getting physical link information"
Shigeru Yasuda [Mon, 14 Apr 2014 15:27:59 +0000 (00:27 +0900)]
Fixed unstable test.
This patch fixes bug for unit test that the result was affected by
the order of test cases.
Change-Id: I2fa948882e7204e3cfd186c33490c13b8b49d9fc
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Fri, 11 Apr 2014 12:10:28 +0000 (21:10 +0900)]
Refactor VTN Manager.
* Associate MAC address with virtual mapping which maps the address
in the MAC address table.
* Associate ingress and egress flow entries with virtual mappings
which map them in the flow database.
* Enable to get source and destination hosts configured in flow entries
for internal use.
* Optimize the way to purge obsolete flow entries and MAC addresses.
* Scan TopoEdgeUpdate list only one time when an edge update event
is received.
Change-Id: Idecfe40d949616523f7036d72641afed3a7ecb8e
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Fri, 11 Apr 2014 11:59:27 +0000 (20:59 +0900)]
Suppress unwanted log messages while running tests.
Change-Id: Ia1e38f3b6d5e4880eb75c379f797cfbbcc697bba
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
kamatchi [Sat, 12 Apr 2014 20:55:28 +0000 (02:25 +0530)]
Add functional test for physical read audit scenario
Change-Id: I7f0ad88f5968bd98d9e399ef1bbe408ce0aa0cc4
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
Shigeru Yasuda [Thu, 10 Apr 2014 16:07:58 +0000 (01:07 +0900)]
Fixed incorrect log message which indicates failure of flow uninstallation.
Change-Id: I728ac6ec77acd13f1becdf12f03e39b8af641e77
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Thu, 10 Apr 2014 15:19:48 +0000 (00:19 +0900)]
Fixed incorrect javadoc comment.
Change-Id: I89605ddaec328f26d7aeabb411931961b9ade471
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
kamatchi [Thu, 20 Mar 2014 06:07:35 +0000 (11:37 +0530)]
Fix bug 673 for read physical configuration failure in VTN coordinator during opendaylight reboot
Change-Id: I5221f23dae6e1c111dc388616340e225640d8356
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
Hideyuki Tai [Thu, 10 Apr 2014 05:18:17 +0000 (05:18 +0000)]
Merge "ArpHandler emulator: Abolish IPv4 forwarding."
Shigeru Yasuda [Mon, 7 Apr 2014 16:00:28 +0000 (01:00 +0900)]
Fixed unstable tests.
* VTNManagerImplDisableNodesTest.testDisabledNodeAfterTimeout():
Need more time to start PACKET_IN service on a new node.
* VTNManagerImplClusterTest:
Test should not fail even if cluster event is removed by timer thread.
Additional changes:
* VTNManagerImpl: Use putEvent() to catch unexpected exception.
Change-Id: I2343417d994920ddce911d7e460fb436d7914b2e
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Mon, 7 Apr 2014 09:30:25 +0000 (18:30 +0900)]
ArpHandler emulator: Abolish IPv4 forwarding.
The base controller has moved IPv4 forwarding logic from arphandler to
simpleforwarding. So it also should be removed from ArpHandler emulator.
Change-Id: I8c58a3a0cfa4ee37d1060c8c1084bb1d73a08ae2
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Fri, 4 Apr 2014 08:32:47 +0000 (17:32 +0900)]
Improved logging.
* Don't record FLOW_MOD failure if the target node does not exist.
* Record inventory change as informational log.
Change-Id: Ic7dab1f2e1b9dcd800ab70c62c15880e5c55f7a2
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Thu, 3 Apr 2014 18:51:08 +0000 (03:51 +0900)]
Implement Comparable to MacVlan and MapReference classes.
Change-Id: Ifcc3addbb3e3a42336805e75c08bbed4b18388f9
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Thu, 3 Apr 2014 14:24:19 +0000 (23:24 +0900)]
Added VTenantPath.contains(VTenantPath).
VTenantPath.contains(VTenantPath) determines whether the virtual node
associated with the VTenantPath instance contains the virtual node
specified by another VTenantPath instance.
Change-Id: Ic1dbb1e6935d20ddea8d32e270e3ebe59a09797d
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
Shigeru Yasuda [Fri, 28 Mar 2014 13:43:15 +0000 (22:43 +0900)]
Allow unprivileged user to run VTN Coordinator.
* A user who runs VTN Coordinator needs to have write permission
for /usr/local/vtn/var directory.
* db_setup command installs ownership of VTN Coordinator.
Only a user who executed db_setup command can execute VTN commands,
vtn_start, vtn_stop, and db_setup.
* "db_setup -c" reset VTN Coordinator environment to initial state.
* All data and log files are erased.
Change-Id: I366c14559bafe6bd0284815824bac7871721040b
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
kamatchi [Thu, 27 Mar 2014 01:05:02 +0000 (06:35 +0530)]
Fix bug 438 to solve the failure in getting physical link information
Change-Id: I4aa740d19ccc43dde42dcb8abb5613f65d242771
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
Shigeru Yasuda [Wed, 26 Mar 2014 12:43:39 +0000 (21:43 +0900)]
Terminate Tomcat instance when uncd crashes.
Change-Id: I464a39416b18aabb4079675ff245bcad5d0a253e
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>