vtn.git
11 years agoFix IT failure due to switchmanager change. 75/3475/1
Takayuki Kawagishi [Thu, 5 Dec 2013 03:05:36 +0000 (12:05 +0900)]
Fix IT failure due to switchmanager change.

Change-Id: Ieb985c268cb00f80f4b27b4edd21376ec99431fe
Signed-off-by: Takayuki Kawagishi <kawagishi-takayuki@mxj.nes.nec.co.jp>
11 years agoRemove flow entries for a newly found MAC address. 56/3456/1
Shigeru Yasuda [Wed, 4 Dec 2013 16:10:56 +0000 (01:10 +0900)]
Remove flow entries for a newly found MAC address.

If a host is moved without changing OF switch port state, obsolte flow
entry for the host may remain. That's why flow entries related to a MAC
address should be removed when it is added to the MAC address table.

Additional changes:

  * MacVlan.hashCode() should use both MAC address and VLAN ID.
  * Fix incorrect Javadoc comments in IT tests.

Change-Id: If4847ea78fc42811e68df2dd8648b1db1dbe4362
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoAdd integration test cases for VTN Manager 94/3394/3
Taiki Kondo [Tue, 3 Dec 2013 11:48:52 +0000 (20:48 +0900)]
Add integration test cases for VTN Manager

* Add cases for PortMap, VlanMap, and MAC Address table
* Add cases for findHost and probeHost
* Add tests for adding flows to OpenFlow switch
* Add tests for sending packets from controller

This patch includes stub emulating protocol plugin to test above things.

Change-Id: Ieb0f4515aa8f546515a073cde07f3dd9c08be8ea
Signed-off-by: Taiki Kondo <kondo-taiki@mxt.nes.nec.co.jp>
11 years agoRemove cached network configuration when port mapping is established. 26/3426/3
Shigeru Yasuda [Wed, 4 Dec 2013 08:46:10 +0000 (17:46 +0900)]
Remove cached network configuration when port mapping is established.

Port mapping always precedes VLAN mapping. It means that port mapping may
overlaps another network to the network mapped by VLAN mapping.
So MAC addresses and flow entries relevant to new port mapping must be
removed when it is established.

Additional changes:

  * VTNFlowDatabase.removeFlows(VTNManagerImpl, VTenantPath) must be
    synchronized.
  * Fix IT failure due to clustering.services change.

Change-Id: If252847f92523c4b6c5f3aaa415117364025094e
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Functional Tests for vlan-map and additional test cases for port-map"
Sarath Babu Gurujala [Tue, 3 Dec 2013 11:51:22 +0000 (11:51 +0000)]
Merge "Functional Tests for vlan-map and additional test cases for port-map"

11 years agoMerge "Tests for restjsonutil module for VlanMap Changes"
Sarath Babu Gurujala [Fri, 29 Nov 2013 11:20:34 +0000 (11:20 +0000)]
Merge "Tests for restjsonutil module for VlanMap Changes"

11 years agoMerge "ArpHandler emulator: Don't forward IPv4 packet if outgoing port is down."
Tomohisa Yamabe [Fri, 29 Nov 2013 11:16:28 +0000 (11:16 +0000)]
Merge "ArpHandler emulator: Don't forward IPv4 packet if outgoing port is down."

11 years agoArpHandler emulator: Don't forward IPv4 packet if outgoing port is down. 32/3232/1
Shigeru Yasuda [Fri, 29 Nov 2013 04:28:22 +0000 (13:28 +0900)]
ArpHandler emulator: Don't forward IPv4 packet if outgoing port is down.

Change-Id: Ifbcd56b0f3f95b3991508469b7e8da9ac5081206
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoTests for restjsonutil module for VlanMap Changes 89/3189/2
sameera [Thu, 28 Nov 2013 16:54:08 +0000 (22:24 +0530)]
Tests for restjsonutil module for VlanMap Changes

    * Modified Makefile to add http client test source file

Change-Id: I89bfc3068d0290ec3a66de1fb2839830dd71923f
Signed-off-by: sameera <sameera.k@hcl.com>
11 years agoMerge "Support for Vlan-Map in VTN Coordinator"
Sarath Babu Gurujala [Thu, 28 Nov 2013 08:28:28 +0000 (08:28 +0000)]
Merge "Support for Vlan-Map in VTN Coordinator"

11 years agoFixed unit test for VTNManager. 65/3165/1
Takayuki Kawagishi [Thu, 28 Nov 2013 06:51:05 +0000 (15:51 +0900)]
Fixed unit test for VTNManager.

* Added test cases for the following patch.
  https://git.opendaylight.org/gerrit/#/c/2937/
* Added test cases for VNodeEvents and some cases.
* Merged duplicate utility methods and classes to common file.
* Fixed and Added comments.
* Removed unused imports and variables.

Change-Id: Idce5be39066542ebceb2860feddaa4e5c8dae7ae
Signed-off-by: Takayuki Kawagishi <kawagishi-takayuki@mxj.nes.nec.co.jp>
11 years agoFixed IT failure due to hosttracker change. 01/3101/1
Shigeru Yasuda [Tue, 26 Nov 2013 14:18:16 +0000 (23:18 +0900)]
Fixed IT failure due to hosttracker change.

