vtn.git
10 years agoBug 1058: Eliminate query parameters from the Location header. 87/7287/1
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>
(cherry picked from commit 9612a4d0066acf9f67f6d99805ae2e58996785a7)

10 years agogitreview: update default branch to stable/hydrogen 64/7264/1
Chris Wright [Tue, 20 May 2014 18:50:11 +0000 (11:50 -0700)]
gitreview: update default branch to stable/hydrogen

Change-Id: I94d1146789fdc871fda5319f643e8ed5983c92c8
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
10 years agoBug 1043: Create "integrationtests" build profile. 46/7246/1
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>
(cherry picked from commit a16aa8cb484fd79ca5e504ae4e26c39c53569684)

10 years agoUse stable/hydrogen snapshot version of controller artifacts. 30/7230/1
Shigeru Yasuda [Tue, 20 May 2014 00:04:07 +0000 (09:04 +0900)]
Use stable/hydrogen snapshot version of controller artifacts.

Change-Id: I84bbbc77b8e4d9a6c3ed0223f3d38830c108ef05
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
10 years agoBug 1000: Fixed unstable tests in manager.integrationtest. 83/6983/1
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>
(cherry picked from commit 641300d5059d8a6068f924737c99b93d5c912152)

10 years agoBug 996: Fixed unstable unit test. 82/6982/1
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>
(cherry picked from commit 3dec8f7c0ec0bc09a80a568f28815b51f2076721)

10 years agoBug 975: Eliminate the use of obsolete JSON-C function. 14/6814/1
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>
(cherry picked from commit d6bfd4ed424e3d8c03705cc2486647689def626d)

11 years agoMerge "Fix for bug 712." into stable/hydrogen
Hideyuki Tai [Mon, 28 Apr 2014 11:47:11 +0000 (11:47 +0000)]
Merge "Fix for bug 712." into stable/hydrogen

11 years agoFix for bug 712. 91/6391/3
sameera [Thu, 17 Apr 2014 16:18:16 +0000 (21:48 +0530)]
Fix for bug 712.

Change-Id: I61f12076cc8c92d658bff749f2fc7b69ef5cb00f
Signed-off-by: sameera <sameera.k@hcl.com>
11 years agoBug 857: Add workaround for a bug of old Open vSwitch. 90/6490/1
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>
(cherry picked from commit c99405272263faa9b44ddef815c4b4a1040ac48e)

11 years agoMerge "Fix for bug 438." into stable/hydrogen
Hideyuki Tai [Mon, 28 Apr 2014 05:21:26 +0000 (05:21 +0000)]
Merge "Fix for bug 438." into stable/hydrogen

11 years agoFix for bug 438. 92/6392/2
kamatchi [Thu, 27 Mar 2014 01:05:02 +0000 (06:35 +0530)]
Fix for bug 438.

Change-Id: Id54de5758afa88a9a93167d04c4676175ce5f200
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
11 years agoFix for bug 673. 89/6389/1
kamatchi [Thu, 20 Mar 2014 06:07:35 +0000 (11:37 +0530)]
Fix for bug 673.

Change-Id: I5221f23dae6e1c111dc388616340e225640d8356
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
11 years agoFix bug 385 to solve logical port computation in multiple controller scenarios 83/6383/1
kamatchi [Sun, 26 Jan 2014 18:38:58 +0000 (00:08 +0530)]
Fix bug 385 to solve logical port computation in multiple controller scenarios

Change-Id: Ic23b8e41d6972e46bf5f0d97d45f3788eb3d944c
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
(cherry picked from commit 25ef73d2aa79ca1f9866db7ee942f740416a5b36)

11 years agoBug 804: Fixed unstable test. 45/6345/1
Shigeru Yasuda [Mon, 14 Apr 2014 15:27:59 +0000 (00:27 +0900)]
Bug 804: 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>
(cherry picked from commit 09fcfab6cbcc67add0e6c943033ad599e5f83b08)

11 years agoFix for bug 774. 76/6276/1
Shigeru Yasuda [Thu, 10 Apr 2014 15:19:48 +0000 (00:19 +0900)]
Fix for bug 774.

Fixed incorrect javadoc comment.

Change-Id: I89605ddaec328f26d7aeabb411931961b9ade471
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
(cherry picked from commit 5a8a2c0e0d84c81fe1e7ea612b38423430406093)

