vtn.git
11 years agoEnable to build VTN Coordinator on Ubuntu. 08/4108/2
Shigeru Yasuda [Thu, 9 Jan 2014 11:41:36 +0000 (20:41 +0900)]
Enable to build VTN Coordinator on Ubuntu.

  * Specify object files to linker before libraries to be linked.
  * Add some gcc options to suppress unwanted warnings.
  * Detect gcc multiarch.
  * unixodbc package does not provide odbc_config command.
  * libgtest-dev package does not provide gtest-config command.
    * libgtest-dev provides only sources for Google Test libraries.
      You must build and install Google Test libraries if you want to
      run UT tests which use Google Test.
  * Remove unnecessary checks in configure script.
  * Change PostgreSQL installation directory for Ubuntu.
    * This patch assumes that postgresql (version 9.1) and odbc-postgresql
      package are installed to Ubuntu.
  * Define BoolsAsChar parameter for PostgreSQL ODBC driver explicitly.

Change-Id: Ib2fdb6047b75eca1740dd9917d538f7c54fc4cd0
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Update data files for multi-controller FT test case"
Sarath Babu Gurujala [Thu, 9 Jan 2014 10:49:41 +0000 (10:49 +0000)]
Merge "Update data files for multi-controller FT test case"

11 years agoUpdate data files for multi-controller FT test case 68/4068/1
senthil [Wed, 8 Jan 2014 17:49:22 +0000 (23:19 +0530)]
Update data files for multi-controller FT test case

Change-Id: I32709c92e2dc460d9bfa490dc053820a964c1666
Signed-off-by: senthil <senthil-b@hcl.com>
11 years agoSuppress gcc warning on VTN Coordinator UT build. 77/4077/1
Shigeru Yasuda [Wed, 8 Jan 2014 15:15:20 +0000 (00:15 +0900)]
Suppress gcc warning on VTN Coordinator UT build.

Below is a summary of warnings which may be detected by gcc.

  * Comparison between signed and unsigned values.
  * Comparison between different enum types.
  * Call of open() with specifying O_CREAT and without specifying
    permission.
  * Buffer overrun caused by specifying invalid size to memcpy().
  * Converting bool to pointer type, caused by EXPECT_EQ()/EXPECT_NE()
    macro with specifying bool value.

Change-Id: I27155f4ed259ce9f4a1d82b1ab4762df0deb766c
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoupll: Fixed buffer overrun. 76/4076/1
Shigeru Yasuda [Wed, 8 Jan 2014 14:15:47 +0000 (23:15 +0900)]
upll: Fixed buffer overrun.

Although sizeof(val_flowfilter_entry.redirect_node) is 32, upll module
passes 33 (kMaxLenFlowListName + 1) to strncpy() when it copies a string
into val_flowfilter_entry.redirect_node. It causes buffer overrun because
strncpy() always copies the specified number of bytes to the destination
address.

Change-Id: I4c40e33c05bf361baa97a16ceeb3ea91eef9e360
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Add README for VTN Coordinator"
Sarath Babu Gurujala [Tue, 7 Jan 2014 12:28:52 +0000 (12:28 +0000)]
Merge "Add README for VTN Coordinator"

11 years agoMerge "Don't expect build scripts for VTN Coordinator are executable."
Hideyuki Tai [Tue, 7 Jan 2014 00:28:36 +0000 (00:28 +0000)]
Merge "Don't expect build scripts for VTN Coordinator are executable."

11 years agoAdd README for VTN Coordinator 13/4013/2
susant [Fri, 3 Jan 2014 19:18:23 +0000 (00:48 +0530)]
Add README for VTN Coordinator

Change-Id: Icd7c98d8e308ad934bcc74e6d348a21882337fe8
Signed-off-by: susant <susantchandra.s@hcl.com>
11 years agoMerge "Modify FT script for portmap test using mininet"
Sarath Babu Gurujala [Mon, 6 Jan 2014 11:58:33 +0000 (11:58 +0000)]
Merge "Modify FT script for portmap test using mininet"

11 years agoDon't expect build scripts for VTN Coordinator are executable. 28/4028/1
Shigeru Yasuda [Mon, 6 Jan 2014 11:21:44 +0000 (20:21 +0900)]
Don't expect build scripts for VTN Coordinator are executable.

Currently all scripts under coordinator/dist/build have executable
permission. But executable permission bit may be turned off when the source
tree is copied. This patch enables the VTN Coordinator build even if
build scripts are not executable.

