ovsdb.git
8 years agoMerge "Adding copyright header to ovsdb/southbound UT"
Flavio Fernandes [Thu, 15 Oct 2015 17:17:06 +0000 (17:17 +0000)]
Merge "Adding copyright header to ovsdb/southbound UT"

8 years agoAdd postman collection for NetvirtSfc 56/28456/2
Sam Hague [Thu, 15 Oct 2015 16:08:13 +0000 (12:08 -0400)]
Add postman collection for NetvirtSfc

Change-Id: Ibe16df4c9d789311b185a9f7cb0193b7a81f5aba
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoRemove unused BundleContext from NetvirtSfc 48/28448/1
Sam Hague [Thu, 15 Oct 2015 13:50:46 +0000 (09:50 -0400)]
Remove unused BundleContext from NetvirtSfc

Change-Id: I7d9d185710f82546472d733796ebc2cba2e3a671
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdding copyright header to ovsdb/southbound UT 47/28447/2
Rashmi Pujar [Thu, 15 Oct 2015 13:39:33 +0000 (09:39 -0400)]
Adding copyright header to ovsdb/southbound UT

Change-Id: I92d1f02491f04177b97a1ece879da9278220801b
Signed-off-by: Rashmi Pujar <rpujar@inocybe.com>
8 years agoMerge "All TCP & UDP SG Rules : Implementation and Unit tests added."
Flavio Fernandes [Thu, 15 Oct 2015 11:59:38 +0000 (11:59 +0000)]
Merge "All TCP & UDP SG Rules : Implementation and Unit tests added."

8 years agoMerge "UT for southbound/transactions/md - set 5"
Flavio Fernandes [Thu, 15 Oct 2015 11:56:48 +0000 (11:56 +0000)]
Merge "UT for southbound/transactions/md - set 5"

8 years agoMerge "Bug 4472 - netvirt: IlligalArgumentException in NAT provider"
Flavio Fernandes [Thu, 15 Oct 2015 11:51:55 +0000 (11:51 +0000)]
Merge "Bug 4472 - netvirt: IlligalArgumentException in NAT provider"

8 years agoMerge "cleanup NetvirtSfcIT"
Sam Hague [Thu, 15 Oct 2015 01:37:31 +0000 (01:37 +0000)]
Merge "cleanup NetvirtSfcIT"

8 years agocleanup NetvirtSfcIT 19/28419/1
Sam Hague [Thu, 15 Oct 2015 01:12:16 +0000 (21:12 -0400)]
cleanup NetvirtSfcIT

Change-Id: I1cc224a7ab4f65825feefe6de28fb787ca7e2f1c
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoBug 4472 - netvirt: IlligalArgumentException in NAT provider 15/28415/2
Isaku Yamahata [Wed, 14 Oct 2015 22:06:19 +0000 (15:06 -0700)]
Bug 4472 - netvirt: IlligalArgumentException in NAT provider

This patch adds work around code for ipv6 cidr notation is given.
Otherwise following exception occurs.