11 years agoFix for bug 769. 75/6275/1
Shigeru Yasuda [Thu, 10 Apr 2014 16:07:58 +0000 (01:07 +0900)]
Fix for bug 769.

Fixed incorrect log message which indicates failure of flow uninstallation.

Change-Id: I728ac6ec77acd13f1becdf12f03e39b8af641e77
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
(cherry picked from commit 07bbee320f3c15468e4b0e3adfec2e68628edacb)

11 years agoFix for bug 768. 74/6274/1
Shigeru Yasuda [Mon, 7 Apr 2014 16:00:28 +0000 (01:00 +0900)]
Fix for bug 768.

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>
(cherry picked from commit b051d5f53497f62223c6ed9945f7358abe6d5504)

11 years agoFix for bug 764. 73/6273/1
Shigeru Yasuda [Fri, 4 Apr 2014 08:32:47 +0000 (17:32 +0900)]
Fix for bug 764.

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>
(cherry picked from commit 83ec37e40293a71443e45665ee2d35a40b97a2bd)

11 years agoFix for bug 763. 72/6272/2
Shigeru Yasuda [Wed, 19 Mar 2014 17:46:54 +0000 (02:46 +0900)]
Fix for bug 763.

Try to detect IP address for a host as possible.

VTN Manager will send at most 10 ARP requests to a detected host.

Change-Id: I4356b8d42f91a5901315e75cc5dc69e6fffa322a
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
(cherry picked from commit b4e36cfd45765e446c8d97e881d5df50ca002921)

11 years agoFix for bug 743. 71/6271/1
Shigeru Yasuda [Mon, 10 Mar 2014 09:04:56 +0000 (18:04 +0900)]
Fix for bug 743.

Fixed unstable unit test.

A MacAddressEntry instance keeps a set of InetAddress instances using
an unorderd set. So string representation of a MacAddressEntry instance
is unstable because it is affected by the order of InetAddress instances.

Change-Id: Ic91af42fcfa851c67d0197d7ad34c2ae1e974413
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
(cherry picked from commit 17fbaae84822573f2fbae54607c669439c27474d)

11 years agoMerge "Fix for bug 742." into stable/hydrogen
Shigeru Yasuda [Fri, 18 Apr 2014 09:56:49 +0000 (09:56 +0000)]
Merge "Fix for bug 742." into stable/hydrogen

11 years agoFix for bug 742. 70/6270/1
Shigeru Yasuda [Tue, 4 Mar 2014 11:07:04 +0000 (20:07 +0900)]
Fix for bug 742.

Bug fix for equals(Object) in virtual node path classes.

Virtual node paths of different types should be treated as different
objects even if they have the same path components.

Change-Id: If2e6ab3cfc1436b8a14210e63284190c284957f8
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
(cherry picked from commit 4b20f15c9d54b6cf7a8259b70b3e480ad5d95ee8)

11 years agoFix for bug 738. 69/6269/2
Shigeru Yasuda [Fri, 21 Feb 2014 11:29:35 +0000 (20:29 +0900)]
Fix for bug 738.

Bug fix for port mapping.

This patch fixes a bug that an unexpected port may be mapped if the switch
port to be mapped is specified by its name.

Change-Id: If1643560292e8d57df11b42e24adb1616f00407c
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
(cherry picked from commit accd1b97ca6aad5773cfc561e720d1e2651b12cc)

11 years agoUpdate POM versions for stable/hydrogen branch. 24/6024/2
Shigeru Yasuda [Thu, 10 Apr 2014 09:27:26 +0000 (18:27 +0900)]
Update POM versions for stable/hydrogen branch.

Change-Id: I304c8771057a423a549223a6bdbf68de74b6101a
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years ago[maven-release-plugin] prepare release master-hydrogen-vtn-bulk-release-1 master-hydrogen-vtn-bulk-release-1
jenkins-vtn [Mon, 27 Jan 2014 22:59:07 +0000 (22:59 +0000)]
[maven-release-plugin] prepare release master-hydrogen-vtn-bulk-release-1

11 years agoSwitch dependencies to release artifact. 34/4934/1
Shigeru Yasuda [Mon, 27 Jan 2014 21:27:22 +0000 (06:27 +0900)]
Switch dependencies to release artifact.