Change-Id: I4608ccbcad5ba229aee863049d5eaa6b94e370fe
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoSupport for Vlan-Map in VTN Coordinator 31/3031/6
kamatchi [Sat, 23 Nov 2013 16:02:56 +0000 (21:32 +0530)]
Support for Vlan-Map in VTN Coordinator

Change-Id: I643d9a4b4d3b9fc240119ba8627eb90951f5bc6e
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
11 years agoMerge "Tests for TCLIB(Transaction Handling) Module in VTN Coordinator"
Sarath Babu Gurujala [Tue, 26 Nov 2013 05:40:53 +0000 (05:40 +0000)]
Merge "Tests for TCLIB(Transaction Handling) Module in VTN Coordinator"

11 years agoFunctional Tests for vlan-map and additional test cases for port-map 58/3058/4
balakrishnan [Sat, 23 Nov 2013 16:12:14 +0000 (21:42 +0530)]
Functional Tests for vlan-map and additional test cases for port-map

Change-Id: I2d9b870af512cf9c6e269769705c551d0cc2b1a9
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoMerge "Enable to specify JDK home used for VTN Coordinator build."
Hideyuki Tai [Tue, 26 Nov 2013 05:27:37 +0000 (05:27 +0000)]
Merge "Enable to specify JDK home used for VTN Coordinator build."

11 years agoMerge "Fix Bug in tclib for parellel Audit/Session Operations"
Sarath Babu Gurujala [Tue, 26 Nov 2013 04:29:07 +0000 (04:29 +0000)]
Merge "Fix Bug in tclib for parellel Audit/Session Operations"

11 years agoMerge "Tests for Transaction Coordinator Module"
Sarath Babu Gurujala [Tue, 26 Nov 2013 02:07:54 +0000 (02:07 +0000)]
Merge "Tests for Transaction Coordinator Module"

11 years agoTests for VlanMap Changes in OdcDriver Module 29/3129/4
susant [Wed, 27 Nov 2013 13:57:56 +0000 (09:57 -0400)]
Tests for VlanMap Changes in OdcDriver Module

Change-Id: I8220b1d9b7c5e2c236657c8b1b27893c41002d12
Signed-off-by: susant <susantchandra.s@hcl.com>
11 years agoEnable to specify JDK home used for VTN Coordinator build. 63/3063/1
Shigeru Yasuda [Mon, 25 Nov 2013 12:57:17 +0000 (21:57 +0900)]
Enable to specify JDK home used for VTN Coordinator build.

  1. If "vtn.build.java.home" property is defined, its value is used as
     JDK home directory.
  2. If JAVA_HOME environment variable is defined, its value is used as
     JDK home directory.
  3. Otherwise JDK home directory is auto-detected.

Change-Id: I6b0b9e80e19aca0e1bdea998d8d8be68685323c0
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Updated additional library dependencies for Coordinator build to README file."
Sarath Babu Gurujala [Mon, 25 Nov 2013 01:20:08 +0000 (01:20 +0000)]
Merge "Updated additional library dependencies for Coordinator build to README file."

11 years agoMerge "Define property that specifies packages to be excluded from javadoc."
Hideyuki Tai [Sun, 24 Nov 2013 23:21:17 +0000 (23:21 +0000)]
Merge "Define property that specifies packages to be excluded from javadoc."

11 years agoTests for TCLIB(Transaction Handling) Module in VTN Coordinator 06/3006/1
gvrangan [Fri, 22 Nov 2013 14:29:43 +0000 (10:29 -0400)]
Tests for TCLIB(Transaction Handling) Module in VTN Coordinator

Change-Id: I07d6173d5e1545e5812e8004d50a1cd2d921acdd
Signed-off-by: gvrangan <venkatrangang@hcl.com>
11 years agoFix Bug in tclib for parellel Audit/Session Operations 04/3004/1
gvrangan [Fri, 22 Nov 2013 14:19:42 +0000 (10:19 -0400)]
Fix Bug in tclib for parellel Audit/Session Operations

Change-Id: I57f830640de7de5d1497af92090fd924127d5b9b
Signed-off-by: gvrangan <venkatrangang@hcl.com>
11 years agoTests for Transaction Coordinator Module 03/3003/1
gvrangan [Fri, 22 Nov 2013 13:47:50 +0000 (09:47 -0400)]
Tests for Transaction Coordinator Module

  * Fix Bug in tcmsg_commit.cc

Change-Id: Iaddc7350cd96317077f86fd6f02573243ef44c74
Signed-off-by: gvrangan <venkatrangang@hcl.com>
11 years agoUpdated additional library dependencies for Coordinator build to README file. 74/2974/1
gvrangan [Fri, 22 Nov 2013 11:04:18 +0000 (16:34 +0530)]
Updated additional library dependencies for Coordinator build to README file.

Change-Id: I513837f642cfb2d2d5dc56cd7dcbc953689b2de5
Signed-off-by: gvrangan <venkatrangang@hcl.com>
11 years agoDefine property that specifies packages to be excluded from javadoc. 51/2951/1
Shigeru Yasuda [Thu, 21 Nov 2013 14:25:36 +0000 (23:25 +0900)]
Define property that specifies packages to be excluded from javadoc.

