ovsdb.git
8 years agoMerge "OVSDB netvirt southbound - set correct datapath type for OVS with DPDK"
Sam Hague [Thu, 20 Aug 2015 12:48:57 +0000 (12:48 +0000)]
Merge "OVSDB netvirt southbound - set correct datapath type for OVS with DPDK"

8 years agoMerge "Enable SLF4J logging in tests"
Sam Hague [Tue, 18 Aug 2015 16:08:28 +0000 (16:08 +0000)]
Merge "Enable SLF4J logging in tests"

8 years agoOVSDB netvirt southbound - set correct datapath type for OVS with DPDK 37/25437/1
Eric Multanen [Mon, 17 Aug 2015 21:25:31 +0000 (14:25 -0700)]
OVSDB netvirt southbound - set correct datapath type for OVS with DPDK

When creating bridges from netvirt, check if the OVSDB node supports
'dpdk' interfaces.  If it does, then specify the datapath type
so that the bridge will be created with the 'netdev' datapath type.

Change-Id: Ida76d51906238339255f8e02424328de62a420d7
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
(cherry picked from commit 6989a273149b5908fb2c2ae56d8f9fdb01cd05e0)

8 years agoMerge "Mention "fig up" and sudo for integration tests"
Sam Hague [Tue, 18 Aug 2015 16:05:35 +0000 (16:05 +0000)]
Merge "Mention "fig up" and sudo for integration tests"

8 years agoSlight improvements to our UTs 25/25425/2
Stephen Kitt [Tue, 18 Aug 2015 14:06:30 +0000 (16:06 +0200)]
Slight improvements to our UTs

NetworkHandlerTest: explicitly split shared/non-shared testing instead
of relying on successive calls to isShared() (this avoids the test
being too closely linked to the implementation: the test only works if
the code calls isShared() in the way the test expects). Likewise for
isTunnel().

EventDispatcherImplTest:
* the event dispatcher is started by its constructor, no need to start
  it explicitly;
* specify a handler type in the mock event to avoid crashing the event
  handler;
* instead of "assuming" the event size (which was always wrong since
  the events were consumed before we got to the end of the test),
  check that the events were dispatched as appropriate.

ServiceHelper:
* in getGlobalInstance(), avoid an ArrayIndexOutOfBoundsException
* check for a null bundle explicitly; this avoids the tests causing a
  NullPointerException and producing error logs (and it also means we
  can log actual errors with more detail).

ServiceHelperTest: split the null/non-null tests so that we don't rely
on the implementation's calling pattern to getBundle().

Change-Id: Ib1b90fecf286588bc92a4c88f3b89d85c26c53f0
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Clean up ConfigActivator"
Sam Hague [Tue, 18 Aug 2015 13:58:16 +0000 (13:58 +0000)]
Merge "Clean up ConfigActivator"

8 years agoEnable SLF4J logging in tests 97/25397/1
Stephen Kitt [Tue, 18 Aug 2015 08:05:14 +0000 (10:05 +0200)]
Enable SLF4J logging in tests

Change-Id: Icd79adb80e77ce3f4ac089e48386538181b219b9
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Enable cancel monitoring"
Sam Hague [Mon, 17 Aug 2015 17:53:58 +0000 (17:53 +0000)]
Merge "Enable cancel monitoring"

8 years agoMention "fig up" and sudo for integration tests 53/25353/1
Stephen Kitt [Mon, 17 Aug 2015 10:01:51 +0000 (12:01 +0200)]
Mention "fig up" and sudo for integration tests

Change-Id: Idbf3c46bf8a782a4668d67ad34f5982762c865a4
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Fix description for OUTBOUND_NAT Table: "DNAT for outbound floating-ip traffic""
Flavio Fernandes [Sun, 16 Aug 2015 23:15:20 +0000 (23:15 +0000)]
Merge "Fix description for OUTBOUND_NAT Table: "DNAT for outbound floating-ip traffic""

8 years agoMerge "BUG #4029 : null pointer exception at NeutronL3Adapter.java:251"
Flavio Fernandes [Sun, 16 Aug 2015 23:02:47 +0000 (23:02 +0000)]
Merge "BUG #4029 : null pointer exception at NeutronL3Adapter.java:251"

8 years agoMerge "netvirt: use setID/getID to catch up neutron northbound change"
Flavio Fernandes [Sun, 16 Aug 2015 23:00:55 +0000 (23:00 +0000)]
Merge "netvirt: use setID/getID to catch up neutron northbound change"

8 years agoFix description for OUTBOUND_NAT Table: "DNAT for outbound floating-ip traffic" 43/25343/1
Flavio Fernandes [Sun, 16 Aug 2015 22:46:32 +0000 (18:46 -0400)]
Fix description for OUTBOUND_NAT Table: "DNAT for outbound floating-ip traffic"

Change-Id: I9871de8f1bfc6dfa47fb3ea22aef2ea22ef2eb2c
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
8 years agoBUG #4029 : null pointer exception at NeutronL3Adapter.java:251 25/25325/1
Isaku Yamahata [Fri, 14 Aug 2015 23:13:19 +0000 (16:13 -0700)]
BUG #4029 : null pointer exception at NeutronL3Adapter.java:251

port update event doesn't always include fixed ips.
Thus NeutronPort.getFixedIPs() may return null.
This patch adds null check.

reproduce procedure:
- create network
- create subnet
- create port
- update port without fixed ip

Example requests are follows

---
POST /controller/nb/v2/neutron/networks HTTP/1.1

{
  "network": {
    "name": "tempest-test-network--1116013201",
    "provider:physical_network": null,
    "admin_state_up": true,
    "tenant_id": "0dde8d3f09764e849d19f0550ef11b26",
    "mtu": 0,
    "router:external": false,
    "shared": false,
    "vlan_transparent": null,
    "port_security_enabled": true,
    "provider:network_type": "vxlan",
    "id": "82953a35-0554-48e4-9ace-200a93ad88df",
    "provider:segmentation_id": 1092
  }
}

---

POST /controller/nb/v2/neutron/subnets HTTP/1.1