Change-Id: Ifad21b07193ac7865497fdec8f427cc7cc6ecf85
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoDeploy README for VTN Coordinator tarball. 56/4856/1 vtn-bulk-release-prepare-only-4 jenkins-vtn-bulk-release-prepare-only-4
Shigeru Yasuda [Mon, 27 Jan 2014 11:26:15 +0000 (20:26 +0900)]
Deploy README for VTN Coordinator tarball.

Change-Id: Ic42101ff5f12e569f3c87c6543da61f48c32099b
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Modify the Supported Platforms for Virtualization Edition."
Hideyuki Tai [Mon, 27 Jan 2014 10:41:33 +0000 (10:41 +0000)]
Merge "Modify the Supported Platforms for Virtualization Edition."

11 years agoModify the Supported Platforms for Virtualization Edition. 50/4850/1
gvrangan [Mon, 27 Jan 2014 10:01:13 +0000 (02:01 -0800)]
Modify the Supported Platforms for Virtualization Edition.

Change-Id: I84e4480be11088b8c58dd514a08e2f189d70f897
Signed-off-by: gvrangan <venkatrangang@hcl.com>
11 years agoMerge "Define pluginRepositories for manager.checkstyle."
Hideyuki Tai [Mon, 27 Jan 2014 09:29:11 +0000 (09:29 +0000)]
Merge "Define pluginRepositories for manager.checkstyle."

11 years agoMerge "Clean up maven plugins."
Hideyuki Tai [Mon, 27 Jan 2014 08:59:52 +0000 (08:59 +0000)]
Merge "Clean up maven plugins."

11 years agoDefine pluginRepositories for manager.checkstyle. 44/4844/1
Shigeru Yasuda [Mon, 27 Jan 2014 08:02:19 +0000 (17:02 +0900)]
Define pluginRepositories for manager.checkstyle.

Change-Id: I1f71df0c2ca4f5f7bfec2fbca9ac37bf57c843a2
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoClean up maven plugins. 41/4841/1
Shigeru Yasuda [Mon, 27 Jan 2014 06:52:27 +0000 (15:52 +0900)]
Clean up maven plugins.

  * Define plugin versions shared between Manager and Coodinator in
    common/pom.xml.
  * Remove unused buildnumber plugin configuration.

Change-Id: I2d56da41ebec98bd24a94c56842a273aed790272
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFixed build error on Fedora 19 (i686). 39/4839/1
Shigeru Yasuda [Mon, 27 Jan 2014 05:47:48 +0000 (14:47 +0900)]
Fixed build error on Fedora 19 (i686).

Both true and false expression in conditional expression must be evaluated
as the same data type.

Change-Id: I9eeb3846d1656ba9c6ed095d1698c6add8a10536
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Add unit test cases for physical read feature"
Sarath Babu Gurujala [Sat, 25 Jan 2014 12:39:06 +0000 (12:39 +0000)]
Merge "Add unit test cases for physical read feature"

11 years agoMerge "Add functional test for physical read"
Sarath Babu Gurujala [Sat, 25 Jan 2014 11:59:50 +0000 (11:59 +0000)]
Merge "Add functional test for physical read"

11 years agoAdd functional test for physical read 10/4710/1
balakrishnan [Sat, 25 Jan 2014 14:26:14 +0000 (19:56 +0530)]
Add functional test for physical read

Change-Id: If518f00995bed3ab5982929599eeed277be55d54
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoMerge "Modify FT script for multicontroller portmap test using mininet"
Sarath Babu Gurujala [Sat, 25 Jan 2014 11:15:39 +0000 (11:15 +0000)]
Merge "Modify FT script for multicontroller portmap test using mininet"

11 years agoModify FT script for multicontroller portmap test using mininet 77/4677/2
balakrishnan [Sat, 25 Jan 2014 07:45:41 +0000 (13:15 +0530)]
Modify FT script for multicontroller portmap test using mininet

Change-Id: Ifcab1dff577c616d4115c1d986abcf7abe122711
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoRefine artifact dependencies. 28/4728/1
Shigeru Yasuda [Fri, 24 Jan 2014 17:05:45 +0000 (02:05 +0900)]
Refine artifact dependencies.

  * Migrate artifact versions to common/pom.xml.
  * Remove unused dependency from northbound IT.