> 2015-10-14 13:38:55,125 | ERROR | ntDispatcherImpl | NeutronL3Adapter                 | 392 - org.opendaylight.ovsdb.openstack.net-virt - 1.2.1.SNAPSHOT | ProgramRouterInterface failed for mac:FA:16:3E:E0:A8:B5 addr:fd14:5ac7:ba3::1/64 node:ovsdb://uuid/8f75c49c-52b9-4303-8633-a80f0361429b/bridge/br-int srcTunId:external destTunId:1083 action:ADD status:Not Implemented: Not Implemented (0)
> 2015-10-14 13:38:55,126 | DEBUG | ntDispatcherImpl | ArpResponderService              | 393 - org.opendaylight.ovsdb.openstack.net-virt-providers - 1.2.1.SNAPSHOT | ipv6 address case is not implemented yet. dpid 209308480409166 segmentationId 1083 macAddressStr, ipAddress FA:16:3E:E0:A8:B5 action /fd14:5ac7:ba3:0:0:0:0:1
> 2015-10-14 13:38:55,126 | ERROR | ntDispatcherImpl | NeutronL3Adapter                 | 392 - org.opendaylight.ovsdb.openstack.net-virt - 1.2.1.SNAPSHOT | ProgramStaticArp failed for mac:FA:16:3E:E0:A8:B5 addr:fd14:5ac7:ba3::1 dpid:209308480409166 segOrOfPort:1083 action:ADD status:Not Implemented: Not Implemented (0)
> 2015-10-14 13:38:55,126 | ERROR | ntDispatcherImpl | EventDispatcher                  | 392 - org.opendaylight.ovsdb.openstack.net-virt - 1.2.1.SNAPSHOT | Exception in dispatching event NorthboundEvent [handler=NEUTRON_PORT, action=ADD, port=NeutronPort [portUUID=4b19acf4-d644-4fe7-8643-852c25cbf604, networkUUID=821f7a2b-b991-48b0-a39c-b0ef264bd321, name=, adminStateUp=true, status=ACTIVE, macAddress=FA:16:3E:E0:A8:B5, fixedIPs=[Neutron_IPs{ipAddress='fd14:5ac7:ba3::1', subnetUUID='54a7f233-1fdb-4d40-bd44-275f180e9a64'}], deviceID=738d6a7c-43bd-469d-bfed-6bcc6ffe5dca, deviceOwner=network:router_interface, tenantID=dc27e3a1cff64a1cb85c7f24899c3eee, securityGroups=[], bindinghostID=, bindingvnicType=normal, bindingvnicType=normal], subnet=null, router=null, routerInterface=null, floatingIP=null, network=null, loadBalancer=null, loadBalancerPool=null, loadBalancerPoolMember=null]
> java.lang.IllegalArgumentException: Supplied value "fd14:5ac7:ba3::/64" does not match required pattern "^(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])/(([0-9])|([1-2][0-9])|(3[0-2]))$"
>         at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)[64:com.google.guava:18.0.0]
>         at org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Prefix.<init>(Ipv4Prefix.java:49)[216:org.opendaylight.mdsal.model.ietf-inet-types:2010.9.24.8-SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.providers.openflow13.services.OutboundNatService.programIpRewriteExclusion(OutboundNatService.java:167)[393:org.opendaylight.ovsdb.openstack.net-virt-providers:1.2.1.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.programIpRewriteExclusionStage2(NeutronL3Adapter.java:1143)[392:org.opendaylight.ovsdb.openstack.net-virt:1.2.1.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.programIpRewriteExclusionStage1(NeutronL3Adapter.java:1128)[392:org.opendaylight.ovsdb.openstack.net-virt:1.2.1.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.programFlowsForNeutronRouterInterface(NeutronL3Adapter.java:807)[392:org.opendaylight.ovsdb.openstack.net-virt:1.2.1.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.handleNeutronRouterInterfaceEvent(NeutronL3Adapter.java:298)[392:org.opendaylight.ovsdb.openstack.net-virt:1.2.1.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.handleNeutronPortEvent(NeutronL3Adapter.java:245)[392:org.opendaylight.ovsdb.openstack.net-virt:1.2.1.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.PortHandler.doNeutronPortCreated(PortHandler.java:66)[392:org.opendaylight.ovsdb.openstack.net-virt:1.2.1.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.PortHandler.processEvent(PortHandler.java:161)[392:org.opendaylight.ovsdb.openstack.net-virt:1.2.1.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.EventDispatcherImpl.dispatchEvent(EventDispatcherImpl.java:95)[392:org.opendaylight.ovsdb.openstack.net-virt:1.2.1.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.EventDispatcherImpl.access$200(EventDispatcherImpl.java:28)[392:org.opendaylight.ovsdb.openstack.net-virt:1.2.1.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.EventDispatcherImpl$1.run(EventDispatcherImpl.java:57)[392:org.opendaylight.ovsdb.openstack.net-virt:1.2.1.SNAPSHOT]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_60]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_60]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]
>         at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]

Change-Id: I1559667adde1c14b5627df3b7212e404998ce897
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
8 years agoFirst pass for ovsdb-ui 03/24403/6
Maxime Millette-Coulombe [Wed, 22 Jul 2015 15:53:30 +0000 (11:53 -0400)]
First pass for ovsdb-ui

Revamp of the work already done. Adding a draft of a
logical topology viewer. The old code is still in this
commit because the works done before will be reuse.

Change-Id: Ia3a86cb0370cfad2ef3c2a156b412b9e029c3bf9
Signed-off-by: Maxime Millette-Coulombe <mmcoulombe@inocybe.com>
8 years agoUT for southbound/transactions/md - set 5 07/28407/1
Rashmi Pujar [Wed, 14 Oct 2015 19:03:17 +0000 (15:03 -0400)]
UT for southbound/transactions/md - set 5

11. OvsdbPortRemoveCommand.java
12. TransactionInvokerImpl.java
13. OvsdbPortUpdateCommand.java

Change-Id: Icd9ad76e482de5408650916f6bbf5bc73dc297c8
Signed-off-by: Rashmi Pujar <rpujar@inocybe.com>
8 years agoneuter NetvirtSfcIT 06/28406/1
Sam Hague [Wed, 14 Oct 2015 17:29:47 +0000 (13:29 -0400)]
neuter NetvirtSfcIT

Change-Id: Iaca49229b1c594a9e2b5659048319880643887ec
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "add ovsdb-sfc feature to test feature"
Sam Hague [Wed, 14 Oct 2015 15:32:29 +0000 (15:32 +0000)]
Merge "add ovsdb-sfc feature to test feature"

8 years agoadd ovsdb-sfc feature to test feature 97/28397/2
Sam Hague [Wed, 14 Oct 2015 14:49:05 +0000 (10:49 -0400)]
add ovsdb-sfc feature to test feature

Change-Id: I55c2df5791983998f696054b7728b7d1be696e33
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Add capability on southbound to NetvirtSfc"
Sam Hague [Wed, 14 Oct 2015 13:19:56 +0000 (13:19 +0000)]
Merge "Add capability on southbound to NetvirtSfc"

8 years agoAdd capability on southbound to NetvirtSfc 91/28391/1
Sam Hague [Wed, 14 Oct 2015 13:02:51 +0000 (09:02 -0400)]
Add capability on southbound to NetvirtSfc

Change-Id: Iffd6b7b27e701fdfa3bf663421ba72945562d0f1
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Workaround to fix net-virt-it"
Sam Hague [Wed, 14 Oct 2015 04:55:31 +0000 (04:55 +0000)]
Merge "Workaround to fix net-virt-it"

8 years agoWorkaround to fix net-virt-it 64/28364/2
Sam Hague [Wed, 14 Oct 2015 04:23:59 +0000 (00:23 -0400)]
Workaround to fix net-virt-it

Change-Id: I10838b993f60b5e3859780d7d9f7b4c3630e312a
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "UT for southbound/transactions/md - set 4"
Sam Hague [Tue, 13 Oct 2015 13:10:11 +0000 (13:10 +0000)]
Merge "UT for southbound/transactions/md - set 4"

8 years agoFix issue that was causing integration test failure. 20/28320/3
Anil Vishnoi [Tue, 13 Oct 2015 08:04:24 +0000 (13:34 +0530)]
Fix issue that was causing integration test failure.

In case of controller initiated connection, iid stamping
was not happening. Before clustering code merge, iid stamping
was done in updateData(), but after clustering code merge,
it does not allow to make any changes to the device till
owner of the device is selected by EntityOnwershipService,
so updateData() was not stamping the iid to swtich. With this
fix, once owner of the device is selected, it explictly stamp
iid to the switch.

NOTE: we should revert following patch before merging this patch
https://git.opendaylight.org/gerrit/#/c/28309/1

I ran the integration suit locally and it passes all the tests

[main] INFO org.ops4j.pax.exam.spi.reactors.ReactorManager - suite finished
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 288.094 sec - in org.opendaylight.ovsdb.southbound.it.SouthboundIT

Results :

Tests run: 22, Failures: 0, Errors: 0, Skipped: 0

Change-Id: I35d6e0a4fa94eef019420e9b9603873d5088a934
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoRevert "Temp workaround to debug southbound IT" 27/28327/1
Flavio Fernandes [Tue, 13 Oct 2015 11:04:46 +0000 (11:04 +0000)]
Revert "Temp workaround to debug southbound IT"

This reverts commit 149c5bfb602e91f07c2b98f9509d317be8fcaa3c.

Change-Id: I78aa7b506f32e37b65cae1bfb24bbb360c5359ad
Signed-off-by: Sam Hague <shague@redhat.com>
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
8 years agoTemp workaround to debug southbound IT 09/28309/1
Sam Hague [Tue, 13 Oct 2015 00:50:25 +0000 (20:50 -0400)]
Temp workaround to debug southbound IT

It is a timing change from the clustering code not taking into account some crazy existing code.

This patch has a workaround that works in my local tests. I will merge it temporarily to see if the jenkins builds are good.

Will work with Anil and Flavio on a long term solution.

Old code:

write ovsdb node to config ->
-> dcl ->
-> connect -> connect -> connectedButCallbacksNotRegistered -> putConnectionInstance
-> updateData -> OvsdbNodeUpdateCommand - > ovsdb node - set Open_vSwitch external_ids
*** key here is that the putConnectionInstance happened earlier in connect so now the OvsdbNodeUpdateCommand gets a chance to run and write the externalIds to the Open_vSwitch table
...
OvsdbMonitorCallback -> OpenVSwitchUpdateCommand - > writes node to operational
*** key here is that the iid (nodePath) is found by looking for the externalIds. If found, since it was written earlier, then it is used, if not the backup of using the uuid of the node is used. The IT expects the externalIds value to be there and that is the one with the form ip:port.

In the new code:
- putConnectionInstance() does not happen until the handleOwnership completes - too late since the updateData is processed before that
- updateData doesn't do anything, complains about not finding client since the connectionInstance was not written earlier, therefore the externalIds are not written
- OpenVSwitchUpdateCommand ends up using the wrong iid of the form using the uuid since the externalIds were not written.

Change-Id: Iafbb8c4fa3dd5708f4c4bd3242e27ec72a4b4c6e
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoBug 4144 - Periodic ARP resolver should use unicast MAC destination 04/28304/1
Andre Fredette [Tue, 6 Oct 2015 21:33:15 +0000 (17:33 -0400)]
Bug 4144 - Periodic ARP resolver should use unicast MAC destination
address whenever possible; instead of broadcast

Modified ArpResolver and GatewayMacResolverService to use the unicast DA
when known.  The code treats the DA as known for a new ARP request if
one of the last N=2 ARP request was answered.

Change-Id: I2bd7791b74d41e2838edf59d6edc510b63f3c40b
Signed-off-by: Andre Fredette <afredette@redhat.com>
8 years agohwvtep: version bump to 1.2.1 73/28273/1
Vishal Thapar [Mon, 12 Oct 2015 08:52:57 +0000 (14:22 +0530)]
hwvtep: version bump to 1.2.1

Update hwvtep poms as per this:
https://git.opendaylight.org/gerrit/#/c/25574/

Change-Id: I651a4e475e9bf243497ce07386e7418141f2fc3c
Signed-off-by: Vishal Thapar <vishal.thapar@ericsson.com>
8 years agoAdd setting controller for sfc it 28/28228/1
Sam Hague [Fri, 9 Oct 2015 20:22:56 +0000 (16:22 -0400)]
Add setting controller for sfc it

This patch adds setting the controller so that flows can be pushed to the switches.

Use the following to initate the tests:

start an ovsdb node and set it to be in passive mode: sudo ovs-vsctl set-manager ptcp:6640
cd .../net-virt-sfc/it
mvn -Dit.test=NetvirtSfcIT#testDoIt verify -Pintegrationtest -Dovsdbserver.ipaddress=192.168.120.31

The above will connect to the node and set's it controller to ODL.

Change-Id: Ibf307b668535e47fe80ba0a8b7403e53d7a40ccb
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdd southbound to sfc it 25/28225/1
Sam Hague [Fri, 9 Oct 2015 19:25:47 +0000 (15:25 -0400)]
Add southbound to sfc it

Change-Id: I1627b92af8a919063d9214d57117741809525134
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdd southbound utils. 24/28224/2
Sam Hague [Fri, 9 Oct 2015 18:57:28 +0000 (14:57 -0400)]
Add southbound utils.

This commit is copying the duplicated integration test code
for manipulating the southbound into a utils bundle. This
code is duplicated in the netvirt-it, setvirtsfc-it and southbound-it.
We will slowly migrate them to use this new utils bundle.

Change-Id: If3197fe3bcf50c12faff70cd01426b695686dd83
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoUT for southbound/transactions/md - set 4 19/28219/1
Rashmi Pujar [Fri, 9 Oct 2015 16:37:06 +0000 (12:37 -0400)]
UT for southbound/transactions/md - set 4

8. OvsdbManagersUpdateCommand.java
9. OvsdbNodeRemoveCommand.java
10. OvsdbOperationalCommandAggregator.java

Change-Id: I4597340cb871fb6b8558f2632ad71423a3cb8176
Signed-off-by: Rashmi Pujar <rpujar@inocybe.com>
8 years agoMerge "UT for southbound/transactions/md - set 3"
Flavio Fernandes [Fri, 9 Oct 2015 12:07:45 +0000 (12:07 +0000)]
Merge "UT for southbound/transactions/md - set 3"

8 years agoMerge "Remove unused code"
Flavio Fernandes [Fri, 9 Oct 2015 12:06:41 +0000 (12:06 +0000)]
Merge "Remove unused code"

8 years agoAdd IT for netvirtsfc mdsal read/write/delete 74/28174/2
Sam Hague [Thu, 8 Oct 2015 20:34:14 +0000 (16:34 -0400)]
Add IT for netvirtsfc mdsal read/write/delete

To run the integration tests:
- cd ../ovsdb/openstack/net-virt-sfc
- mvn clean install -Pintegrationtest

Change-Id: I191ace9c510a63bca59d99009eca8e970566f3f9
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAll TCP & UDP SG Rules : Implementation and Unit tests added. 55/28055/1
sangeeta.maurya [Thu, 8 Oct 2015 23:13:00 +0000 (04:58 +0545)]
All TCP & UDP SG Rules : Implementation and Unit tests added.

Change-Id: I4a00740fed78ab416fe22214fa7542ae7036f6fc
Signed-off-by: sangeeta.maurya <sangeeta.maurya@hp.com>
8 years agoUT for southbound/transactions/md - set 3 63/28163/1
Rashmi Pujar [Thu, 8 Oct 2015 18:24:54 +0000 (14:24 -0400)]
UT for southbound/transactions/md - set 3

6. OvsdbControllerUpdateCommand.java
7. OvsdbManagersRemovedCommand.java

Change-Id: Idcb7ff1ad8f414cb243ae766e69d6437d0bee93f
Signed-off-by: Rashmi Pujar <rpujar@inocybe.com>
8 years agoRemove unused code 69/28069/1
Anil Vishnoi [Thu, 8 Oct 2015 16:22:57 +0000 (21:52 +0530)]
Remove unused code

Conflicts:
openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/api/UuidUtils.java

Change-Id: I09b2e4eee6e88d68c63fdbea8e7e42da790576e9
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoMerge "UT for southbound/transactions/md - set 2"
Sam Hague [Wed, 7 Oct 2015 22:42:02 +0000 (22:42 +0000)]
Merge "UT for southbound/transactions/md - set 2"

8 years agoMerge "If controller joins the cluster late, and the owner of the device is already...
Flavio Fernandes [Wed, 7 Oct 2015 21:23:35 +0000 (21:23 +0000)]
Merge "If controller joins the cluster late, and the owner of the device is already decided, EntityOwnershipService won't notify new candidate that register for ownership. Adding a proactive check on the ownership state of the device, so if it's already owned, adding the connection instances in the connection cache."

8 years agoUT for southbound/transactions/md - set 2 29/28029/1
rpujar [Wed, 7 Oct 2015 20:29:28 +0000 (16:29 -0400)]
UT for southbound/transactions/md - set 2

4. OvsdbBridgeUpdateCommand.java
5. OvsdbControllerRemovedCommand.java

Change-Id: Idc469c08351b1e98129dd9e798c07a660d782709
Signed-off-by: rpujar <rpujar@inocybe.com>
8 years agoCleanup netvirtsfc poms 20/28020/1
Sam Hague [Wed, 7 Oct 2015 17:22:54 +0000 (13:22 -0400)]
Cleanup netvirtsfc poms

Change-Id: I6c1a3aa44c75f98d226dcf23dd514a31f5df5d2a
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoBump mdsal-utils version to match other bundles 19/28019/1
Sam Hague [Wed, 7 Oct 2015 17:22:13 +0000 (13:22 -0400)]
Bump mdsal-utils version to match other bundles

Change-Id: I6c5166ae27fd2f055217be95630cbc482261bb61
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "UT for southbound/transactions/md"
Sam Hague [Wed, 7 Oct 2015 13:38:27 +0000 (13:38 +0000)]
Merge "UT for southbound/transactions/md"

8 years agoMerge "Fix checkstyle issues in netvirtsfc"
Sam Hague [Wed, 7 Oct 2015 00:36:02 +0000 (00:36 +0000)]
Merge "Fix checkstyle issues in netvirtsfc"

8 years agoIf controller joins the cluster late, and the owner of the device 89/27989/2
Anil Vishnoi [Tue, 6 Oct 2015 20:41:25 +0000 (02:11 +0530)]
If controller joins the cluster late, and the owner of the device
is already decided, EntityOwnershipService won't notify new candidate that register
for ownership. Adding a proactive check on the ownership state of the device,
so if it's already owned, adding the connection instances in the connection cache.

Change-Id: I7e87b55599f0ebd408814d72789c86f231b7907c
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoUT for southbound/transactions/md 84/27984/1
rpujar [Tue, 6 Oct 2015 19:56:23 +0000 (15:56 -0400)]
UT for southbound/transactions/md

1. AbstractTransactionCommand.java
2. OpenVSwitchUpdateCommand.java
3. OvsdbBridgeRemovedCommand.java

Change-Id: I7655dec526bc06b770c533dd082eb403bc89a2c7
Signed-off-by: rpujar <rpujar@inocybe.com>
8 years agoMerge "Send a canonical IPv4 prefix in table 60 routing rules"
Sam Hague [Tue, 6 Oct 2015 19:48:18 +0000 (19:48 +0000)]
Merge "Send a canonical IPv4 prefix in table 60 routing rules"

8 years agoFix checkstyle issues in netvirtsfc 83/27983/1
Sam Hague [Tue, 6 Oct 2015 19:45:13 +0000 (15:45 -0400)]
Fix checkstyle issues in netvirtsfc

Change-Id: I7db518959449958849a74c49a83bde1135ee325f
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoSend a canonical IPv4 prefix in table 60 routing rules 47/27847/3
Eric Multanen [Fri, 2 Oct 2015 13:43:04 +0000 (06:43 -0700)]
Send a canonical IPv4 prefix in table 60 routing rules

Testing with userspace OVS with DPDK uncovered that the routing
rules that go into table 60 were getting rejected.

Messages from ovs-vswitchd.log:

... |nx_match|WARN|Rejecting NXM/OXM entry
    0:32768:12:1:8 with 1-bits in value for bits wildcarded by the mask.

... |connmgr|INFO|br-int<->tcp:10.11.21.7:6653:
    sending OFPBMC_BAD_WILDCARDS error reply to OFPT_FLOW_MOD message

Clearing the non-prefix bits resolved the problem and the flows were
successfully added.

v2 - split up long line into two more readable lines

Change-Id: I42a0c63e6e837197d29bb8333f12e822a5f15d91
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
8 years agoCustom ICMP SG Rule: 44/27944/2
sangeeta.maurya [Tue, 6 Oct 2015 17:11:55 +0000 (22:56 +0545)]
Custom ICMP SG Rule:
1)Modification in ICMP matcher
2)Unit Test Improvement (Check added to validate if some values are set
properly).

Change-Id: I31fad80f6dd278372abe2b1a6aac95935aef5f17
Signed-off-by: sangeeta.maurya <sangeeta.maurya@hp.com>
8 years agoMerge "Southbound UT: Fix SouthboundMapper stackoverflow issue"
Sam Hague [Tue, 6 Oct 2015 18:43:20 +0000 (18:43 +0000)]
Merge "Southbound UT: Fix SouthboundMapper stackoverflow issue"

8 years agoMerge "Mechanical cleanup to SouthboundIT"
Sam Hague [Tue, 6 Oct 2015 18:15:31 +0000 (18:15 +0000)]
Merge "Mechanical cleanup to SouthboundIT"

8 years agoSouthbound UT: Fix SouthboundMapper stackoverflow issue 75/27875/3
adetalhouet [Sat, 3 Oct 2015 22:24:30 +0000 (18:24 -0400)]
Southbound UT: Fix SouthboundMapper stackoverflow issue

Signed-off-by: adetalhouet <adetalhouet@inocybe.com>
8 years agoMerge "Fix build issues for UT for updated SouthboundProvider.class"
Sam Hague [Tue, 6 Oct 2015 15:54:09 +0000 (15:54 +0000)]
Merge "Fix build issues for UT for updated SouthboundProvider.class"

8 years agoMerge "Net-virt-sfc Data Change Listener code first pass."
Sam Hague [Tue, 6 Oct 2015 15:32:08 +0000 (15:32 +0000)]
Merge "Net-virt-sfc Data Change Listener code first pass."

8 years agoNet-virt-sfc Data Change Listener code first pass. 30/27930/4
arunsarat [Mon, 5 Oct 2015 20:32:20 +0000 (13:32 -0700)]
Net-virt-sfc Data Change Listener code first pass.

Change-Id: Ie1e8e4471b2bddf476b8a55a1d022d4ace517868
Signed-off-by: arunsarat <arunsarat@yahoo.com>
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoFix build issues for UT for updated SouthboundProvider.class 67/27967/1
rpujar [Tue, 6 Oct 2015 13:46:31 +0000 (09:46 -0400)]
Fix build issues for UT for updated SouthboundProvider.class

Change-Id: If806d385d9399e514ea977a33fd9ab8008a8850b
Signed-off-by: rpujar <rpujar@inocybe.com>
8 years agoMerge "Add UT for SouthboundMapper and SouthboundProvider"
Flavio Fernandes [Mon, 5 Oct 2015 21:14:36 +0000 (21:14 +0000)]
Merge "Add UT for SouthboundMapper and SouthboundProvider"

8 years agoAdd UT for SouthboundMapper and SouthboundProvider 52/27752/8
rpujar [Thu, 1 Oct 2015 15:43:34 +0000 (11:43 -0400)]
Add UT for SouthboundMapper and SouthboundProvider

Change-Id: I38776516b120cc16d123d37dcafb8d19c6fd7e21
Signed-off-by: rpujar <rpujar@inocybe.com>
8 years agoUse odlparent checkstyle 55/27555/5
Sam Hague [Mon, 28 Sep 2015 21:21:34 +0000 (17:21 -0400)]
Use odlparent checkstyle

Patch set 2: Remove ovsdb_checks.xml from parent pom
Patch set 3: Remove ovsdb_checks.xml from directory
Patch set 4: Add hwvtepsouthbound

Change-Id: Iccc680728e19967f9977453bb75c9c64b1a53e0c
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Fix sonar integration test reporting"
Sam Hague [Sat, 3 Oct 2015 23:09:00 +0000 (23:09 +0000)]
Merge "Fix sonar integration test reporting"

8 years agoFix sonar integration test reporting 60/27860/3
Sam Hague [Sat, 3 Oct 2015 01:20:10 +0000 (21:20 -0400)]
Fix sonar integration test reporting

Change-Id: Icb238c6442a8d15ae144d6e9abbaabf9fd011570
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdded postman collection and postman environment 62/27862/1
Anil Vishnoi [Sat, 3 Oct 2015 01:33:33 +0000 (07:03 +0530)]
Added postman collection and postman environment
files for Southbound plugin to test in Single and 3 Node cluster environment

Change-Id: I144801f0200d607013b3fa839cabf1de7c3bf1d0
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoMerge topic/master/clustering to master branch 37/27837/1
Anil Vishnoi [Fri, 2 Oct 2015 17:08:10 +0000 (22:38 +0530)]
Merge topic/master/clustering to master branch
Squashed commit of the following:

commit e9e3a762ee75844b930d8251f44d2718a3358445
Merge: 2adbc25 83cfd5b
Author: Anil Vishnoi <vishnoianil@gmail.com>
Date:   Fri Oct 2 19:54:23 2015 +0530

    Merge branch 'master' into topic/master/clustering

    Change-Id: I3c26c3f4095b78d869cae271b01fa1ab2609cf89
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
commit 2adbc25b474d46f394e8f956c818383425570600
Author: Anil Vishnoi <vishnoianil@gmail.com>
Date:   Fri Oct 2 07:22:44 2015 +0530

    Addressed following issuses:
    1) Fixed entity unregisteration
    2) Implemented logic for southbound provider to participate
    in entityOwnership service, Southbound plugin instance as an entity
    This will avoid all the instances to do initiatize the operational
    and config topology, only master instance (who got ownership) will do that.
    3) Properly closing listener registration for OvsdbConnectionManager listerner.

    Change-Id: I73693b4faa8a6409c81c33647836516002b4b2fd
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
commit 193f145796924c051b36c61974df4253e68efb7e
Author: Anil Vishnoi <vishnoianil@gmail.com>
Date:   Thu Oct 1 16:54:41 2015 +0530

    Addressed following issues:
    1) Handled ownership change notifications for the device that is not registered by the instance.
    2) If there is no owner of the device hasOwner=false, then clean up the operational data store,
    3) For switch initiated connections, generate iid by fetching the openvswtich table row from the device.

    Change-Id: I03158a616e7c020ce8f851b8251e4162f38ba622
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
commit c26d79561555c23f4aec894418537cf059a1f85a
Merge: 740d21a 7848a77
Author: Flavio Fernandes <ffernand@redhat.com>
Date:   Thu Oct 1 14:42:00 2015 -0400

    Merge branch 'master' into topic/master/clustering

    Change-Id: I191e71030d6523a3d7a11765010cc1b81b9405f3
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
commit 740d21afacb5a652a3a1d78ceff2c0d998492add
Author: Anil Vishnoi <vishnoianil@gmail.com>
Date:   Wed Sep 30 02:15:26 2015 +0530

    Fixed iid issue for switch initiated connections
    and refactored the code a bit

    Patch 2:Fixed unit tests.
    Conflicts:
     southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionInstance.java
     southbound/southbound-impl/src/main/java/org/opendaylight/ovsdb/southbound/OvsdbConnectionManager.java

    Change-Id: I9f8adfba4a4f866d423503b24f400c40bd43131b
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
commit 9079eb260e123c00625dc13e63a6f55d9bc42aea
Merge: b203967 0179232
Author: Flavio Fernandes <ffernand@redhat.com>
Date:   Tue Sep 29 12:58:54 2015 -0400

    Merge branch 'master' into topic/master/clustering

    Change-Id: I02c771238cd7447dbaa326516467259516868aa6
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
commit b203967504c1de8814c32e7c7c8015ebb749e154
Author: Sharad Mishra <sharad.d.mishra@intel.com>
Date:   Mon Sep 28 06:19:38 2015 -0700

    OVSDB cluster device ownership

    Only allow device owner to update device.
    Patch 2: Fixed unit test

    Change-Id: Id942a2ba16a83b19807e135a9b67f8a7eb7da003
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
commit 218785ea03b74287de86395d1e57471ce02fe5e4
Author: Flavio Fernandes <ffernand@redhat.com>
Date:   Wed Sep 23 09:55:06 2015 -0400

    Use EntityOwnershipService to get ownership on the device.
    If ownership is granted then *this* instance of southbound
    plugin can perform actions to configure the device, rest
    two southbound plugin instanceses in the cluster will just
    hole the connection with them and won't do any operation
    of configuring the device or reading from the device.
    For controller initiated connections, all the southbound
    plugin instance will attempt to connect to the device and
    contest for ownership of the device and selected owner of
    the device will do CRUD operations. For switch initiated
    connection, only instance of southbound plugin that received
    connection from switch will contest for ownership.

    Change-Id: I349699ae0630e12bdbe18b6bd2588a651edd1f81
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
commit da209a4aad67400a3c938329fb393ec6f7e2439e
Merge: ec7827c 11c0865
Author: Anil Vishnoi <vishnoianil@gmail.com>
Date:   Tue Sep 29 00:44:50 2015 +0530

    Merge branch 'master' into topic/master/clustering

    Change-Id: I44ac4d66f731c0c0f56d746c563c6210eeceb978
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
commit ec7827c688340fa85c42942ba6559201da07286a
Author: Flavio Fernandes <ffernand@redhat.com>
Date:   Mon Sep 21 17:57:02 2015 -0400

    Add hasDeviceOwnership flag to OvsdbConnectionInstance

    Patch set 4: fix ut

    Change-Id: Id7da9071374938c16b086b0d67059aec0a7cc3a0
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
commit 3cc32fd3d007b4c91dfbadee3920b9ae61a9283c
Author: Flavio Fernandes <ffernand@redhat.com>
Date:   Fri Sep 25 17:02:13 2015 -0400

    Set bridge controller(s) based on ovsdb node manager(s)

    Change-Id: I10bcc04aed78f874cbb8a7d9a82e59cf1b80ec82
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
commit 628749e43002c4aa9fc8bfdf7c827cba0532eb6b
Merge: 3d7ce06 360d519
Author: Anil Vishnoi <vishnoianil@gmail.com>
Date:   Sat Sep 26 01:27:28 2015 +0530

    Merge branch 'master' into topic/master/clustering

    Change-Id: I20e84a6971466357c6819c7dba5d51809f9b2878
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
commit 3d7ce0660d25080dd1a5e3927eda6d071e085d12
Merge: 8a90856 708c8c3
Author: Anil Vishnoi <vishnoianil@gmail.com>
Date:   Fri Sep 25 06:07:23 2015 +0530

    Merge branch 'master' into topic/master/clustering

    Change-Id: I35038c6d7b2150d2efc9692a02d5e94bd97a8dba
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
commit 8a908569f4e8e19e7f03f08f97d0704f9ca46cc9
Author: Anil Vishnoi <vishnoianil@gmail.com>
Date:   Tue Sep 22 01:52:42 2015 +0530

    Enable remote notification for southbound plugin

    (cherry picked from commit 01f0737be6abacaf56721731f6a19dcb13e291f0)

    Change-Id: Ida036244f3861e4d07437b49179bbf2851a212a5
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
commit 7747c272e6ad5f52ebcae97fd14e05762bc8f790
Author: Anil Vishnoi <vishnoianil@gmail.com>
Date:   Tue Sep 22 00:05:49 2015 +0530

    Wire entity ownership service to OVSDB southbound plugin

    Change-Id: I8baa3b31f9762c4b5656b399a1a7f705c1aed9c1
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
Change-Id: Iec7a1c3055dac748c81b470a3d2286b42e32397e
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoMechanical cleanup to SouthboundIT 28/27828/1
Stephen Kitt [Fri, 2 Oct 2015 14:36:32 +0000 (16:36 +0200)]
Mechanical cleanup to SouthboundIT