{
  "subnet": {
    "name": "",
    "enable_dhcp": true,
    "network_id": "82953a35-0554-48e4-9ace-200a93ad88df",
    "tenant_id": "0dde8d3f09764e849d19f0550ef11b26",
    "dns_nameservers": [],
    "gateway_ip": "10.100.0.1",
    "ipv6_ra_mode": null,
    "allocation_pools": [
      {
        "start": "10.100.0.2",
        "end": "10.100.0.14"
      }
    ],
    "host_routes": [],
    "shared": false,
    "ip_version": 4,
    "ipv6_address_mode": null,
    "cidr": "10.100.0.0/28",
    "id": "cfb6c8b5-d94d-4788-b1b6-769ab403df4a",
    "subnetpool_id": null
  }
}

---

POST /controller/nb/v2/neutron/ports HTTP/1.1

{
  "port": {
    "binding:host_id": "ls",
    "allowed_address_pairs": [],
    "device_owner": "network:dhcp",
    "port_security_enabled": false,
    "binding:profile": {},
    "fixed_ips": [
      {
        "subnet_id": "cfb6c8b5-d94d-4788-b1b6-769ab403df4a",
        "ip_address": "10.100.0.2"
      }
    ],
    "id": "e3232392-b752-4f20-869e-2186ac76edba",
    "security_groups": [],
    "device_id": "dhcpf7a98173-37b1-5e61-9aec-e3057d825ed1-82953a35-0554-48e4-9ace-200a93ad88df",
    "name": "",
    "admin_state_up": true,
    "network_id": "82953a35-0554-48e4-9ace-200a93ad88df",
    "tenant_id": "0dde8d3f09764e849d19f0550ef11b26",
    "binding:vif_details": {},
    "binding:vnic_type": "normal",
    "binding:vif_type": "unbound",
    "mac_address": "FA:16:3E:9F:09:48"
  }
}

---
PUT /controller/nb/v2/neutron/ports/e3232392-b752-4f20-869e-2186ac76edba HTTP/1.1

{
  "port": {
    "binding:host_id": "ls",
    "allowed_address_pairs": [],
    "extra_dhcp_opts": [],
    "device_owner": "network:dhcp",
    "binding:profile": {},
    "port_security_enabled": false,
    "security_groups": [],
    "device_id": "dhcpf7a98173-37b1-5e61-9aec-e3057d825ed1-82953a35-0554-48e4-9ace-200a93ad88df",
    "name": "",
    "admin_state_up": true,
    "binding:vif_details": {
      "port_filter": true
    },
    "binding:vnic_type": "normal",
    "binding:vif_type": "ovs"
  }
}

Change-Id: Ie9b9baeea800955413ab71ebf9fa3f258f8df97c
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
8 years agonetvirt: use setID/getID to catch up neutron northbound change 24/25324/1
Isaku Yamahata [Fri, 14 Aug 2015 23:10:12 +0000 (16:10 -0700)]
netvirt: use setID/getID to catch up neutron northbound change

Neutron northbound introduced setID/getID method and deprecated
set<ResourceUUID>/get<ResrouceUUID> by
changeset of 235320f1eef27f7b9a9ad85043fc26f98816f982
change id of I00f473e1da31bb14bbdc27b1ccb1c8026b4343d9
This patch update ovsdb/netvirt to use new method and stop to use
deprecated method.

Change-Id: Ic2f97ddc9a03ef62eb1a66d56598d4b078125d2f
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
8 years agoClean up ConfigActivator 01/25301/1
Stephen Kitt [Fri, 14 Aug 2015 16:20:18 +0000 (18:20 +0200)]
Clean up ConfigActivator

Method refactor to greatly reduce duplicated code.

Change-Id: I3f52d0c4a6a8ade3d87c8a1bd1a94d702f280c1a
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoworkaround: external arp resolver doesn't know IPv6 94/24494/3
Isaku Yamahata [Fri, 24 Jul 2015 02:18:11 +0000 (19:18 -0700)]
workaround: external arp resolver doesn't know IPv6

ovsdb net-virt doesn't support IPv6 yet. On the other hand opensatck
neutron Kilo release supports IPv6.
So as work around, ignore subnet of IPv6 in external arp resolver.
Otherwise the following exception occurs.

> 2015-07-22 15:23:31,185 | ERROR | ntDispatcherImpl | EventDispatcher                  | 400 - org.opendaylight.ovsdb.openstack.net-virt - 1.2.0.SNAPSHOT | Exception in dispatching event NorthboundEvent [handler=NEUTRON_PORT, action=ADD, port=NeutronPort [portUUID=02b4a96c-e117-47e6-8af6-174edaf49c66, networkUUID=15f6f0f3-233a-4e8e-9efa-5ed092aca8b4, name=, adminStateUp=true, status=null, macAddress=FA:16:3E:57:87:DB, fixedIPs=[Neutron_IPs{ipAddress='172.24.4.3', subnetUUID='39cc05f6-dd5e-488a-b13e-b954fb2e0a9d'}, Neutron_IPs{ipAddress='2001:db8::3', subnetUUID='67ba5967-ff6a-4dc0-aea3-cd59d7bd12ef'}], deviceID=076e7e06-8d4f-42a5-9a1a-e8f41a0993d4, deviceOwner=network:router_gateway, tenantID=d41ad324d7a740b685895f6054dc41d7, floatingIPMap={}, 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 "2001:db8::2" 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])(%[\p{N}\p{L}]+)?$"
>         at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145)[39:com.google.guava:18.0.0]
>         at org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.Ipv4Address.<init>(Ipv4Address.java:50)[49:org.opendaylight.yangtools.model.ietf-inet-types:2010.9.24.8-SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.triggerGatewayMacResolver(NeutronL3Adapter.java:1289)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.handleNeutronPortEvent(NeutronL3Adapter.java:212)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.PortHandler.doNeutronPortCreated(PortHandler.java:68)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.PortHandler.processEvent(PortHandler.java:164)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.EventDispatcherImpl.dispatchEvent(EventDispatcherImpl.java:97)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.EventDispatcherImpl.access$100(EventDispatcherImpl.java:30)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.EventDispatcherImpl$1.run(EventDispatcherImpl.java:59)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_79]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_79]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_79]
>         at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]

Change-Id: Ia98dffa1b783e5f9d6d1c7e9b8f263213318789b
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
8 years agoBUG #4045 net-virt-provider: workaround: ipv6 is not supported yet 46/24446/4
Isaku Yamahata [Fri, 24 Jul 2015 02:15:53 +0000 (19:15 -0700)]
BUG #4045 net-virt-provider: workaround: ipv6 is not supported yet