In addition, this patch eliminates tab characters and trailing whitespaces
in coordinator/dist/pom.xml.

Change-Id: I2b4385cb62dc921e4367696d690e6b22aed1a0d1
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Upgrading Jackson to 2.3.0 & be in sync with Controller's upgrade."
Shigeru Yasuda [Mon, 6 Jan 2014 02:23:04 +0000 (02:23 +0000)]
Merge "Upgrading Jackson to 2.3.0 & be in sync with Controller's upgrade."

11 years agoMerge "Adding support for the git-review command line tool"
Shigeru Yasuda [Mon, 6 Jan 2014 02:06:52 +0000 (02:06 +0000)]
Merge "Adding support for the git-review command line tool"

11 years agoUpgrading Jackson to 2.3.0 & be in sync with Controller's upgrade. 18/4018/1
Madhu Venugopal [Sun, 5 Jan 2014 00:31:28 +0000 (16:31 -0800)]
Upgrading Jackson to 2.3.0 & be in sync with Controller's upgrade.

Please refer to https://git.opendaylight.org/gerrit/#/c/3905/

Change-Id: I469da2d2ee7475b927fa168e060a9adbdb6d5f85
Signed-off-by: Madhu Venugopal <mavenugo@gmail.com>
11 years agoModify RestJsonUtil UT to use the common stub source 87/3987/4
Karthik.S [Sat, 28 Dec 2013 09:38:47 +0000 (15:08 +0530)]
Modify RestJsonUtil UT to use the common stub source

Change-Id: I4507cce1157c01684b54a1a53e2b5c031db3cb0b
Signed-off-by: Karthik.S <siva-karthik@hcl.com>
11 years agoMerge "Add Transaction Handling Tests for vtndrvintf module"
Sarath Babu Gurujala [Thu, 2 Jan 2014 15:56:26 +0000 (15:56 +0000)]
Merge "Add Transaction Handling Tests for vtndrvintf module"

11 years agoModify FT script for portmap test using mininet 89/3989/2
balakrishnan [Wed, 1 Jan 2014 11:16:58 +0000 (16:46 +0530)]
Modify FT script for portmap test using mininet

Change-Id: Id36a320411dce3795d77e6b7a44c327a58fe34fd
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoMerge "Added multiple controller test cases for VTN Coordinator"
Sarath Babu Gurujala [Mon, 30 Dec 2013 14:25:12 +0000 (14:25 +0000)]
Merge "Added multiple controller test cases for VTN Coordinator"

11 years agoAdded multiple controller test cases for VTN Coordinator 43/3943/4
senthil [Fri, 27 Dec 2013 19:51:17 +0000 (01:21 +0530)]
Added multiple controller test cases for VTN Coordinator

Change-Id: If98e2c961571f7dee2ac4593816e1b47a3044bb6
Signed-off-by: senthil <senthil-b@hcl.com>
11 years agoMerge "Modify TC module Tests to use the common stub source"
Sarath Babu Gurujala [Mon, 30 Dec 2013 12:44:49 +0000 (12:44 +0000)]
Merge "Modify TC module Tests to use the common stub source"

11 years agoMerge "Modify OdcDriver module tests to use common stub source"
Sarath Babu Gurujala [Mon, 30 Dec 2013 12:05:23 +0000 (12:05 +0000)]
Merge "Modify OdcDriver module tests to use common stub source"

11 years agoMerge "Modify vtndrvintf module tests to use the common source for stub"
Sarath Babu Gurujala [Mon, 30 Dec 2013 07:09:31 +0000 (07:09 +0000)]
Merge "Modify vtndrvintf module tests to use the common source for stub"

11 years agoAdding support for the git-review command line tool 74/3974/1
Colin McNamara [Mon, 30 Dec 2013 03:28:57 +0000 (19:28 -0800)]
Adding support for the git-review command line tool

The OpenStack doc workflow (and entire gerrit workflow) has the
option of using a tool called git-review that automates ChangeID:
creation and management,automates rebasing of local commits
as well as simplifies submiting to gerrit and pulling and
pushing reviews.

Usage of the tool is entirely optional, however it does require
a pointer file named .gitreview in the root of the repository
that is referenced.

I am totally new to this project, if you guys don't want to merge
this then no big deal. However I think this will help with dev's
coming over from OpenStack as it will provide a optional workflow
that is closer to the OpenStack workflow.

It is necessary to run git review -s to append the change-id into
git-hooks the first time you use the tool