* dataBroker can be turned into a local variable
* "frmo" -> "from"
* drop a couple of variables used only for return
* Javadoc corrections
* remove commented Assume calls which have corresponding Assert calls
* reduce the scope of variables where appropriate
* fix an impossible equals assert (dpTypeStr -> dpType compared to a
  DatapathTypeBase class)
* Java 7 <> operator
* remove unnecessary casts and boxing
* correct a format string ("%s_%s_d" -> "%s_%s_%d")

Change-Id: I9a7da21a9252c3f256a0230521402ced3fffb774
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Use the memorized service reference"
Sam Hague [Fri, 2 Oct 2015 13:10:04 +0000 (13:10 +0000)]
Merge "Use the memorized service reference"

8 years agoMerge "UT for SouthboundUtil.java"
Sam Hague [Fri, 2 Oct 2015 13:08:23 +0000 (13:08 +0000)]
Merge "UT for SouthboundUtil.java"

8 years agoMerge "Bug 4277 - Deleted Network flow entries retained in br-int, if network associa...
Sam Hague [Fri, 2 Oct 2015 13:07:05 +0000 (13:07 +0000)]
Merge "Bug 4277 - Deleted Network flow entries retained in br-int, if network associated and disassociated from virutalrouter interface"

8 years agoFuture-proof OvsdbTypesIdResolver 97/27797/1
Stephen Kitt [Fri, 2 Oct 2015 09:37:39 +0000 (11:37 +0200)]
Future-proof OvsdbTypesIdResolver