"javadoc.exclude" property value is passed to maven-javadoc-plugin as
"excludePackageNames" value on both "site" and "javadoc" goals.

Change-Id: If98837799cf0179075e08e83969979b54c76589c
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoUpdate VTN Manager Installation Guide in README 43/2943/1
Hideyuki Tai [Thu, 21 Nov 2013 13:43:07 +0000 (08:43 -0500)]
Update VTN Manager Installation Guide in README

Change-Id: I7e91c141a5ddbd9bbf389e98aaae528f8872aa60
Signed-off-by: Hideyuki Tai <h-tai@cd.jp.nec.com>
11 years agoFixed incorrect Javadoc links in unit test sources. 38/2938/1
Shigeru Yasuda [Thu, 21 Nov 2013 12:17:20 +0000 (21:17 +0900)]
Fixed incorrect Javadoc links in unit test sources.

Change-Id: I0195ea504d3b684ef91316adf7e5ec9cc22a6308
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoLoad the VTN configuration into cluster cache atomically. 37/2937/1
Shigeru Yasuda [Thu, 21 Nov 2013 11:50:07 +0000 (20:50 +0900)]
Load the VTN configuration into cluster cache atomically.

  * If one controller in the cluster is loading the VTN configuration into
    cluster cache, other controllers should wait for completion.
    In that case VTN Manager should ignore configuration in the local
    filesystem.
  * The VTN configuration should be saved to files if it is loaded by
    another controller in the cluster.

Change-Id: I9ebcc26571076eef950b21ed9eba5cecb8e50093
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoAdded and Fixed unit test cases for VTNManager to improve test coverage. 27/2927/1
Takayuki Kawagishi [Thu, 21 Nov 2013 07:30:09 +0000 (16:30 +0900)]
Added and Fixed unit test cases for VTNManager to improve test coverage.

* added test cases for clustering function.
* added test cases for ArpHandler.
* fixed comments.

Change-Id: Ia9e6a8e4486814988754836c848e26a769e9f2b6
Signed-off-by: Takayuki Kawagishi <kawagishi-takayuki@mxj.nes.nec.co.jp>
11 years agoDon't destroy cluster caches if cluster service is not available. 67/2867/1
Shigeru Yasuda [Tue, 19 Nov 2013 14:07:11 +0000 (23:07 +0900)]
Don't destroy cluster caches if cluster service is not available.

Change-Id: I36d6744a908d2de81e0ebfb42f09a4448d73506c
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoVlanMapImpl.transmit(): Check existence of mapped node connector correctly. 52/2852/1
Shigeru Yasuda [Tue, 19 Nov 2013 07:22:04 +0000 (16:22 +0900)]
VlanMapImpl.transmit(): Check existence of mapped node connector correctly.

getPorts() never returns null, and it returns an empty set if no port is
mapped to the VLAN mapping.

Change-Id: Idce2f6ac0f2b2f66f20d0b92e234312f7968612b
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFix typo in PortMap.java 20/2820/1
Hideyuki [Mon, 18 Nov 2013 11:43:03 +0000 (06:43 -0500)]
Fix typo in PortMap.java

Change-Id: Idbf62bfa7e31ec9afb33517715e530f00d5ed56b
Signed-off-by: Hideyuki Tai <h-tai@cd.jp.nec.com>
11 years agoFixed sonar reported issues in VTN neutron code. 07/2807/1
Sarath Babu Gurujala [Mon, 18 Nov 2013 04:06:19 +0000 (13:06 +0900)]
Fixed sonar reported issues in VTN neutron code.

Change-Id: Idd3492fc39a8133bb440395cd8d90cd47535d706
Signed-off-by: Sarath Babu Gurujala <sarathbg@hcl.com>
11 years agoMerge "FT Scripts for testing the VTN Coordinator Interface"
Sarath Babu Gurujala [Mon, 18 Nov 2013 02:37:48 +0000 (02:37 +0000)]
Merge "FT Scripts for testing the VTN Coordinator Interface"

11 years agoMake vtndrvintf UT stable. 65/2765/1
Shigeru Yasuda [Fri, 15 Nov 2013 08:24:16 +0000 (17:24 +0900)]
Make vtndrvintf UT stable.

GetMultipleEntrySuccess test is unstable because it passes uninitialized
local variable (ret1) to EXPECT_EQ().

In addition, so many tests in controller_fw_ut.cc don't check the results.
So I added EXPECT_EQ() macros to check the results.

Change-Id: I617a2bf9a4d857bde64806dea6b3ca9d80f1e22d
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoLink json-c library using make variables provided by build environment. 62/2762/1
Shigeru Yasuda [Fri, 15 Nov 2013 06:42:23 +0000 (15:42 +0900)]
Link json-c library using make variables provided by build environment.

See below URI for more details:

  https://git.opendaylight.org/gerrit/2734

Change-Id: I2a9315a80f8bdedd24102b6ad3ab605bc4efccbb
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Tests for controller component of vtndrvintf module in ODC Driver"
Sarath Babu Gurujala [Fri, 15 Nov 2013 04:01:16 +0000 (04:01 +0000)]
Merge "Tests for controller component of vtndrvintf module in ODC Driver"