Change-Id: Ia34a8b2604cf5bd865da250b2319276b88b32648
Signed-off-by: Colin McNamara <colin@2cups.com>
11 years agoAdd Transaction Handling Tests for vtndrvintf module 90/3990/1
Karthik.S [Sat, 28 Dec 2013 11:11:29 +0000 (16:41 +0530)]
Add Transaction Handling Tests for vtndrvintf module

Change-Id: Iaed3b0ba58b12175f28cb83c4e171fa5345e6b46
Signed-off-by: Karthik.S <siva-karthik@hcl.com>
11 years agoModify Tclib UT to use the common stub source 88/3988/1
Karthik.S [Sat, 28 Dec 2013 10:40:48 +0000 (16:10 +0530)]
Modify Tclib UT to use the common stub source

Change-Id: If8af18c9816fee105d76da1e787c243ea279f926
Signed-off-by: Karthik.S <siva-karthik@hcl.com>
11 years agoModify TC module Tests to use the common stub source 41/3941/1
Karthik.S [Fri, 27 Dec 2013 11:59:42 +0000 (07:59 -0400)]
Modify TC module Tests to use the common stub source

Change-Id: Icf7be86a009812df80124d8df8c90fa38d784e7d
Signed-off-by: Karthik.S <siva-karthik@hcl.com>
11 years agoModify OdcDriver module tests to use common stub source 40/3940/1
Karthik.S [Fri, 27 Dec 2013 11:54:08 +0000 (07:54 -0400)]
Modify OdcDriver module tests to use common stub source

Change-Id: I8e645d24f38b191db18ad26d6ea6cec21ff4a3c0
Signed-off-by: Karthik.S <siva-karthik@hcl.com>
11 years agoModify vtndrvintf module tests to use the common source for stub 39/3939/1
Karthik.S [Fri, 27 Dec 2013 11:47:20 +0000 (07:47 -0400)]
Modify vtndrvintf module tests to use the common source for stub

  * Redundant stub directories are removed

Change-Id: Iec5f3db22c65d59c68c1a1c740c38359d5c6f7bd
Signed-off-by: Karthik.S <siva-karthik@hcl.com>
11 years agoMerge "Add DELETE method to allowed CORS methods."
Takayuki Kawagishi [Tue, 24 Dec 2013 03:13:30 +0000 (03:13 +0000)]
Merge "Add DELETE method to allowed CORS methods."

11 years agoUppl Module tests modified to use common stub source for other modules 35/3935/1
Karthik.S [Mon, 23 Dec 2013 14:56:38 +0000 (20:26 +0530)]
Uppl Module tests modified to use common stub source for other modules

Change-Id: Iee81fac99a1e971c7d42262cdf8686da47439dbb
Signed-off-by: Karthik.S <siva-karthik@hcl.com>
11 years agoImprove Coordinator Tests to use common source for stub 34/3934/1
Karthik.S [Mon, 23 Dec 2013 14:28:26 +0000 (19:58 +0530)]
Improve Coordinator Tests to use common source for stub

  * Removed redundant stub directories and created common stub
  * upll modules tests modified to use the common stub

Change-Id: I34a326336253d0e2da8331bc689bf63bdeac0a85
Signed-off-by: Karthik.S <siva-karthik@hcl.com>
11 years agoMerge "Functional test for Audit scenarios with vtn,vbr and portmap configuration...
Sarath Babu Gurujala [Fri, 20 Dec 2013 13:29:20 +0000 (13:29 +0000)]
Merge "Functional test for Audit scenarios with vtn,vbr and portmap configuration entries"

11 years agoFunctional test for Audit scenarios with vtn,vbr and portmap configuration entries 29/3629/4
balakrishnan [Fri, 6 Dec 2013 04:26:34 +0000 (09:56 +0530)]
Functional test for Audit scenarios with vtn,vbr and portmap configuration entries

Change-Id: Ia96b82e4f18decee6e3191b9abb7b04eeb721c23
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoMerge "Fix assert call for release mode build"
Sarath Babu Gurujala [Fri, 20 Dec 2013 13:27:03 +0000 (13:27 +0000)]
Merge "Fix assert call for release mode build"

11 years agoAdd DELETE method to allowed CORS methods. 67/3867/1
Shigeru Yasuda [Fri, 20 Dec 2013 11:11:09 +0000 (20:11 +0900)]
Add DELETE method to allowed CORS methods.