Instead of implementing TypeIdResolver directly, the recommended
approach is to extend TypeIdResolverBase; this ensures that upgrading
Jackson won't cause sudden build failures because of methods added to
TypeIdResolver (TypeIdResolverBase provides an appropriate default
implementation).

Change-Id: I6be57cc22a54e46e9e07ff835f7ccf9feec14c8f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoBug 4277 - Deleted Network flow entries retained in br-int, if network associated... 55/27755/1
ravi_sabapathy [Mon, 28 Sep 2015 07:31:48 +0000 (00:31 -0700)]
Bug 4277 - Deleted Network flow entries retained in br-int, if network associated and disassociated from virutalrouter interface

        Remove the mac cache after deleting the DHCP neutron port l3 flows

Patch set 2: Move all other caches updated in delete into cleanupRouterCache()

Change-Id: I0c29ba4976ddfd484415d851ad5a2df97d61b19a
Signed-off-by: ravi_sabapathy <ravi_sabapathy@dell.com>
8 years agoUT for SouthboundUtil.java 12/27612/2
rpujar [Tue, 29 Sep 2015 20:40:56 +0000 (16:40 -0400)]
UT for SouthboundUtil.java

Change-Id: I87e3577ab2f262ec7f50b6c185a41f49b1e607ed
Signed-off-by: rpujar <rpujar@inocybe.com>
8 years agoMerge "Speed up SouthboundIT through multi-threading test cases"
Sam Hague [Thu, 1 Oct 2015 12:20:42 +0000 (12:20 +0000)]
Merge "Speed up SouthboundIT through multi-threading test cases"