11 years agoMerge "Fixed VTN coordinator build failure with the latest json-c library."
Sarath Babu Gurujala [Fri, 15 Nov 2013 02:42:47 +0000 (02:42 +0000)]
Merge "Fixed VTN coordinator build failure with the latest json-c library."

11 years agoTests for controller component of vtndrvintf module in ODC Driver 41/2741/3
balakrishnan [Thu, 14 Nov 2013 07:04:48 +0000 (12:34 +0530)]
Tests for controller component of vtndrvintf module in ODC Driver

Change-Id: I34f004be7191e4a17a5a0adfa86369bd8e549f3f
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoFT Scripts for testing the VTN Coordinator Interface 07/2707/4
gvrangan [Wed, 13 Nov 2013 19:47:19 +0000 (01:17 +0530)]
FT Scripts for testing the VTN Coordinator Interface

  * Tests for Controller Operations
  * Tests for VTN/VBR Operations on single controller
  * Tests for VBRIF has been added

Change-Id: I20153cace6c9b025e55c67b49c13e532e5a79ea9
Signed-off-by: gvrangan <venkatrangang@hcl.com>
11 years agoTests for odcdriver module in ODC Driver Daemon 78/2678/4
susant [Wed, 13 Nov 2013 07:32:55 +0000 (13:02 +0530)]
Tests for odcdriver module in ODC Driver Daemon

Change-Id: Ied72267f438a53afda2ae78835b6b08136407226
Signed-off-by: susant <susantchandra.s@hcl.com>
11 years agoFixed VTN coordinator build failure with the latest json-c library. 34/2734/1
Shigeru Yasuda [Thu, 14 Nov 2013 13:04:27 +0000 (22:04 +0900)]
Fixed VTN coordinator build failure with the latest json-c library.

The name of json-c library was changed to libjson-c as of version 0.11.
This patch detects compiler and linker flags required to link json-c library,
and defines them as makefile variables.

If you want to use libjson-c in your component, put the following lines
to your Makefile:

  EXTRA_CPPFLAGS          = $(JSON_C_CPPFLAGS)
  EXTRA_LIBDIRS           = $(JSON_C_LIBDIRS)
  EXTRA_LDLIBS            = $(JSON_C_LDFLAGS)
  EXTRA_RUNTIME_DIR       = $(JSON_C_RUNPATH)

In addition, libcurl is also detected by configure script.
The following lines need to be added to your Makefile to link libcurl:

  EXTRA_CPPFLAGS          = $(LIBCURL_CPPFLAGS)
  EXTRA_LIBDIRS           = $(LIBCURL_LIBDIRS)
  EXTRA_LDLIBS            = $(LIBCURL_LDFLAGS)
  EXTRA_RUNTIME_DIR       = $(LIBCURL_RUNPATH)

Note that this patch requires pkg-config command in build host.

Change-Id: Ie1a0352c7db598160269c6045b3ede04e57364eb
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoUpdated vlanmap code to use new getVlanMap API supported by VTN Manager 29/2729/1
Sarath Babu Gurujala [Thu, 14 Nov 2013 08:26:00 +0000 (17:26 +0900)]
Updated vlanmap code to use new getVlanMap API supported by VTN Manager

Change-Id: I5368f23344cf0dd2fbd2581af2cc32a82dbcc077
Signed-off-by: Sarath Babu Gurujala <sarathbg@hcl.com>
11 years agoMerge "Tests for vtncacheutil module for ODC Driver Daemon"
Sarath Babu Gurujala [Thu, 14 Nov 2013 03:18:43 +0000 (03:18 +0000)]
Merge "Tests for vtncacheutil module for ODC Driver Daemon"

11 years agoMerge "ArpHandler emulator: Check for valid path on IPv4 packet forwarding."
Hideyuki Tai [Thu, 14 Nov 2013 02:57:03 +0000 (02:57 +0000)]
Merge "ArpHandler emulator: Check for valid path on IPv4 packet forwarding."

11 years agoMerge "Tests for vtndrvintf module in ODC driver daemon"
Sarath Babu Gurujala [Thu, 14 Nov 2013 02:06:03 +0000 (02:06 +0000)]
Merge "Tests for vtndrvintf module in ODC driver daemon"

11 years agoMerge "Tests for restjsonutil Module in ODC driver daemon"
Sarath Babu Gurujala [Thu, 14 Nov 2013 00:49:38 +0000 (00:49 +0000)]
Merge "Tests for restjsonutil Module in ODC driver daemon"

11 years agoArpHandler emulator: Check for valid path on IPv4 packet forwarding. 06/2706/1
Shigeru Yasuda [Wed, 13 Nov 2013 14:58:06 +0000 (23:58 +0900)]
ArpHandler emulator: Check for valid path on IPv4 packet forwarding.

ArpHandler emulator will forward IPv4 packet only if it is reachable to
the destination host.

Change-Id: I2fdb0c8af7d185688e5da1a68af901ae6f3e2349
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoTests for vtncacheutil module for ODC Driver Daemon 76/2676/2
surya.s [Tue, 12 Nov 2013 22:11:21 +0000 (03:41 +0530)]
Tests for vtncacheutil module for ODC Driver Daemon