Change-Id: Ia62697846727d2a1433b55b5e97b187928980751
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Fix Bug in TC Module"
Sarath Babu Gurujala [Fri, 24 Jan 2014 15:18:36 +0000 (15:18 +0000)]
Merge "Fix Bug in TC Module"

11 years agoMerge "Fixed illegal usage of SQLBindCol() in UPPL module of VTN Coordinator"
Sarath Babu Gurujala [Fri, 24 Jan 2014 14:48:03 +0000 (14:48 +0000)]
Merge "Fixed illegal usage of SQLBindCol() in UPPL module of VTN Coordinator"

11 years agoMerge "Fix Compilation Error in Unit Tests for Ubuntu 12.04"
Sarath Babu Gurujala [Fri, 24 Jan 2014 14:16:03 +0000 (14:16 +0000)]
Merge "Fix Compilation Error in Unit Tests for Ubuntu 12.04"

11 years agoFix Compilation Error in Unit Tests for Ubuntu 12.04 03/4703/1
Karthik.S [Fri, 24 Jan 2014 19:10:11 +0000 (11:10 -0800)]
Fix Compilation Error in Unit Tests for Ubuntu 12.04

Change-Id: I52afd83777cb25cc25d0cad37b816676f9f4ff0d
Signed-off-by: Karthik.S <siva-karthik@hcl.com>
11 years agoMerge "Detect PostgreSQL in runtime environment."
Tomohisa Yamabe [Fri, 24 Jan 2014 13:48:11 +0000 (13:48 +0000)]
Merge "Detect PostgreSQL in runtime environment."

11 years agoDetect PostgreSQL in runtime environment. 87/4687/2
Shigeru Yasuda [Fri, 24 Jan 2014 09:41:03 +0000 (18:41 +0900)]
Detect PostgreSQL in runtime environment.

This patch makes db_setup script detect PostgreSQL and ODBC driver.
If you want to specify the location of PostgreSQL explicitly, please
define below shell variables in /usr/local/vtn/etc/dbm/unc_db_env.conf.

  PGINST
    Set an absolute path to the PostgreSQL installation directory.

  PGSQL_ODBC_DRIVER
    Set an absolute path to PostgreSQL ODBC driver library.

Change-Id: I51bd0477b4607f46b58c7898308a001c61dec093
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoSync artifact version to the controller. 96/4696/1
Shigeru Yasuda [Fri, 24 Jan 2014 11:45:37 +0000 (20:45 +0900)]
Sync artifact version to the controller.

Change-Id: I519bec762c70df144cf3a7d6f1d3ed9f5834a576
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFixed bug in VTN Manager unit test. 74/4674/1
Shigeru Yasuda [Fri, 24 Jan 2014 06:45:17 +0000 (15:45 +0900)]
Fixed bug in VTN Manager unit test.

Change-Id: I3cef6d6462bf4a32d636e688a51b6f06fe0b9693
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoAdd support for MD-SAL protocol plugin. 57/4657/1
Shigeru Yasuda [Thu, 23 Jan 2014 16:18:48 +0000 (01:18 +0900)]
Add support for MD-SAL protocol plugin.

  * Accept MD-SAL node and node connector if object identifier is
    a string which starts with "openflow:".
  * Ignore incoming LLDP packet.

Change-Id: I4b8f52e958a135ec9a2314000d9d303dba1ace52
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Support for reading links between switches from controller"
Sarath Babu Gurujala [Thu, 23 Jan 2014 11:23:37 +0000 (11:23 +0000)]
Merge "Support for reading links between switches from controller"

11 years agoSupport for reading links between switches from controller 92/4492/2
surya.s [Tue, 21 Jan 2014 12:58:48 +0000 (18:28 +0530)]
Support for reading links between switches from controller

Change-Id: Ic72a4e5118ce528365f8cc0cab643e9c35f7ee3f
Signed-off-by: surya.s <surya.s@hcl.com>
11 years agoFix Bug in TC Module 40/4640/1
mausumi.p [Thu, 23 Jan 2014 06:32:17 +0000 (12:02 +0530)]
Fix Bug in TC Module

  * Corrected the default values in database table