8 years agoMerge "Add yang for hwvtep"
Sam Hague [Thu, 1 Oct 2015 12:15:35 +0000 (12:15 +0000)]
Merge "Add yang for hwvtep"

8 years agoUse the memorized service reference 71/27671/1
Stephen Kitt [Mon, 28 Sep 2015 16:06:54 +0000 (18:06 +0200)]
Use the memorized service reference

Currently when dispatching "event handler added" events we retrieve
the appropriate service reference from the bundle context, but this
seems to cause problems when multiple services are registered for the
same interfaces. Since we know the service reference we got when
registering the service involved, we can just pass that.

As a result, ConfigInterface::setDependencies() doesn't need a
BundleContext at all, and since we're no longer supposed to pass that
around, we can just remove it altogether.

Some more debugging information should help track down other issues of
this type.

Change-Id: Iac54595aed388165711a7c4a3d86577646c59d4f
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoLess restriction on shared networks: it can be allowed on externals 92/27592/1
Flavio Fernandes [Tue, 29 Sep 2015 14:57:03 +0000 (10:57 -0400)]
Less restriction on shared networks: it can be allowed on externals

Change-Id: I0a66758731eb35a73623c6f663792b9dffbfec08
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
8 years agoMerge "Added model for QoS and Queue."
Sam Hague [Tue, 29 Sep 2015 10:56:19 +0000 (10:56 +0000)]
Merge "Added model for QoS and Queue."