Change-Id: Iad4bb1b9aeea032fb0e7e7371904a8ec535ec341
Signed-off-by: surya.s <surya.s@hcl.com>
11 years agoTests for vtndrvintf module in ODC driver daemon 72/2672/3
balakrishnan [Wed, 13 Nov 2013 04:15:27 +0000 (09:45 +0530)]
Tests for vtndrvintf module in ODC driver daemon

  * Test for Handling Message from platform
  * Test for driver method invocation

Change-Id: I633584c433827aa4ab92a29439ef82bbabb171c6
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoTests for restjsonutil Module in ODC driver daemon 74/2674/2
balakrishnan [Wed, 13 Nov 2013 05:44:10 +0000 (11:14 +0530)]
Tests for restjsonutil Module in ODC driver daemon

Change-Id: Icd5d4670b58242c0f9fd17e8e60fc542fb56c79f
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoFixed incorrect links in Javadoc comments. 01/2701/1
Shigeru Yasuda [Wed, 13 Nov 2013 13:11:28 +0000 (22:11 +0900)]
Fixed incorrect links in Javadoc comments.

Change-Id: Ib7ff43f9119404f3a6e904a78db859ee2bd59c52
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoProvide new API to search for a VLAN mapping by its configuration. 94/2694/1
Shigeru Yasuda [Wed, 13 Nov 2013 10:59:28 +0000 (19:59 +0900)]
Provide new API to search for a VLAN mapping by its configuration.

  IVTNManager.getVlanMap(VBridgePath, VlanMapConfig)
    Search for a VLAN mapping information by the specified pair of
    vBridge path and VLAN mapping configuration.

The above method can be invoked via NB API by appending
"/vlanmapsearch/byconf" to an URI associated with a vBridge.

Change-Id: Idfd47ffee838aa691ef6953a293624a4ca22d8cb
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoAdd unit tests for manager.neutron bundle 87/2687/1
Hideyuki [Wed, 13 Nov 2013 07:48:45 +0000 (02:48 -0500)]
Add unit tests for manager.neutron bundle

Change-Id: Ibfae2b1efe5297c4211c76dc55530f115faac8d4
Signed-off-by: Hideyuki <h-tai@cd.jp.nec.com>
11 years agoOpenStack Neutron API support for VTN Manager. 85/2685/2
Sarath Babu Gurujala [Wed, 13 Nov 2013 05:38:29 +0000 (14:38 +0900)]
OpenStack Neutron API support for VTN Manager.

Change-Id: I99bd0c1fa2bc763fafe1671c251fca2a168b7b28
Signed-off-by: Sarath Babu Gurujala <sarathbg@hcl.com>
11 years agoAdded unit test codes for VTNManager. 49/2649/5
Takayuki Kawagishi [Tue, 12 Nov 2013 09:31:50 +0000 (18:31 +0900)]
Added unit test codes for VTNManager.

* added unit test relevant to ClusterEvent.

Change-Id: Ie1d181fdf294a31217824f06c4947085d92c66b2
Signed-off-by: Takayuki Kawagishi <kawagishi-takayuki@mxj.nes.nec.co.jp>
11 years agoMerge "Add test cases for integration test of VTN Manager."
Takayuki Kawagishi [Tue, 12 Nov 2013 11:45:24 +0000 (11:45 +0000)]
Merge "Add test cases for integration test of VTN Manager."

11 years agoAdd test cases for integration test of VTN Manager. 58/2658/1
Taiki Kondo [Tue, 12 Nov 2013 11:04:05 +0000 (20:04 +0900)]
Add test cases for integration test of VTN Manager.

* Add test cases of invalid values for VTN, VBridge, and VBridge Interface names.

Signed-off-by: Taiki Kondo <kondo-taiki@mxt.nes.nec.co.jp>
11 years agoImprovement to ODC Driver Code 21/2621/1
gvrangan [Mon, 11 Nov 2013 23:45:40 +0000 (05:15 +0530)]
Improvement to ODC Driver Code

   * Additional code review comments addressed
   * Fixes for bugs identified in testing

Change-Id: I202735309218aa83c34ce4a06b22d60cf1687a68
Signed-off-by: gvrangan <venkatrangang@hcl.com>
11 years agoDon't filter out non-OF packet if there is no VTN. 55/2555/1
Shigeru Yasuda [Fri, 8 Nov 2013 14:16:59 +0000 (23:16 +0900)]
Don't filter out non-OF packet if there is no VTN.

In that case all received packets need to be passed to ArpHandler emulator.

Change-Id: I6d4fcf695bdc181c46bcf8120760c5aacd2ad75d
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoArpHandler emulator: Forward packets to known hosts as the controller does. 18/2518/1
Shigeru Yasuda [Thu, 7 Nov 2013 17:07:26 +0000 (02:07 +0900)]
ArpHandler emulator: Forward packets to known hosts as the controller does.

Additional changes:

  * Use NetUtils.getBroadcastMACAddr() to create broadcast MAC address.
  * VTNExceptionTest: Fixed incorrect link doclet.