Change-Id: I0c2907bd4b980efaa6dd6f09a7a5137633f49d24
Signed-off-by: mausumi.p <mausumi.p@hcl.com>
11 years agoMerge "Fix Cases in Functional test scripts for multi controller scenario"
Sarath Babu Gurujala [Wed, 22 Jan 2014 14:04:06 +0000 (14:04 +0000)]
Merge "Fix Cases in Functional test scripts for multi controller scenario"

11 years agoFix Cases in Functional test scripts for multi controller scenario 52/4552/1
senthil [Wed, 22 Jan 2014 13:28:03 +0000 (18:58 +0530)]
Fix Cases in Functional test scripts for multi controller scenario

Change-Id: Ieafc38766d74444f8d420f045ad42ff2d55be667
Signed-off-by: senthil <senthil-b@hcl.com>
11 years agoFixed illegal usage of SQLBindCol() in UPPL module of VTN Coordinator 86/4586/1
mausumi.p [Wed, 22 Jan 2014 12:06:43 +0000 (17:36 +0530)]
Fixed illegal usage of SQLBindCol() in UPPL module of VTN Coordinator

Change-Id: I9c82dbc0ca4cfd6a09449d422826e3e8e06fee31
Signed-off-by: mausumi.p <mausumi.p@hcl.com>
11 years agoFixed UT test failure caused by lack of storage for file path. 70/4570/1 vtn-bulk-release-prepare-only-3 jenkins-vtn-bulk-release-prepare-only-3
Shigeru Yasuda [Wed, 22 Jan 2014 11:29:37 +0000 (20:29 +0900)]
Fixed UT test failure caused by lack of storage for file path.

Change-Id: If91e36d65a76e4232e1eb2b6651da618595cc8d5
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoDisable Google Test from outputting colored text on Jenkins build. 76/4476/2 vtn-bulk-release-prepare-only-1 vtn-bulk-release-prepare-only-2 jenkins-vtn-bulk-release-prepare-only-1 jenkins-vtn-bulk-release-prepare-only-2
Shigeru Yasuda [Tue, 21 Jan 2014 07:21:54 +0000 (16:21 +0900)]
Disable Google Test from outputting colored text on Jenkins build.

Change-Id: I6ea84f3d176503c748b7ecb1ba0a7a21bae1f787
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoVerify json-c library supports 64-bit integer. 53/4453/2
Shigeru Yasuda [Mon, 20 Jan 2014 16:40:44 +0000 (01:40 +0900)]
Verify json-c library supports 64-bit integer.

VTN Coordinator build will fail unless json-c 0.10 or newer is installed.

Change-Id: I5191cce9a2f5d39ca5e40582d34399f2206125a2
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoAdd unit test cases for physical read feature 17/4717/1
kamatchi [Tue, 21 Jan 2014 03:23:48 +0000 (08:53 +0530)]
Add unit test cases for physical read feature

Change-Id: I5a57031f214213e93ec9db8ebd13c7b89ce16ca3
Signed-off-by: kamatchi <kamatchi-l@hcl.com>
11 years agoRefine log levels. 47/4447/1
Shigeru Yasuda [Mon, 20 Jan 2014 14:13:15 +0000 (23:13 +0900)]
Refine log levels.

This patch also refines log messages in manager.neutron bundle.

Change-Id: I774f0223c49cdee5617c07998d170408a7429823
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFix for deadlock while read from multiple controllers 10/4310/3
balakrishnan [Fri, 17 Jan 2014 14:37:42 +0000 (20:07 +0530)]
Fix for deadlock while read from multiple controllers

Change-Id: I07303e6b0c6ee0d185f7e835e2aeb6a0b80f501e
Signed-off-by: balakrishnan <balakrishnan.ka@hcl.com>
11 years agoSuppress messages to the standard error output. 46/4346/1
Shigeru Yasuda [Fri, 17 Jan 2014 09:56:09 +0000 (18:56 +0900)]
Suppress messages to the standard error output.

Change-Id: I0a6f01f6796d7ddf9f5b0d3c76308cc76622f56f
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Fix vtncacheutil Compilation Failure"
Sarath Babu Gurujala [Fri, 17 Jan 2014 05:47:25 +0000 (05:47 +0000)]
Merge "Fix vtncacheutil Compilation Failure"