8 years agoUse common profiles among ovsdb it bundles 69/27469/2
Sam Hague [Fri, 25 Sep 2015 20:40:20 +0000 (16:40 -0400)]
Use common profiles among ovsdb it bundles

Change-Id: I2636a15eb821e1be7edbebcdeef9d94cb0d783be
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Remove unused integrationtest"
Sam Hague [Mon, 28 Sep 2015 14:30:05 +0000 (14:30 +0000)]
Merge "Remove unused integrationtest"

8 years agoRemove unused integrationtest 62/27462/2
Sam Hague [Fri, 25 Sep 2015 19:41:15 +0000 (15:41 -0400)]
Remove unused integrationtest

Also add missing dependencies in library

Change-Id: I120a20ffb76f8d18bb54b1b72a69e752922974e4
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoAdded model for QoS and Queue. 37/24737/10
Gabriel Robitaille-Montpetit [Mon, 3 Aug 2015 23:11:04 +0000 (19:11 -0400)]
Added model for QoS and Queue.

Change-Id: I0d254ea9648dee2298a62523d6a10b64dcc88297
Signed-off-by: Gabriel Robitaille-Montpetit <grmontpetit@inocybe.com>
8 years agoMerge "Added Security Rule for Custom ICMP"
Sam Hague [Mon, 28 Sep 2015 12:51:01 +0000 (12:51 +0000)]
Merge "Added Security Rule for Custom ICMP"