Change-Id: I83d3f7089402f4860f3f37d3c492b48cc0b5ba0a
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFixed unstable unit test for VTN Manager. 95/2495/2
Takayuki Kawagishi [Thu, 7 Nov 2013 12:42:58 +0000 (21:42 +0900)]
Fixed unstable unit test for VTN Manager.

installFlowEntry() and uninstallFlowEntry() in TestStub should be thread safety.

Change-Id: I122b6668e6a1ad007ca84e82fd5f5635822efe71
Signed-off-by: Takayuki Kawagishi <kawagishi-takayuki@mxj.nes.nec.co.jp>
11 years agoFixed a bug in FlowEventTest. 20/2420/1
Takayuki Kawagishi [Wed, 6 Nov 2013 03:43:16 +0000 (12:43 +0900)]
Fixed a bug in FlowEventTest.

Change-Id: I0ff216319805abb4f28d495e1e09c4ec6f5b5206
Signed-off-by: Takayuki Kawagishi <kawagishi-takayuki@mxj.nes.nec.co.jp>
11 years agoAdded unit test case for VTNManager. 14/2314/3
Takayuki Kawagishi [Fri, 1 Nov 2013 09:31:11 +0000 (18:31 +0900)]
Added unit test case for VTNManager.

* added new unit test codes of VTNException, ActionList, FlowAddEvent, FlowRemoveEvent, FlowModResultEvent, MacVlan, VTNFlow, VTNThreadData, VTNThreadPool.
* added test cases for MacAddressTable, PacketContext.
* removed unnecessary code which was commented out in VtnNorthboundIT.java.

Change-Id: If9e947ee103aaf712ee15d9cf4288cdf8b3794ad
Signed-off-by: Takayuki Kawagishi <kawagishi-takayuki@mxj.nes.nec.co.jp>
11 years agoExpand the size of global thread pool to 8. 81/2381/1
Shigeru Yasuda [Tue, 5 Nov 2013 11:03:59 +0000 (20:03 +0900)]
Expand the size of global thread pool to 8.

Change-Id: I53d53b3de708960ec7060b4b49ab79fb605f48e4
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMinor changes to common pom.xml. 77/2377/1
Shigeru Yasuda [Tue, 5 Nov 2013 09:13:13 +0000 (18:13 +0900)]
Minor changes to common pom.xml.

  * Use mirror repository provided by nexusproxy.
  * Specify 1.7 to java version explicitly.

Change-Id: Ia39e9db8ccae6521400750e547b31b756eff5e2c
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Monitoring interval for connection status of controller(VTN Manager) made...
Sarath Babu Gurujala [Wed, 30 Oct 2013 07:54:38 +0000 (07:54 +0000)]
Merge "Monitoring interval for connection status of controller(VTN Manager) made configurable"

11 years agoMonitoring interval for connection status of controller(VTN Manager) made configurable 15/2215/4
balakrishnan [Tue, 29 Oct 2013 12:24:28 +0000 (17:54 +0530)]
Monitoring interval for connection status of controller(VTN Manager) made configurable

Change-Id: Ic9886a53d93fda9ba341bd9cde3b0e1b8f3a5fbd
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoFixed VTNConfig and added test case for it. 67/2267/1
Takayuki Kawagishi [Wed, 30 Oct 2013 05:39:34 +0000 (14:39 +0900)]
Fixed VTNConfig and added test case for it.

* Close used file stream in VTNConfig.loadProperty().
* Add test cases for each configuration parameters.

Change-Id: I8de4c4108061ad31e079c813b972a6f5816e5cd2
Signed-off-by: Takayuki Kawagishi <kawagishi-takayuki@mxj.nes.nec.co.jp>
11 years agoMerge "Controller(VTN Manager) connection status notification from ODC Driver to...
Sarath Babu Gurujala [Wed, 30 Oct 2013 03:06:56 +0000 (03:06 +0000)]
Merge "Controller(VTN Manager) connection status notification from ODC Driver to UPPL"

11 years agoMerge "VTNThreadPool: Try to expand the pool if there is no idle thread."
Takayuki Kawagishi [Wed, 30 Oct 2013 02:40:45 +0000 (02:40 +0000)]
Merge "VTNThreadPool: Try to expand the pool if there is no idle thread."

11 years agoFix test failure due to changing version of ISwitchManager. 66/2266/1
Taiki Kondo [Wed, 30 Oct 2013 01:27:33 +0000 (10:27 +0900)]
Fix test failure due to changing version of ISwitchManager.

This patch fixes following issue.

* Test failure due to changing version of ISwitchManager,
  posted at following URI.
  https://git.opendaylight.org/gerrit/#/c/2143/

* Build failure due to added API above.

Signed-off-by: Taiki Kondo <kondo-taiki@mxt.nes.nec.co.jp>
11 years agoVTNThreadPool: Try to expand the pool if there is no idle thread. 40/2240/1
Shigeru Yasuda [Tue, 29 Oct 2013 11:57:23 +0000 (20:57 +0900)]
VTNThreadPool: Try to expand the pool if there is no idle thread.

execute() tries to expand the pool if the number of blocked threads is
less than or equal to the number of pending wake-up signals.

Change-Id: I0ce00c1442d5af1c9ea802da94787918eb105e0b
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoReturn 404 response if an invalid container name is specified to NB API. 26/2226/1
Shigeru Yasuda [Mon, 28 Oct 2013 17:23:47 +0000 (02:23 +0900)]
Return 404 response if an invalid container name is specified to NB API.