Change-Id: I987b805ee2cc1a9331f089831a5d2b986d4c6a04
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Fix memory leak for VBR interface operation"
Sarath Babu Gurujala [Fri, 20 Dec 2013 08:38:29 +0000 (08:38 +0000)]
Merge "Fix memory leak for VBR interface operation"

11 years agoFix assert call for release mode build 50/3850/1
susant [Thu, 19 Dec 2013 18:19:16 +0000 (23:49 +0530)]
Fix assert call for release mode build

Change-Id: I777ccbbdaa9019e3a04480262b5d746631f35889
Signed-off-by: susant <susantchandra.s@hcl.com>
11 years agoMerge "Refactor ODC driver module in VTN coordinator"
Sarath Babu Gurujala [Thu, 19 Dec 2013 09:34:01 +0000 (09:34 +0000)]
Merge "Refactor ODC driver module in VTN coordinator"

11 years agoRefactor VTN Manager. 90/3790/1
Shigeru Yasuda [Tue, 17 Dec 2013 12:54:08 +0000 (21:54 +0900)]
Refactor VTN Manager.

Create a string representation of virtual node path more efficiently.

Change-Id: I79562ee99b04e328b0417da33ae9d795b3fc2194
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFix memory leak for VBR interface operation 49/3849/1
kamatchi [Mon, 16 Dec 2013 01:11:29 +0000 (06:41 +0530)]
Fix memory leak for VBR interface operation

Change-Id: Iae0f5b164c73411608b8b66919e061e2080508fb
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
11 years agoRefactor ODC driver module in VTN coordinator 17/3817/1
kamatchi [Sun, 15 Dec 2013 01:48:37 +0000 (07:18 +0530)]
Refactor ODC driver module in VTN coordinator

Change-Id: I5adb67c5185508c7822541452096e94983f61270
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
11 years agoUpdate README 01/3601/1
Hideyuki Tai [Tue, 10 Dec 2013 17:31:26 +0000 (02:31 +0900)]
Update README

- Add installation of JDK 7 to prior preparation for VTN Coordinator.
- Add git to the list of necessary packcages for VTN Coordinator.
- Delete wrong lines.

Change-Id: I2161fc4c440461260dba2192779827120831eb28
Signed-off-by: Hideyuki Tai <h-tai@cd.jp.nec.com>
11 years agoSupport for additional switch-id format in ODC driver module 25/3525/2
kamatchi [Mon, 2 Dec 2013 07:52:59 +0000 (13:22 +0530)]
Support for additional switch-id format in ODC driver module

Change-Id: I0fe15a3e90da0b20c28a4011666036795eed36e2
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
11 years agoFix bug for port-map update during audit operation 28/3528/1
susant [Fri, 6 Dec 2013 18:04:57 +0000 (23:34 +0530)]
Fix bug for port-map update during audit operation

Change-Id: Ieb1ed715f2d4566b19f9864b704e5a5c63a7d6c2
Signed-off-by: susant <susantchandra.s@hcl.com>
11 years agoMerge "Fix Bug for Portmap json object null check"
Sarath Babu Gurujala [Fri, 6 Dec 2013 02:38:53 +0000 (02:38 +0000)]
Merge "Fix Bug for Portmap json object null check"

11 years agoFix Bug for Portmap json object null check 96/3396/3
kamatchi [Sat, 30 Nov 2013 01:55:44 +0000 (07:25 +0530)]
Fix Bug for Portmap json object null check

Change-Id: I17924b18028f68b4abe3aab0ef0c77093b4d2b18
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
11 years agoSet IPC timeout as infinite for Audit Operations 01/3501/1
surya.s [Thu, 5 Dec 2013 13:47:10 +0000 (19:17 +0530)]
Set IPC timeout as infinite for Audit Operations

Change-Id: I361861ecfcf2653f62c6fa3cf3d6e640436987bb
Signed-off-by: surya.s <surya.s@hcl.com>
11 years agoChange some IT code of VTN Manager 80/3480/2
Taiki Kondo [Thu, 5 Dec 2013 05:24:15 +0000 (14:24 +0900)]
Change some IT code of VTN Manager

* Add some test cases.
* Change location calling sleep to begining of test.
* Purge "_" from name of some variables.
* Remove testITopologyManagerAware due to unused.

Change-Id: I3a5348f0c7deb17f6cfea2948f9905929552759c
Signed-off-by: Taiki Kondo <kondo-taiki@mxt.nes.nec.co.jp>
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>