11 years agoMerge "Avoid UT test failure that may happen on low-spec machine."
Hideyuki Tai [Fri, 17 Jan 2014 03:10:47 +0000 (03:10 +0000)]
Merge "Avoid UT test failure that may happen on low-spec machine."

11 years agoFix vtncacheutil Compilation Failure 88/4188/2
gvrangan [Mon, 13 Jan 2014 22:15:32 +0000 (14:15 -0800)]
Fix vtncacheutil Compilation Failure

 * Unused variables were reported.

Change-Id: I320a5479953e475faf28036eff118e58ba047ebd
Signed-off-by: gvrangan <venkatrangang@hcl.com>
11 years agoAvoid UT test failure that may happen on low-spec machine. 28/4328/1
Shigeru Yasuda [Thu, 16 Jan 2014 17:21:01 +0000 (02:21 +0900)]
Avoid UT test failure that may happen on low-spec machine.

This patch eases allowable error of time for which file lock test blocks.

Change-Id: I90d78c2f9ccddaaeba0ab215b18373b74f6ae48f
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFixed typo in NB API method name. 11/4311/1
Shigeru Yasuda [Thu, 16 Jan 2014 14:52:11 +0000 (23:52 +0900)]
Fixed typo in NB API method name.

Change-Id: I0429661169f650661499816f75380661d1a12723
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoAdd copyright notice. 09/4309/1
Shigeru Yasuda [Thu, 16 Jan 2014 14:18:36 +0000 (23:18 +0900)]
Add copyright notice.

Change-Id: Ic14ffad0eac0f4dcd19bf43ea072d98bfa842cce
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agovtn-javaapi: Refine IPC error code definition for upll and uppl. 04/4304/1
Shigeru Yasuda [Thu, 16 Jan 2014 12:33:37 +0000 (21:33 +0900)]
vtn-javaapi: Refine IPC error code definition for upll and uppl.

This patch enables both upll_errors.properties and uppl_errors.properties
to have comments.

Additional changes:

  * UncJavaAPIErrorCode.java: Fixed typo.

Change-Id: I29bdf399796b29d18a45105111fc2fd9f7d00493
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoUse LSB information to determine Linux distribution. 01/4301/1
Shigeru Yasuda [Thu, 16 Jan 2014 11:19:16 +0000 (20:19 +0900)]
Use LSB information to determine Linux distribution.

Change-Id: I302c560f6282535f2ade1985874500577615359e
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Eliminate direct output to the standard output stream from tests."
Hideyuki Tai [Thu, 16 Jan 2014 09:34:47 +0000 (09:34 +0000)]
Merge "Eliminate direct output to the standard output stream from tests."

11 years agoMerge "Update copyright information"
Shigeru Yasuda [Thu, 16 Jan 2014 09:24:01 +0000 (09:24 +0000)]
Merge "Update copyright information"

11 years agoUpdate copyright information 64/4264/3
susant [Wed, 15 Jan 2014 18:40:25 +0000 (00:10 +0530)]
Update copyright information

Change-Id: Iaddd793dd61ec1aca1814e8e2891b640006eee68
Signed-off-by: susant <susantchandra.s@hcl.com>
11 years agoMerge "Add maven-release-plugin."
Hideyuki Tai [Thu, 16 Jan 2014 08:20:32 +0000 (08:20 +0000)]
Merge "Add maven-release-plugin."

11 years agoRead support for switches and ports from controller 35/4135/4
susant [Fri, 10 Jan 2014 19:45:49 +0000 (01:15 +0530)]
Read support for switches and ports from controller

Change-Id: I60e82073f7a97eeb7570151bc2d0aa958a28ef71
Signed-off-by: susant <susantchandra.s@hcl.com>
11 years agoEliminate direct output to the standard output stream from tests. 58/4258/1
Shigeru Yasuda [Wed, 15 Jan 2014 11:41:39 +0000 (20:41 +0900)]
Eliminate direct output to the standard output stream from tests.

Change-Id: I590f4e38a8769d9db0ba4db1035ef06101ed1b2e
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoAdd maven-release-plugin. 33/4233/2
Shigeru Yasuda [Tue, 14 Jan 2014 15:29:09 +0000 (00:29 +0900)]
Add maven-release-plugin.