Change-Id: I06af9bcfc7704653b446088bd30ebac883c7aac7
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Added test cases of VTNNorthbound IT."
Taiki Kondo [Mon, 28 Oct 2013 10:42:03 +0000 (10:42 +0000)]
Merge "Added test cases of VTNNorthbound IT."

11 years agoAdded test cases of VTNNorthbound IT. 28/2128/4
Kasumi Takeshige [Thu, 24 Oct 2013 09:04:08 +0000 (18:04 +0900)]
Added test cases of VTNNorthbound IT.

Test cases which was not implemented before is added.

Change-Id: I6345955307ebe66294e37e75deb944aefbc6984f
Signed-off-by: Kasumi Takeshige <takeshige-kasumi@mxk.nes.nec.co.jp>
11 years agoMinor fix for the previous uppl patch. 04/2204/1
Shigeru Yasuda [Mon, 28 Oct 2013 07:35:33 +0000 (16:35 +0900)]
Minor fix for the previous uppl patch.

  PhyUtil::FillDbSchema()
    Share the code for DATATYPE_IPV6 and DATATYPE_UINT8_ARRAY_16.

Change-Id: Ia84509affbbdf02efccefce63280005aab9c4463
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoController(VTN Manager) connection status notification from ODC Driver to UPPL 69/2169/2
mayura [Sat, 26 Oct 2013 14:15:42 +0000 (19:45 +0530)]
Controller(VTN Manager) connection status notification from ODC Driver to UPPL

Change-Id: Id2ccc0a608d78a645cca03f51ea94850c2fb5d87
Signed-off-by: mayura <karpagamd@hcl.com>
11 years agoFixed bug in uppl module. 72/2172/1
Shigeru Yasuda [Fri, 25 Oct 2013 17:03:28 +0000 (02:03 +0900)]
Fixed bug in uppl module.

  * itc_kt_boundary.cc, itc_kt_controller.cc
    Eliminate access to out-of-scoped local variable.
  * phy_util.c
    Fix bug that may cause buffer overrun.

In addition, this patch refines unit tests for uppl and upll coordinator
modules:

  * Provide build environment for coodinator module unit test, and use it.
    * Don't create any file in the source directory.
  * Remove destructive tests.
  * Remove so many unused local variables and functions.
  * Eliminate access to uninitialized memory.

Change-Id: Ib88363e2002d3aa7489ace81b651f14b237219a0
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoInitial push of VTN Manager Neutron Interface 92/2092/4
Hideyuki Tai [Wed, 23 Oct 2013 14:23:53 +0000 (10:23 -0400)]
Initial push of VTN Manager Neutron Interface

It creates directories, pom.xml, Activator.java,
and prototype source files of VTN Manager Neutron Interface
for future development.

Change-Id: Ic18be1e04b9200c157d90889ee9ccd8d2e58d294
Signed-off-by: Hideyuki Tai <h-tai@cd.jp.nec.com>
11 years agoFixed unit test codes due to a change of IConnectionManager. 54/2154/1
Takayuki Kawagishi [Fri, 25 Oct 2013 01:18:19 +0000 (10:18 +0900)]
Fixed unit test codes due to a change of IConnectionManager.

Change-Id: I6c2098dcdb23eb57127e3e2819d146ccca8265dd
Signed-off-by: Takayuki Kawagishi <kawagishi-takayuki@mxj.nes.nec.co.jp>
11 years agoMerge "Support for controller status handling and Audit Configurations"
Sarath Babu Gurujala [Thu, 24 Oct 2013 09:45:11 +0000 (09:45 +0000)]
Merge "Support for controller status handling and Audit Configurations"

11 years agoFix build failure due to changing in IForwardingRulesManager. 22/2122/2
Taiki Kondo [Thu, 24 Oct 2013 02:53:33 +0000 (11:53 +0900)]
Fix build failure due to changing in IForwardingRulesManager.

This patch fixes following issues.

* Build failure due to changing in IForwardingRulesManager,
  posted at following URI.
  https://git.opendaylight.org/gerrit/#/c/2119/

* Test failure due to changing in pom.xml of StatisticsManager,
  posted at following URI.
  https://git.opendaylight.org/gerrit/#/c/2120/

Signed-off-by: Taiki Kondo <kondo-taiki@mxt.nes.nec.co.jp>
11 years agoSupport for controller status handling and Audit Configurations 16/2016/5
gvrangan [Sat, 19 Oct 2013 16:41:47 +0000 (22:11 +0530)]
Support for controller status handling and Audit Configurations

Change-Id: I2285e47f1465d9cc11cc6bfced27b2e8d15c6615
Signed-off-by: gvrangan <venkatrangang@hcl.com>
11 years agoMerge "Fixed bug in VTNFlowDatabase."
Takayuki Kawagishi [Mon, 21 Oct 2013 10:36:38 +0000 (10:36 +0000)]
Merge "Fixed bug in VTNFlowDatabase."

11 years agoMerge "Fixed bug in FlowAddTask."
Takayuki Kawagishi [Mon, 21 Oct 2013 10:03:28 +0000 (10:03 +0000)]
Merge "Fixed bug in FlowAddTask."