8 years agoMerge "Remove unused northbound"
Flavio Fernandes [Fri, 25 Sep 2015 19:49:08 +0000 (19:49 +0000)]
Merge "Remove unused northbound"

8 years agoMerge "Controller initiated connections always connect to one manager listening in...
Sam Hague [Fri, 25 Sep 2015 19:48:28 +0000 (19:48 +0000)]
Merge "Controller initiated connections always connect to one manager listening in ptcp: mode. In clustered mode, all the three controller will connect to the device, and in case any of the connection will flip that instance will remove OvsdbNode from operational data store because it will see only one manager in manager list. But because switch is listening in passive mode, there can be multiple connection to same manager. To handle this scenario, this patch adds number_of_connection attribute to OvsdbNodeAugmentation to maintain the number of active connection to specific manager. In case of switch initiated connection this value is going to be 1 for each manager, but in case switch listening in passive mode, this value will represent active connections (extraced from Manager tables status column n_connections attributes)."

8 years agoMerge "Bug 3989 -- Fix the original patch. Original patch can break the functioning...
Flavio Fernandes [Fri, 25 Sep 2015 19:45:20 +0000 (19:45 +0000)]
Merge "Bug 3989 -- Fix the original patch. Original patch can break the functioning if there are more then one data change and the first data change is OvsdbNodeAugmentation for which connection already exist. It will return out of OnDataChanged() when it see that connection already exist, without processing rest of the data"

8 years agoMerge "Move OvsdbClient it under library-it"
Flavio Fernandes [Fri, 25 Sep 2015 19:31:30 +0000 (19:31 +0000)]
Merge "Move OvsdbClient it under library-it"

8 years agoBug 3989 -- Fix the original patch. Original patch can break 59/27459/3
Anil Vishnoi [Fri, 25 Sep 2015 17:34:02 +0000 (23:04 +0530)]
Bug 3989 -- Fix the original patch. Original patch can break
the functioning if there are more then one data change and
the first data change is OvsdbNodeAugmentation for which connection
already exist. It will return out of OnDataChanged() when it see
that connection already exist, without processing rest of the
data

Change-Id: Icec9fdcc241fb9f1b823d73cbe2dfdd1f5c3def7
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoMove OvsdbClient it under library-it 61/27461/1
Sam Hague [Fri, 25 Sep 2015 18:46:59 +0000 (14:46 -0400)]
Move OvsdbClient it under library-it

A following commit will remove the integrationtest dir. With this commit here there
are no longer any tests in integrationtest. They have all been moved into the respective
bundles.