Change-Id: Ibb22cdf8f1b9e6a42577f8166c5978bb722cd21f
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Fixed illegal usage of SQLBindCol() in VTN Coordinator."
Hideyuki Tai [Wed, 15 Jan 2014 06:59:33 +0000 (06:59 +0000)]
Merge "Fixed illegal usage of SQLBindCol() in VTN Coordinator."

11 years agoCorrect invalid javadoc link in IT test. 26/4226/1
Shigeru Yasuda [Tue, 14 Jan 2014 14:42:24 +0000 (23:42 +0900)]
Correct invalid javadoc link in IT test.

Change-Id: I48833300176709bd5746fe3bd3ff68d71541ee38
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFix for ArpHandler emulator. 11/4211/1
Shigeru Yasuda [Tue, 14 Jan 2014 12:15:43 +0000 (21:15 +0900)]
Fix for ArpHandler emulator.

  * Don't forward IPv4 packet destinated to default gateway.
  * probe(HostNodeConnector): Check VLAN ID in the given HostNodeConnector.

Change-Id: Iaec5fae2a42985c3592d2f2b4fafefeea3dde691
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoRefine Java and REST API documents. 03/4203/1
Shigeru Yasuda [Tue, 14 Jan 2014 10:16:28 +0000 (19:16 +0900)]
Refine Java and REST API documents.

Change-Id: Ieb58b756c25c166e1bdeca3614089b0c0a27060b
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoFixed illegal usage of SQLBindCol() in VTN Coordinator. 43/4143/2
Shigeru Yasuda [Fri, 10 Jan 2014 16:20:49 +0000 (01:20 +0900)]
Fixed illegal usage of SQLBindCol() in VTN Coordinator.

  * modules/tc/tc_db_handler.cc
    * PostgreSQL ODBC driver converts value into string if a boolean
      column is bound as SQL_C_CHAR type. In this case SQLFetch() will
      store a string value, including terminator, into the buffer passed
      to SQLBindCol(). If a SQLCHAR (1 byte) variable is bound to a
      boolean column as SQL_C_CHAR type, SQLFetch() will cause buffer
      overrun when it stores a string terminator.

    * SQLBindCol() takes a SQLLEN pointer as 6th argument, not
      SQLINTEGER. On 64-bit platform, actual data type of SQLLEN and
      SQLINTEGER are int (4 bytes) and long (8 bytes) respectively.
      If a pointer to SQLINTEGER variable is passed to 6th argument of
      SQLBindCol(), SQLFetch() will cause buffer overrun because it
      will store a SQLLEN value into a SQLINTEGER variable.

  * modules/uppl/odbcm_db_varbind.cc
    * SQLFetch() will store value into buffer specified by SQLBindCol()
      call. That is, all buffer specified by SQLBindCol() must be valid
      until SQLFetch() is called.
      DBVarbind::bind_is_row_exists_output() specifies the address of
      local variable, cbNumericType, to 6th argument of SQLBindCol()
      without calling SQLFetch(). This code will corrupt unexpected
      buffer when SQLFetch() is called because the storage for
      cbNumericType variable is released when bind_is_row_exists_output()
      returns.

Change-Id: I8edbcc6b736b2a3bd4201ab5e99a3441e0ec2e81
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
11 years agoMerge "Enable to build VTN Coordinator on Ubuntu."
Sarath Babu Gurujala [Sun, 12 Jan 2014 05:56:05 +0000 (05:56 +0000)]
Merge "Enable to build VTN Coordinator on Ubuntu."

11 years agoFixed vtncacheutil UT build error on 32-bit platform. 41/4141/1
Shigeru Yasuda [Fri, 10 Jan 2014 16:06:12 +0000 (01:06 +0900)]
Fixed vtncacheutil UT build error on 32-bit platform.

Change-Id: Ia352c891d1640c0e2374b195b71e51217a210143
Signed-off-by: Shigeru Yasuda <s-yasuda@da.jp.nec.com>
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 agoCacheUtil Support for the Physical-Read Feature 24/4024/2
surya.s [Mon, 6 Jan 2014 09:30:16 +0000 (15:00 +0530)]
CacheUtil Support for the Physical-Read Feature

Change-Id: Ief9ab181c11fa31cc9b28f2daf83d8b196d277d7
Signed-off-by: surya.s <surya.s@hcl.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>