11 years agoMerge "Fixed bug in RemoteFlowRequest."
Takayuki Kawagishi [Mon, 21 Oct 2013 09:45:43 +0000 (09:45 +0000)]
Merge "Fixed bug in RemoteFlowRequest."

11 years agoFixed bug in VTNFlowDatabase. 41/2041/1
Shigeru Yasuda [Mon, 21 Oct 2013 08:55:39 +0000 (17:55 +0900)]
Fixed bug in VTNFlowDatabase.

  removeFlows(VTNManagerImpl, List<VTNFlow>):
    Do NOT create FlowRemoveTask if there is no VTN flow to be removed.
  removeIndex(VTNManagerImpl, VTNFlow):
    Return true only if the given VTN flow was actually removed.

Change-Id: Id27fed309b94b458b98746e3a5d25cecc102fb75
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFixed bug in FlowAddTask. 35/2035/1
Shigeru Yasuda [Mon, 21 Oct 2013 07:25:00 +0000 (16:25 +0900)]
Fixed bug in FlowAddTask.

execute(): It should return false in case there is no ingress flow.

Change-Id: Ida95f7f6ea0c4e4b8e6bbcf55a4808d2808dc6d1
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFixed bug in RemoteFlowRequest. 34/2034/1
Shigeru Yasuda [Mon, 21 Oct 2013 06:50:23 +0000 (15:50 +0900)]
Fixed bug in RemoteFlowRequest.

updateResult(boolean) should return a non-null value if there is no
pending request.

Change-Id: I52a991042bda11f9ba2b201b19c310814da9600f
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoTests for KT_VTN ,KT_VBR,KT_VBRIF,KT_CONTROLLER,KT_BOUNDARY (Messages exchanged betwe... 25/1325/4
gvrangan [Sat, 21 Sep 2013 18:07:11 +0000 (23:37 +0530)]
Tests for KT_VTN ,KT_VBR,KT_VBRIF,KT_CONTROLLER,KT_BOUNDARY (Messages exchanged between Platform (UPPL/UPLL) and Driver for VTN/VBR configurations)

Makefile modified to fix build failure

Change-Id: Iea00cc08d392a6e61a79f0cbf0759bf0e265070f
Signed-off-by: gvrangan <venkatrangang@hcl.com>
11 years agoAdded unit tests for flow mod tasks. 07/2007/1
Takayuki Kawagishi [Fri, 18 Oct 2013 10:22:36 +0000 (19:22 +0900)]
Added unit tests for flow mod tasks.

Change-Id: Ib19343fd3c00d6e48a682432ced1d23ea5173b5b
Signed-off-by: Takayuki Kawagishi <kawagishi-takayuki@mxj.nes.nec.co.jp>
11 years agoFixed unstable tests that may block the test process forever. 90/1990/1
Shigeru Yasuda [Fri, 18 Oct 2013 06:43:51 +0000 (15:43 +0900)]
Fixed unstable tests that may block the test process forever.

Change-Id: Ic6c8096bb2e52a73080743bace542717aab03b11
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoEliminate unnecessary files from the binary distribution package. 84/1984/1
Shigeru Yasuda [Fri, 18 Oct 2013 04:50:54 +0000 (13:50 +0900)]
Eliminate unnecessary files from the binary distribution package.

  * Add only the "opendaylight" directory to the ZIP package.
  * Remove SAL from distribution.vtn-manager dependencies.

Additional Changes:
  * manager.common: Eliminate duplicates in <dependencyManagement>.

Change-Id: Ifc40123fe080a2e81d50dbe729157b5047961e1a
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoCentralize project version management in manager.common. 98/1898/1
Shigeru Yasuda [Tue, 15 Oct 2013 08:46:24 +0000 (17:46 +0900)]
Centralize project version management in manager.common.

  * Inherit VTN Manager's project version from manager.common.
  * Declare dependent project versions in <dependencyManagement> in
    manager.common.
  * Eliminate duplicated dependencies.

Change-Id: Ic29962e6d4c9a5c35fc1a1e812e4e6b6f5260264
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoAdded Destructor and removed unwanted assignations 80/1780/3
balakrishnan [Thu, 10 Oct 2013 17:32:34 +0000 (23:02 +0530)]
Added Destructor and removed unwanted assignations
Fix for multi-controller vlink creation Failure
addressed review comments

Change-Id: Iee2b40662ba9f686bf4829310727038d86f268dc
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoMerge "Fixed unstable unit tests for VTN coordinator."
Hideyuki Tai [Fri, 11 Oct 2013 00:34:16 +0000 (00:34 +0000)]
Merge "Fixed unstable unit tests for VTN coordinator."

11 years agoFixed unstable unit tests for VTN coordinator. 00/1800/1
Shigeru Yasuda [Thu, 10 Oct 2013 12:38:14 +0000 (21:38 +0900)]
Fixed unstable unit tests for VTN coordinator.

  * Signal from a child process needs to be bound to the test thread.
  * Wait for a child process with timeout in order to avoid infinite loop.

Change-Id: I53d653ef1cf3c90eec48e51c368e0c47ff6989f4
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>