Change-Id: I40e7dccd6e5ee7ea362d75a422610fbdfe5e55cc
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoController initiated connections always connect to one manager 58/27458/1
Anil Vishnoi [Fri, 25 Sep 2015 04:19:01 +0000 (09:49 +0530)]
Controller initiated connections always connect to one manager
listening in ptcp: mode. In clustered mode, all the three controller
will connect to the device, and in case any of the connection will flip
that instance will remove OvsdbNode from operational data store because
it will see only one manager in manager list. But because switch is
listening in passive mode, there can be multiple connection to same manager.
To handle this scenario, this patch adds number_of_connection attribute
to OvsdbNodeAugmentation to maintain the number of active connection to
specific manager. In case of switch initiated connection this value is
going to be 1 for each manager, but in case switch listening in passive
mode, this value will represent active connections (extraced from
Manager tables status column n_connections attributes).

Change-Id: I910104a5109b5bed6af7786a7692c617bd4305b7
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoRemove unused northbound 47/27447/1
Sam Hague [Fri, 25 Sep 2015 15:27:44 +0000 (11:27 -0400)]
Remove unused northbound

Change-Id: I8ac5ae92315d2558a7563a35bdd67c0d816ccc68
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoFix ovsdb node update in clustered environment 46/27446/1
Anil Vishnoi [Wed, 23 Sep 2015 18:08:06 +0000 (23:38 +0530)]
Fix ovsdb node update in clustered environment
In cluster environment same switch can be connected to multiple
controller instance running southbound plugin. In the existing implementation
if device disconnect from any of the controller instances OVSDB-SB remove
OvsdbNode from operational data store. In cluster environment that will
break contract with customer, given that device is still connected to
atleast one of the two controller instances running. This patch modifying the
behavior where controller will see if its the only connected controller,
then it will delete the data from operational data store, else it will skip
any clean up from operational data store, because other instances will anyway
update about the disconnected controller manager entry in the managers list.

Change-Id: Iaa043f6632eb2de660b623604e8f8e0938dbc4d5
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
(cherry picked from commit 6051e15c6f929c08f152417b1f19373b10e93647)

8 years agoMerge "Remove unused mdsal-plugin-adapter code"
Anil Vishnoi [Fri, 25 Sep 2015 15:06:17 +0000 (15:06 +0000)]
Merge "Remove unused mdsal-plugin-adapter code"

8 years agoSpeed up SouthboundIT through multi-threading test cases 93/26093/2
Ryan Goulding [Wed, 26 Aug 2015 18:25:37 +0000 (14:25 -0400)]
Speed up SouthboundIT through multi-threading test cases

This speeds up SouthboundIT without losing coverage through the use of parallel
test cases.  On my VM,ExecutorSer this reduced test time from ~12 to ~4.5 minutes.

Aggregates the testing work for certain test cases into corresponding
Runnables.  For each set of test input data, a Runnable is spawned and
submitted to a fixed thread pool.  The thread pool size may be altered
through the NUM_THREADS constant.  The default is 4 since raising this
number causes issues with MD-SAL.

These test cases can be multi-threaded because they each utilize a distinct
bridge.  In other words, each thread is manipulating a different bridge in the
operating system.

Change-Id: Icd8ca69171e996fbf4000ef632c9446bb6c89ed6
Signed-off-by: Ryan Goulding <ryandgoulding@gmail.com>
8 years agoRemove unused mdsal-plugin-adapter code 40/27440/1
Sam Hague [Fri, 25 Sep 2015 14:08:18 +0000 (10:08 -0400)]
Remove unused mdsal-plugin-adapter code

Change-Id: I161b63c1c5b4cff39388d8342052920e245e3796
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Mdsal utils bundle"
Flavio Fernandes [Fri, 25 Sep 2015 00:36:38 +0000 (00:36 +0000)]
Merge "Mdsal utils bundle"

8 years agoMerge "Initial pass at netvirt model"
Anil Vishnoi [Thu, 24 Sep 2015 16:32:26 +0000 (16:32 +0000)]
Merge "Initial pass at netvirt model"

8 years agoMdsal utils bundle 85/27185/4
Sam Hague [Mon, 21 Sep 2015 01:45:11 +0000 (21:45 -0400)]
Mdsal utils bundle

Patch set 2: Renamed to MdsalUtils and matched the strucure of
the other bundles in the utils dir.

This commit adds a Mdsal utils bundle that has all the mdsal methods to read,
write, delete and merge to the datastore. This is so that other bundles can
reuse the same methods.

Change-Id: Ida83ed957f74155224b007b54e3e80bfb1e29a71
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoMerge "Added UT for OvsdbDataChangeListener.java"
Sam Hague [Thu, 24 Sep 2015 14:32:05 +0000 (14:32 +0000)]
Merge "Added UT for OvsdbDataChangeListener.java"

8 years agoAdded UT for OvsdbDataChangeListener.java 61/27361/4
rpujar [Wed, 23 Sep 2015 15:39:48 +0000 (11:39 -0400)]
Added UT for OvsdbDataChangeListener.java

Also added code to test new method in OvsdbConnectionManager.java

Change-Id: I75faec2f20305c9ac806087042136d09d1048d49
Signed-off-by: rpujar <rpujar@inocybe.com>
8 years agoInitial pass at netvirt model 84/27184/3
Sam Hague [Mon, 21 Sep 2015 01:43:59 +0000 (21:43 -0400)]
Initial pass at netvirt model

Patch set 2: Renamed netvirtmodel to net-virt-sfc.
Patch set 3: Add net-virt-sfc to the root pom so it is built

Change-Id: Ia8b21b538e38463e860148abb4bf055ae3020761
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoClean up dependencies and features 68/27368/2
Stephen Kitt [Wed, 23 Sep 2015 16:24:32 +0000 (18:24 +0200)]
Clean up dependencies and features

Remove more plugin-related code.
Correct a couple of netconf dependencies.
Remove obsolete dependencies on controller features which are no
longer provided upstream.

Change-Id: Ia8f68200e997c11375414cd3071fe605b9025cd4
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoAdd YangInstanceIdentifer to InstanceIdentifier converter method 67/27367/2
Anil Vishnoi [Wed, 23 Sep 2015 15:37:41 +0000 (21:07 +0530)]
Add YangInstanceIdentifer to InstanceIdentifier converter method

Change-Id: I540772d6461ccf9a281b738a3ba8d6601abffafb
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoFixed unit test testDisconnect in OvsdbConnectionmanagerTest 71/27371/1
Anil Vishnoi [Wed, 23 Sep 2015 18:49:12 +0000 (00:19 +0530)]
Fixed unit test testDisconnect in OvsdbConnectionmanagerTest

Change-Id: I2b2eca244036dc7567c24e85a71bd968f04ac587
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>