At this point, ipv6 is not supported yet. But openstack neutron does.
Ignore ipv6 address for now. Otherwise exception as blow is thrown.
This patches works around BUG #4045.
TODO: implement ipv6 and then remove this work around

> 2015-07-21 17:22:14,077 | ERROR | ntDispatcherImpl | EventDispatcher                  | 400 - org.opendaylight.ovsdb.openstack.net-virt - 1.2.0.SNAPSHOT | Exception in dispatching event NorthboundEvent [handler=NEUTRON_PORT, action=ADD, port=NeutronPort [portUUID=c625a77a-4720-4115-beb4-fd48bcd36727, networkUUID=dbe6f7d4-695f-45cc-a71c-1454057a4928, name=, adminStateUp=true, status=null, macAddress=FA:16:3E:39:9C:53, fixedIPs=[Neutron_IPs{ipAddress='fdbe:bc75:a195::1', subnetUUID='9a1077b9-a35f-46fe-a2d7-1536301979e8'}], deviceID=76751b66-0e7c-402d-9196-fac1d8c34627, deviceOwner=network:router_interface, tenantID=be9da0d68e28424db03bfb32574c78e5, floatingIPMap={}, 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 "fdbe:bc75:a195:0:0:0:0:1/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)[39: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)[49:org.opendaylight.yangtools.model.ietf-inet-types:2010.9.24.8-SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.providers.openflow13.services.RoutingService.programRouterInterface(RoutingService.java:85)[401:org.opendaylight.ovsdb.openstack.net-virt-providers:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.programRouterInterfaceStage2(NeutronL3Adapter.java:855)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.programRouterInterfaceStage1(NeutronL3Adapter.java:833)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.programFlowForNetworkFromExternal(NeutronL3Adapter.java:720)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.programFlowsForNeutronRouterInterface(NeutronL3Adapter.java:688)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.handleNeutronRouterInterfaceEvent(NeutronL3Adapter.java:227)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.NeutronL3Adapter.handleNeutronPortEvent(NeutronL3Adapter.java:186)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.PortHandler.doNeutronPortCreated(PortHandler.java:68)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.PortHandler.processEvent(PortHandler.java:164)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.EventDispatcherImpl.dispatchEvent(EventDispatcherImpl.java:96)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.EventDispatcherImpl.access$100(EventDispatcherImpl.java:30)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at org.opendaylight.ovsdb.openstack.netvirt.impl.EventDispatcherImpl$1.run(EventDispatcherImpl.java:59)[400:org.opendaylight.ovsdb.openstack.net-virt:1.2.0.SNAPSHOT]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_79]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_79]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_79]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_79]
>         at java.lang.Thread.run(Thread.java:745)[:1.7.0_79]

Change-Id: I5db1bc9ad9f008c984c4ab4fa34569a3baffe310
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
8 years agocatch up for ODL neutron northbound change 93/24493/3
Isaku Yamahata [Fri, 24 Jul 2015 02:08:54 +0000 (19:08 -0700)]
catch up for ODL neutron northbound change

The change set of 062fa890fb918daa62114eddac75d7956c83e5f7,
Change-Id of I9c4041f334d65f7007b68eb7a14eb57a0c08bb9e
in ODL neutron project
eliminates NeutronSubnet.getPortInSubnets().
This causes compilation error with symbol not found.
This patch fixes it by avoiding eliminated method.

Change-Id: I2320e62dd7eb3e7da8218ff9701550bde96d820f
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
8 years agoBug 3378 - ovsdb netvirt needs help in getting mac for a given ip in br-ex 05/25205/1
Anil Vishnoi [Sun, 19 Jul 2015 01:58:31 +0000 (18:58 -0700)]
Bug 3378 - ovsdb netvirt needs help in getting mac for a given ip in br-ex

Added periodic refresh of gateway mac address
Fixed packet deserialization exception

Change-Id: Ib898347770cee213883c5222649b267efb4c701a
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
8 years agoEnable cancel monitoring 37/24937/4
Hsin-Yi Shen [Fri, 7 Aug 2015 18:58:20 +0000 (11:58 -0700)]
Enable cancel monitoring

Enable monitor cancellation rpc method.
Also rewrite code of handle new ssl connection to remove thread sleep
and improve performance.

Signed-off-by: Hsin-Yi Shen <syshen66@gmail.com>
Change-Id: Ic5982e28192ed0db1a363889a9eaf3b0817f17b8

8 years agoMerge "Revert "Remove incorrect or unnecessary relativePaths""
Anil Vishnoi [Tue, 11 Aug 2015 17:05:26 +0000 (17:05 +0000)]
Merge "Revert "Remove incorrect or unnecessary relativePaths""

8 years agoRevert "Remove incorrect or unnecessary relativePaths" 63/25163/1
Flavio Fernandes [Tue, 11 Aug 2015 16:47:45 +0000 (16:47 +0000)]
Revert "Remove incorrect or unnecessary relativePaths"

[12:45:12]  <zxiiro> flaviof: we need ot revert that last one it breaks autorelease

This reverts commit f9e874496792523a80586bdbade89b1a5c4f1bb9.

Change-Id: Id6efe3dc5466d529174ea8f5214ad0ea93f74f97
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
8 years agoMerge "Remove incorrect or unnecessary relativePaths"
Flavio Fernandes [Tue, 11 Aug 2015 16:44:33 +0000 (16:44 +0000)]
Merge "Remove incorrect or unnecessary relativePaths"

8 years agoRemove incorrect or unnecessary relativePaths 56/25156/1
Stephen Kitt [Tue, 11 Aug 2015 15:34:15 +0000 (17:34 +0200)]
Remove incorrect or unnecessary relativePaths

For external modules, relativePath doesn't make much sense.
For internal modules, an empty relativePath can be safely deleted.

Change-Id: Ib67b950d1821797be677cc6524e5d387f415479e
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoFix license header violations in ovs-sfc 33/25033/1
Thanh Ha [Sun, 9 Aug 2015 16:07:55 +0000 (12:07 -0400)]
Fix license header violations in ovs-sfc

Change-Id: Ic9d46b75c5dceeb841a1aa8c3b879ee01ef05fee
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in plugin-mdsal-adapter 32/25032/1
Thanh Ha [Sun, 9 Aug 2015 16:05:43 +0000 (12:05 -0400)]
Fix license header violations in plugin-mdsal-adapter

Change-Id: Ibd122f1560d5dd60adb7d4cfa8b1e6840aac1bc9
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in plugin-shell 31/25031/1
Thanh Ha [Sun, 9 Aug 2015 16:04:53 +0000 (12:04 -0400)]
Fix license header violations in plugin-shell

Change-Id: I2a0241223f5fe2ff135c44f53d9416e3a320b96c
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in ovsdb-plugin-compatibility-layer 30/25030/1
Thanh Ha [Sun, 9 Aug 2015 16:03:54 +0000 (12:03 -0400)]
Fix license header violations in ovsdb-plugin-compatibility-layer

Change-Id: I142a177ed8573ede4de41d225ea30e18b2c866f3
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in northbound 29/25029/1
Thanh Ha [Sun, 9 Aug 2015 16:01:59 +0000 (12:01 -0400)]
Fix license header violations in northbound

Change-Id: Ie2f8925c84f377e718614dd11a501ca9ccc1b102
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in plugin 28/25028/1
Thanh Ha [Sun, 9 Aug 2015 16:00:05 +0000 (12:00 -0400)]
Fix license header violations in plugin

Change-Id: I2cce1802191dd310bf29dc21e9edb26740d6a9f5
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in schemas 27/25027/1
Thanh Ha [Sun, 9 Aug 2015 15:57:20 +0000 (11:57 -0400)]
Fix license header violations in schemas

Change-Id: I2a9685866015fd7f9e28872dee4a00e230da107d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in library 26/25026/1
Thanh Ha [Sun, 9 Aug 2015 15:54:30 +0000 (11:54 -0400)]
Fix license header violations in library

Change-Id: I8f070f8841200bc6233d51b7d918625a44e25587
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in net-virt-providers 25/25025/1
Thanh Ha [Sun, 9 Aug 2015 15:38:32 +0000 (11:38 -0400)]
Fix license header violations in net-virt-providers

Change-Id: Id60cb77eb7b2b16135a7ad99d71f4d3967b615bb
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in net-virt 24/25024/1
Thanh Ha [Sun, 9 Aug 2015 15:35:48 +0000 (11:35 -0400)]
Fix license header violations in net-virt

Change-Id: Ic98613d026ad820a801c0c5a15c898991303aaeb
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in utils 23/25023/1
Thanh Ha [Sun, 9 Aug 2015 15:26:15 +0000 (11:26 -0400)]
Fix license header violations in utils

Change-Id: I0ba65c11fa293a190ef64bca3fea2244933013a8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoFix license header violations in southbound 22/25022/1
Thanh Ha [Sun, 9 Aug 2015 15:21:55 +0000 (11:21 -0400)]
Fix license header violations in southbound

Change-Id: I6fa3bee147742b5bdd3fee92b8194518e091f21b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoUse interfaces rather than classes where appropriate 23/24923/1
Stephen Kitt [Fri, 7 Aug 2015 13:08:01 +0000 (15:08 +0200)]
Use interfaces rather than classes where appropriate

Change-Id: I0be41dca79638ace21900f97182ab0648e89fdcc
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Bug fix for 3545"
Sam Hague [Fri, 7 Aug 2015 00:32:27 +0000 (00:32 +0000)]
Merge "Bug fix for 3545"

8 years agoMerge "Clean up Maven dependencies (part 1)"
Sam Hague [Fri, 7 Aug 2015 00:18:16 +0000 (00:18 +0000)]
Merge "Clean up Maven dependencies (part 1)"

8 years agoBug fix for 3545 64/24364/3
Sharad Mishra [Tue, 21 Jul 2015 21:10:06 +0000 (17:10 -0400)]
Bug fix for 3545

https://bugs.opendaylight.org/show_bug.cgi?id=3545

Change-Id: If216444c19d5457b0da08104ff19b227441b8801
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
8 years agoGeneral Sonar clean-up 32/24532/5
Stephen Kitt [Fri, 24 Jul 2015 14:07:50 +0000 (16:07 +0200)]
General Sonar clean-up

Return simplification in a number of places:
* drop useless return at the end of void methods (unless it comes before
  commented code)
* simplify return ... ? true : false
* simplify variable declaration immediately followed by return

Drop unused local variables, and move some declarations closer to first
use (in particular when there's a redundant initialisation value).

Drop unused fields where it's safe to do so; in particular,
OvsdbClientImpl's exceptions were never initialised so we can even drop
the corresponding getter.

Drop unnecessary casts and use the Java 7 <> operator as appropriate.

Use primary types instead of wrappers where appropriate (dpid,
openFlowPort).

Drop redundant final modifiers on static methods.

Drop redundant .toString() calls.

Use .parseInt(), .parseShort() etc. instead of .decode().

Drop a few dead methods.

Avoid calling new String() explicitly.

Drive-by cleaning:
* AbstractHandler:
  - switch instead of multiple ifs
* BridgeConfigurationManagerImpl, ConfigurationServiceImpl:
  - rework getControllerIPAddress() to loop over the configuration
    properties
  - in getNormalizedRow(), avoid rebuilding the array every time we go
    through the loop
* ConfigurationServiceImpl:
  - in getTunnelEndPoint(), trace the tunnel endpoint only if we get
    one (avoids a NPE)
* EgressAclService, IngressAclService:
  - srcIpPrefix only makes sense if securityRuleIpPrefix != null, so
    move into the corresponding block

Change-Id: I7ca2a1a37f4795b3c0141b2b3a00977a15ffa5dd
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoClean up Maven dependencies (part 1) 91/24791/2
Stephen Kitt [Wed, 5 Aug 2015 08:53:57 +0000 (10:53 +0200)]
Clean up Maven dependencies (part 1)

Remove unused dependencies, and explicitly declare dependencies
which are used directly (and used to be pulled in transitively).
This will help future work on odlparent and upgrading upstream
dependencies, as well as stabilising the dependencies on other
ODL projects.

The changes necessary were determined using
dependency:analyze-report.

Change-Id: Ie3ac0a6e4a98c69e253b9c851e7b0d5dc5f3ded8
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoRevert "Support Jackson 2.5" 70/24870/1
Sam Hague [Thu, 6 Aug 2015 14:36:48 +0000 (14:36 +0000)]
Revert "Support Jackson 2.5"

This reverts commit 70b00fe87a469abadf37f84602d436efe358b5cb.

This patch was created in response to c464b9a2a63c4ff41468b2e20ac48db806c918d6 in odlparent. That patch caused other failures so it was reverted and now this patch is reverted til the issues are fixed.

Change-Id: I7025b96a2fd43eec50ca4f0d405e4ceedf88bdf4
Signed-off-by: Sam Hague <shague@redhat.com>
8 years agoSupport Jackson 2.5 92/24792/1
Stephen Kitt [Wed, 5 Aug 2015 09:16:27 +0000 (11:16 +0200)]
Support Jackson 2.5

TypeIdResolver added a new variant of typeFromId(), support that
in OvsdbTypesIdResolver.

(Apparently this class isn't used anywhere, so it might be better
to delete it instead...)

Change-Id: Iffe0a13fb84517cf2479189320e5c284ca68e941
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoUse parent version for maven-dependency-plugin 61/24761/1
Stephen Kitt [Tue, 4 Aug 2015 11:52:51 +0000 (13:52 +0200)]
Use parent version for maven-dependency-plugin

Change-Id: Id04c7d3cf54b43c68b1de78059f0ad02d153e9d4
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Clean up logging"
Flavio Fernandes [Sat, 25 Jul 2015 01:22:08 +0000 (01:22 +0000)]
Merge "Clean up logging"

8 years agoClean up logging 25/24525/1
Stephen Kitt [Fri, 24 Jul 2015 13:58:09 +0000 (15:58 +0200)]
Clean up logging

Clean up logger declarations as per
https://wiki.opendaylight.org/view/Logging_Best_Practices: always
specify
    private static final Logger LOG = LoggerFactory.getLogger(...)
and use parameterised logging.

Change-Id: Ia6eb26588c631a52483b059d10d752b00daf5a98
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoIndicate that RefType values need to be lower-case 30/24530/1
Stephen Kitt [Fri, 24 Jul 2015 13:21:16 +0000 (15:21 +0200)]
Indicate that RefType values need to be lower-case

Sonar complains that RefType's values should be upper-cased (as
constants), but since they match JSON values they need to be lower-case.

While we're at it, drop an unnecessary null declaration, remove the
redundant static modifier from RefType, and merge two if statements.

Change-Id: I98c7baf63cf42784ba40416bff96259ae8327084
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoExplicitly set git-review branch to master 22/24422/2
Flavio Fernandes [Wed, 22 Jul 2015 19:21:36 +0000 (15:21 -0400)]
Explicitly set git-review branch to master

Change-Id: Ic5c7989ade5262f846bbad7f5a36bf8754542aab
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
Also-By: Thanh Ha <thanh.ha@linuxfoundation.org>
8 years agoAllow NetvirtIT to determine its karaf version 93/24393/1
Stephen Kitt [Wed, 22 Jul 2015 13:22:18 +0000 (15:22 +0200)]
Allow NetvirtIT to determine its karaf version

Pax Exam needs a dependency on karaf so
AbstractConfigTestBase::getKarafDistro() can determine the appropriate
version.

Change-Id: I7edd30e4698ec5aa9f417e396e38f5408d7b2645
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoAllow SouthboundIT to determine its southbound-karaf version 83/24383/1
Stephen Kitt [Wed, 22 Jul 2015 09:11:47 +0000 (11:11 +0200)]
Allow SouthboundIT to determine its southbound-karaf version

Since AbstractConfigTestBase::getKarafDistro() now uses
versionAsInProject(), Pax Exam needs a dependency on southbound-karaf so
it can determine the appropriate version.

Change-Id: Icbfaab256ef9500982dcf13dbf2a2b68334bcda0
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Remove all redundant public modifiers in interfaces"
Flavio Fernandes [Tue, 21 Jul 2015 21:54:50 +0000 (21:54 +0000)]
Merge "Remove all redundant public modifiers in interfaces"

8 years agoMerge "Sonar clean-up: OF13Provider"
Sam Hague [Tue, 21 Jul 2015 12:53:48 +0000 (12:53 +0000)]
Merge "Sonar clean-up: OF13Provider"

8 years agoMerge "Add libvirt support"
Sam Hague [Tue, 21 Jul 2015 12:47:31 +0000 (12:47 +0000)]
Merge "Add libvirt support"

8 years agoAdd libvirt support 39/24339/1
Stephen Kitt [Tue, 21 Jul 2015 12:26:13 +0000 (14:26 +0200)]
Add libvirt support

Set up memory sizes with libvirt. I'm not familiar enough with Ruby to
know if there's a way of combining the :virtualbox and :libvirt
stanzas...

(The box images still need to be mutated manually.)

Change-Id: Ic2d2531f4e696127155cf1522899591f61c7fa6e
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoUpdate showOvsdbMdsal.py to display bridge name and mac next to alias 13/24313/1
Flavio Fernandes [Mon, 20 Jul 2015 22:49:53 +0000 (18:49 -0400)]
Update showOvsdbMdsal.py to display bridge name and mac next to alias

Change-Id: Ida68f52803737eb06bda03bbcc4ccf36758ab046
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
8 years agoRemove all redundant public modifiers in interfaces 91/24291/1
Stephen Kitt [Mon, 20 Jul 2015 14:49:37 +0000 (16:49 +0200)]
Remove all redundant public modifiers in interfaces

The public modifier is unnecessary in interfaces, their contents are
public by default.

Change-Id: Id307c25a9a704332dc75032432d1d2755bb3360e
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoSonar clean-up: OF13Provider 44/24244/3
Stephen Kitt [Fri, 17 Jul 2015 13:30:06 +0000 (15:30 +0200)]
Sonar clean-up: OF13Provider

This class contains lots of methods with unused parameters, but they
follow a pattern so override that instead of cleaning up the
parameters.

Dead-code elimination (unused methods, unnecessary initialisations).
Code which corresponds to comment method calls is marked as such so
it no longers causes Sonar warnings (with a TODO added to check the
call sites).

getTunnelReadinessStatus() appears unused but is tested for in the
corresponding unit-test class, so keep it for now and override the
unused warning.

Long dpid -> long dpid.

if (!local) {} if (local) {} -> if (!local) {} else {} (the value of
local doesn't change in the first block).

networkingProviderManager is initialised and used in a single method,
so convert it to a local variable and adjust the corresponding test.

Return value simplification (? true : false isn't necessary).

<> operator in OF13ProviderTest.

Change-Id: Ibf74d332257f063ffc603e663b1707829ddaa6e3
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoBug 3378 - ovsdb netvirt needs help in getting mac for a given ip in br-ex 53/24253/1
Anil Vishnoi [Tue, 7 Jul 2015 23:50:43 +0000 (16:50 -0700)]
Bug 3378 - ovsdb netvirt needs help in getting mac for a given ip in br-ex

This patch, does not do periodic refresh of gateway mac. Will push that in next gerrit.

Change-Id: Ie1a5a81fb7f196874f87bfbe0095ea595756a0a4
Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
(cherry picked from commit 65a8de37c522f8f09caf6be73997906b98fd0b89)

8 years agoFix it failure: Error resolving artifact 50/24250/1
Flavio Fernandes [Fri, 17 Jul 2015 16:14:22 +0000 (12:14 -0400)]
Fix it failure: Error resolving artifact

Fix the following issue:
error: java.io.IOException: Error resolving artifact org.opendaylight.ovsdb:southbound-karaf:zip:1.1.0-SNAPSHOT

In it builds, such as:
https://jenkins.opendaylight.org/releng/view/ovsdb/job/ovsdb-daily-full-lithium-integration/OVS_VERSION=2.3.0,jdk=openjdk7,nodes=dynamic_docker/

Change-Id: I91daf9655879369eb3512e653223b0c4c1e084bb
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
8 years agoMerge "Sonar clean-up: braces for control statements"
Flavio Fernandes [Fri, 17 Jul 2015 14:04:09 +0000 (14:04 +0000)]
Merge "Sonar clean-up: braces for control statements"

8 years agoMerge "Added fixed DHCP security rules, which will be added on a VM create."
Sam Hague [Fri, 17 Jul 2015 11:32:32 +0000 (11:32 +0000)]
Merge "Added fixed DHCP security rules, which will be added on a VM create."

8 years agoSonar clean-up: braces for control statements 29/24229/1
Stephen Kitt [Fri, 17 Jul 2015 09:22:49 +0000 (11:22 +0200)]
Sonar clean-up: braces for control statements

Add braces for if, while, for statements. (Automated, thanks IntelliJ!)

In a few cases a different change was more appropriate:
* ConfigurationServiceImpl.java: in unsetOvsdbConfigurationService(),
  the if is redundant, we might as well set to null unconditionnally.
* ConnectionServiceImpl.java: likewise
* OvsdbLibraryIt.java: instead of
  if (...) { return true; } return false;
  just
  return ...;
* OvsdbVswitchdSchemaConstants.java: likewise

Change-Id: Ib35b395a64c3caa17c32a3f51c763d8a2f88b093
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoAdded fixed DHCP security rules, which will be added on a VM create. 57/23757/7
Aswin Suryanarayanan [Mon, 6 Jul 2015 14:39:52 +0000 (20:09 +0530)]
Added fixed DHCP security rules, which will be added on a VM create.

Change-Id: I8652c986acf3488ddf661ed265bff4cf6fb5ed1e
Signed-off-by: Aswin Suryanarayanan <aswin.suryanarayanan@hp.com>
8 years agoClean-up in BridgeOperationalState 05/24205/1
Stephen Kitt [Thu, 16 Jul 2015 14:37:00 +0000 (16:37 +0200)]
Clean-up in BridgeOperationalState

The main fix is moving null-checks on iid before their first use.

db and changes are only used in the constructor, they don't need to
be in the instance; since the class isn't serializable removing the
fields doesn't change anything external.

Java 7 improvements: <> operator and merged exceptions.

Use Optional.fromNullable() to simplify some Optional creation code
and avoid double calls to getAugmentation().

Change-Id: Id6b8a13c46d2b38b23f215f200314151b9eb2b0a
Signed-off-by: Stephen Kitt <skitt@redhat.com>
8 years agoMerge "Fix Javadoc error."
Flavio Fernandes [Mon, 13 Jul 2015 21:49:46 +0000 (21:49 +0000)]
Merge "Fix Javadoc error."

8 years agoFix Javadoc error. 70/24070/1
Alexis de Talhouët [Mon, 13 Jul 2015 19:45:36 +0000 (15:45 -0400)]
Fix Javadoc error.

[ERROR] /Users/adetalhouet/Documents/odl/Beryllium/ovsdb/openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/impl/NeutronL3Adapter.java:288: error: @param name not found
[ERROR] * @param action the {@link org.opendaylight.ovsdb.openstack.netvirt.api.Action} action to be handled.

Java version "1.8.0_45"

Change-Id: I460cb898c3a02678ecd4f58281bd289d607673e3
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agoAdd showOvsdbMdsal.py tool 83/23983/3
Flavio Fernandes [Fri, 10 Jul 2015 13:48:35 +0000 (09:48 -0400)]
Add showOvsdbMdsal.py tool

This tool can provide useful info in regards to ovsdb's mdsal structures.
It looks at the operational or config trees in mdsal, depending on the
parameter '--config':

Patch set 2: code review

$ ./showOvsdbMdsal.py -h
Usage: showOvsdbMdsal.py [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -d, --debug           Verbosity. Can be provided multiple times for more
                        debug.
  -n, --noalias         Do not map nodeId of bridges to an alias
  -i ODLIP, --ip=ODLIP  opendaylights ip address
  -t ODLPORT, --port=ODLPORT
                        opendaylights listening tcp port on restconf
                        northbound
  -u ODLUSERNAME, --user=ODLUSERNAME
                        opendaylight restconf username
  -p ODLPASSWORD, --password=ODLPASSWORD
                        opendaylight restconf password
  -c, --config          parse mdsal restconf config tree instead of
                        operational tree
  -f, --hide-flows      hide flows

Examples of what to expect:

  https://gist.githubusercontent.com/anonymous/3a952cec49ef92461752/raw/7abfedcd7790acc5b5cef07a2c08da0405f303c6/gistify465337.txt

Change-Id: Ica94e00a14d17682acdedad3b495833de330afc4
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
8 years agoMerge "Update README to reflect LBaaS postman collection."
Flavio Fernandes [Mon, 13 Jul 2015 19:17:28 +0000 (19:17 +0000)]
Merge "Update README to reflect LBaaS postman collection."

8 years agoMerge "Change log level of raw json rpc message"
Flavio Fernandes [Mon, 13 Jul 2015 19:16:56 +0000 (19:16 +0000)]
Merge "Change log level of raw json rpc message"

8 years agoChange log level of raw json rpc message 96/23796/3
Hsin-Yi Shen [Mon, 6 Jul 2015 21:00:37 +0000 (14:00 -0700)]
Change log level of raw json rpc message

When hypervisor/hardware vtep are not implemented in the right way and sending jsonrpc message with wrong format, the log of raw json rpc message helps debugging.

Signed-off-by: Hsin-Yi Shen <syshen66@gmail.com>
Change-Id: I033abdb251065dd19c8ee198417f04bcd152e761

8 years agoAdding more documentation/comments to the code. 28/24028/1
Marcelo Amaral [Sat, 11 Jul 2015 16:16:42 +0000 (18:16 +0200)]
Adding more documentation/comments to the code.

Change-Id: Ieb9b84fd53b400b3c01c5b583337dd480b2207c1

Signed-off-by: Marcelo C. Amaral <marcelo.amaral@bsc.es>
8 years agoUpdate README to reflect LBaaS postman collection. 15/24015/1
Alexis de Talhouët [Fri, 10 Jul 2015 19:53:39 +0000 (15:53 -0400)]
Update README to reflect LBaaS postman collection.

Change-Id: I53057cd71fed174debbf1e6be579fb36e3d76b41
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agoAdd postman collection to interact with LBass. 55/23955/1
Alexis de Talhouët [Thu, 9 Jul 2015 16:28:17 +0000 (12:28 -0400)]
Add postman collection to interact with LBass.

This postman contains queries to interact with:
- pool
- pool member
- loadbalancer

It also contains queries to create a network, a subnet and two ports, in order to have a proper network topology for testing purposes.

Change-Id: I9bc1fd6e7d59abea5b22bb8260d79b9fa11e9dc9
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agoBug 3962: Event dispatcher found no handler for NorthboundEvent (part 1) 33/23933/1
Flavio Fernandes [Wed, 8 Jul 2015 16:12:05 +0000 (12:12 -0400)]
Bug 3962: Event dispatcher found no handler for NorthboundEvent (part 1)

We cannot reproduce this locally, so this commit adds some better logs
to inform what handlers have this issue.

Patch set 2: code review.
Patch set 3: remove redundant param on the non-error path: ref.

Change-Id: I394984cf41f7e310919efdb7c4bbf394ba1fa89d
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
(cherry picked from commit 0b6e3a67980f9e30ba9cf07ddd0fd2d1c6664e1f)

8 years agoMerge Sonar fixes from stable/lithium.. 59/23859/2
Andre Fredette [Mon, 6 Jul 2015 13:54:57 +0000 (09:54 -0400)]
Merge Sonar fixes from stable/lithium..

Change-Id: I03d18ba2dcaa76de565d53bc9dd68f9b28c2b240
Signed-off-by: Andre Fredette <afredette@redhat.com>
8 years agoMerge "bug 3909: Disable SSLv3 connection for ovsdb server"
Flavio Fernandes [Tue, 7 Jul 2015 20:07:52 +0000 (20:07 +0000)]
Merge "bug 3909: Disable SSLv3 connection for ovsdb server"

8 years agoBug 3954: NPE exception in isDistributedArpDisabled() 53/23853/1
Flavio Fernandes [Tue, 7 Jul 2015 19:26:28 +0000 (15:26 -0400)]
Bug 3954: NPE exception in isDistributedArpDisabled()

Change-Id: I8eb3fbef43c3a37b67c297596ec70165a7d98e09
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
8 years agobug 3909: Disable SSLv3 connection for ovsdb server 39/23539/6
Hsin-Yi Shen [Mon, 29 Jun 2015 20:42:01 +0000 (13:42 -0700)]
bug 3909: Disable SSLv3 connection for ovsdb server

SSLv3 has known vulnerability.
For security reason, we should disable sslv3 protocol for ovsdb server.

Signed-off-by: Hsin-Yi Shen <syshen66@gmail.com>
Change-Id: I1267711efe7cebcd3252d81f184aab8782b6d72d

8 years agoMerge "Add ODL controller ready check before running robot tests"
Sam Hague [Mon, 6 Jul 2015 21:33:41 +0000 (21:33 +0000)]
Merge "Add ODL controller ready check before running robot tests"

8 years agoAdd ODL controller ready check before running robot tests 06/23606/7
Ben Eze [Tue, 30 Jun 2015 19:14:08 +0000 (15:14 -0400)]
Add ODL controller ready check before running robot tests

Change-Id: I8ee340873ee47af89373afe5ed81bcff787a524a
Signed-off-by: Ben Eze <beze@inocybe.ca>
8 years agoMerge "Update NeutronL3Adapter UT"
Sam Hague [Mon, 6 Jul 2015 18:40:04 +0000 (18:40 +0000)]
Merge "Update NeutronL3Adapter UT"

8 years agoMerge "Sonar bug fix: block of commented-out lines of code should be removed"
Sam Hague [Mon, 6 Jul 2015 16:49:26 +0000 (16:49 +0000)]
Merge "Sonar bug fix: block of commented-out lines of code should be removed"

8 years agoSonar bug fix: block of commented-out lines of code should be removed 84/23784/1
Raksha Madhava Bangera [Mon, 6 Jul 2015 16:24:05 +0000 (09:24 -0700)]
Sonar bug fix: block of commented-out lines of code should be removed

Signed-off-by: Raksha Madhava Bangera <raksha.madhava.bangera@intel.com>
8 years agoUpdate NeutronL3Adapter UT 35/23535/4
Alexis de Talhouët [Mon, 29 Jun 2015 21:04:33 +0000 (17:04 -0400)]
Update NeutronL3Adapter UT

Patch Set 1: initial commit
Patch Set 2: some more to go
Patch Set 3: some more tests - done with the class

Change-Id: I1081c7e70e7e437ac6260624c7f1b0cc4a5ceeae
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agoUpdate OF13Provider UT 08/23708/2
Alexis de Talhouët [Thu, 2 Jul 2015 20:57:06 +0000 (16:57 -0400)]
Update OF13Provider UT

Change-Id: Idba5421b9a4f6e63e713f368c8dd3011c5c11819
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
8 years agoBug 3893: provide well known url to know that net-virt topology is ready 14/23614/2
Flavio Fernandes [Tue, 30 Jun 2015 15:58:50 +0000 (11:58 -0400)]
Bug 3893: provide well known url to know that net-virt topology is ready

With this change, one can check the following url and know that ovsdb's netvirt
is up and functional:

   http://${ODL_IP}:8080/restconf/operational/network-topology:network-topology/topology/netvirt:1

Patch set 2: fix transaction
Patch set 3: code review, move new function to OvsdbInventoryServiceImpl
Patch set 4: typo (functional)

Change-Id: Ibe71d823b986fcdc9c12b6fa2a3994ae158fb696
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoMerge "Added the robot framework to OVSDB VMs"
Flavio Fernandes [Mon, 29 Jun 2015 17:12:59 +0000 (17:12 +0000)]
Merge "Added the robot framework to OVSDB VMs"

9 years agoAdded the robot framework to OVSDB VMs 54/23454/9
Ben Eze [Fri, 26 Jun 2015 20:26:32 +0000 (16:26 -0400)]
Added the robot framework to OVSDB VMs

Change-Id: Ib57793b05661d5d5487788574ef65cfa990d3cb4
Signed-off-by: Ben Eze <beze@inocybe.ca>
9 years agoFix Javadoc errors. 29/23429/1
Alexis de Talhouët [Fri, 26 Jun 2015 14:21:16 +0000 (10:21 -0400)]
Fix Javadoc errors.

The build was failing due to those errors:
[ERROR] /ovsdb/openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/api/EgressAclProvider.java:13: error: @param name not found
 --> doesn't exist
[ERROR] /ovsdb/openstack/net-virt/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/api/IngressAclProvider.java:22: error: @param name not found
--> doesn't exist
[ERROR] /ovsdb/openstack/net-virt-providers/src/main/java/org/opendaylight/ovsdb/openstack/netvirt/providers/openflow13/AbstractServiceInstance.java:205: error: @param name not found
--> Node instead of node

Java version "1.8.0_45"

Change-Id: I386bb5ba6be41c134c6f843f78ef06147528fd61
Signed-off-by: Alexis de Talhouët <adetalhouet@inocybe.com>
9 years agoMerge "Sonar bug fix"
Flavio Fernandes [Fri, 26 Jun 2015 13:41:20 +0000 (13:41 +0000)]
Merge "Sonar bug fix"

9 years agoBug 3841 - wrong severity level: getTenantNetwork did not find network 78/23178/2
Flavio Fernandes [Tue, 23 Jun 2015 15:33:24 +0000 (11:33 -0400)]
Bug 3841 - wrong severity level: getTenantNetwork did not find network

when using normal ovsdb net-virt, I see benign logs like these:

WARN  | ntDispatcherImpl | TenantNetworkManagerImpl | 271 - org.opendaylight.ovsdb.openstack.net-virt - 1.1.0.SNAPSHOT | getTenantNetwork did not find network for patch-int

these should be debug at best; not warning.

Patch set 2: add changes from code review

Change-Id: I6f0b0aa6880c2b6892e5b9974ce5df6c0d217bf5
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoBug-2094 : less is more remove redundant code 70/23170/1
Flavio Fernandes [Tue, 23 Jun 2015 13:50:33 +0000 (09:50 -0400)]
Bug-2094 : less is more remove redundant code

In pipeline, there is no need to set register value to 0,
as that is the expected value upon classifier table.

Change-Id: Iea4c53c14be980713ff060c8c9df8869c60926df
Signed-off-by: Flavio Fernandes <ffernand@redhat.com>
9 years agoBug 3831 - ignore unknown OVS interface and datapath types 53/23153/1
Eric Multanen [Mon, 22 Jun 2015 16:45:18 +0000 (09:45 -0700)]
Bug 3831 - ignore unknown OVS interface and datapath types

Ighore OVSDB interface or datapath types which are not
present in the MD-SAL southbound model (but are present
in the OVS nodes open_vswitch table iface-types or
datapath-types columns).

Tested by making a build of ODL which removed supported
types from the ODL code to varify the log warnings
were created.

Change-Id: I05e689fa2b2dc906e3083e4fc44ba60abdb1d352
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
(cherry picked from commit c525fd2b379171af656ffd060d9e520ab4e3854e)

9 years agoBug 3831 - add stt interface type to model 45/23145/1
Eric Multanen [Mon, 22 Jun 2015 15:47:17 +0000 (08:47 -0700)]
Bug 3831 - add stt interface type to model

On a build from openvswitch master branch, there was an
interface type 'stt' which was not included in the ovsdb.yang
model for the southbound MD-SAL.  When an OVSDB connection
was made to this OVS node, the operational md-sal failed
to populate.

Adding the 'stt' interface type to the model is a quick
fix.  A better fix would ignore types not present in the model.

Change-Id: Idf259998f73d43be587d19de73794a174d4d81d3
Signed-off-by: Eric Multanen <eric.w.multanen@intel.com>
(cherry picked from commit 444b68f6f7637d9b4eb7e4f07c9ff6ced4e8ce76)

9 years agoSonar bug fix 42/23142/2
Raksha Madhava Bangera [Mon, 22 Jun 2015 20:26:36 +0000 (13:26 -0700)]
Sonar bug fix

Removing redundant 'public' keyword in interface in ConfigurationService.java

Signed-off-by: Raksha Madhava Bangera <raksha.madhava.bangera@intel.com>
9 years agoRemove frame size limit for scale OVS 56/20556/2
Sharon Aicler [Fri, 15 May 2015 19:04:03 +0000 (12:04 -0700)]
Remove frame size limit for scale OVS

Change-Id: I4f1c7e29c332964eea077fd6958453be34fa04a5
Signed-off-by: Sharon Aicler <saichler@cisco.com>
9 years agoBug 3647 :Operational not set correctly when other-config is removed from switch. 02/23102/3
Sharad Mishra [Mon, 22 Jun 2015 06:38:24 +0000 (23:38 -0700)]
Bug 3647 :Operational not set correctly when other-config is removed from switch.

similar to BZ 3647, but for other-config

Change-Id: I48f6636e5d3e67de024958a1e3b9e8efb7e6f8dc
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>
9 years agoBug 3647 : Fix for bugzilla 3647 98/22998/4
Sharad Mishra [Thu, 18 Jun 2015 07:01:04 +0000 (00:01 -0700)]
Bug 3647 : Fix for bugzilla 3647

https://bugs.opendaylight.org/show_bug.cgi?id=3647

Change-Id: I504a7155050bb47e3eb768ab7420c8b5892af324
Signed-off-by: Sharad Mishra <sharad.d.mishra@intel.com>