groupbasedpolicy.git
6 years agoRelease Carbon release/carbon
jenkins-releng [Mon, 22 May 2017 02:41:06 +0000 (02:41 +0000)]
Release Carbon

6 years agoBug 8228 - metadata service fix made cleaner 66/55966/13
Tomas Cechvala [Mon, 10 Apr 2017 15:39:51 +0000 (17:39 +0200)]
Bug 8228 - metadata service fix made cleaner

This patch sticks more to the architecture.

In OPNFV scenarios, Openstack metadata service may be reached
via DHCP port which acts as a GW to metadata server. VMs have
a route configured to metadata server via DHCP port.

Metadata IP and port are specified in blueprint cfg file and
processed by neutron-mapper bundle. An ip-prefix  endpoint is
registered by neutron-mapper, it points to the same mac- address
endpoint as DHCP ip-prefix endpoint, i.e. DHCP ip-prefix EP &
Metadata ip-prefix EP point to the same mac address endpoint.

This configuration is supported by VPP renderer's implementation
of location resolver. In this case both DHCP and Metadata have
the same absolute location.

When ACL manager recongnizes this fact, it will build ACL for
both endpoints behind the same interface.

Remote IP prefix is revisioned here too. Remote IP prefix is
mapped to GBP as external ip-prefix endpoint. Location resolver
then looks for external interfaces and on nodes and create a
relative location for this endpoint.

Change-Id: Id72d5646fbd7af1a8094749e58ba714bb3d84959
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
6 years agoBug 8338: Fix for GBP DLUX UI issue 49/56349/2
Michal Cmarada [Tue, 2 May 2017 08:16:12 +0000 (10:16 +0200)]
Bug 8338: Fix for GBP DLUX UI issue

this fixes imports in DLUX UI for GBP

Change-Id: I6ba32cbd214ae175a2b2d957b05f9e62fb687ac3
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
6 years agoBug 8009 - public intf can be learned from HC 31/55731/3
Tomas Cechvala [Thu, 20 Apr 2017 13:11:50 +0000 (15:11 +0200)]
Bug 8009 - public intf can be learned from HC

Public interface can be specified not only in bundle configuration,
but directly from HC too by writing 'public-interface' to config DS
ietf-interfaces:interfaces/interface/description

Interface is marked as external if it is specified in blueprint
config of the bundle OR if it is learned from HC.

Change-Id: I330b25258cd4f32458734f80a90bbaf18a113ba3
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoFix faas version to Carbon version 58/55058/1
Thanh Ha [Fri, 14 Apr 2017 17:28:17 +0000 (13:28 -0400)]
Fix faas version to Carbon version

GBP is incorrectly depending on the Nitrogen version of a Faas artifact
when it should be depending on the Carbon version.

Change-Id: I8faf2f5c8114b795f781c074baa8557e1e697580
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
7 years agoBug 8228: Metadata service fix 85/54985/3
Michal Cmarada [Thu, 13 Apr 2017 14:23:20 +0000 (16:23 +0200)]
Bug 8228: Metadata service fix

This is a hack to fix metadata service connectivity in openstack,
once IPprefix rules are fully supported in gbp we shall implement it
correctly.

- fixes Metadata service connectivity in FDS L3 scenario for openstack
- adding configuration file for metadata IP prefix setup

Change-Id: I9d42f1da4d845d3a5aeaf676c80ebc99034346fa
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoMerge "Bug 8220 - fixing ACE entry in VPP renderer" into stable/carbon
Tomas Cechvala [Thu, 13 Apr 2017 14:06:16 +0000 (14:06 +0000)]
Merge "Bug 8220 - fixing ACE entry in VPP renderer" into stable/carbon

7 years agoBUG-7657: Karaf 4 migration: provide Karaf 4 groupbasedpolicy features 55/54955/2
Michal Cmarada [Thu, 13 Apr 2017 11:15:31 +0000 (13:15 +0200)]
BUG-7657:  Karaf 4 migration: provide Karaf 4 groupbasedpolicy features

Karaf 4 groupbasedpolicy features

Change-Id: If0db8495644f8969c39f386f236d6015574fb95b
Signed-off-by: Claudio D. Gasparini <claudio.gasparini@pantheon.tech>
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoBug 8220 - fixing ACE entry in VPP renderer 48/54948/1
Tomas Cechvala [Tue, 11 Apr 2017 12:22:31 +0000 (14:22 +0200)]
Bug 8220 - fixing ACE entry in VPP renderer

Only tenant/provider domain subnets should be
blocked in the end of entries for tenant networking.

Change-Id: Ia7b829c384ccd90d12428befb6a50548885a3ce1
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoMerge "Bug 8174:Update v3po yangs in vpp renderer" into stable/carbon
Michal Cmarada [Wed, 12 Apr 2017 10:43:00 +0000 (10:43 +0000)]
Merge "Bug 8174:Update v3po yangs in vpp renderer" into stable/carbon

7 years agoBug 8174:Update v3po yangs in vpp renderer 39/54839/1
Shakib Ahmed [Fri, 24 Mar 2017 23:55:19 +0000 (16:55 -0700)]
Bug 8174:Update v3po yangs in vpp renderer

Depends-On: Ib6403785a384fb51101af7114d4700324b9e138a
Change-Id: I03f6a8e72298b5f6b5caf087572180e3c0272527
Signed-off-by: Shakib Ahmed <sheikahm@cisco.com>
7 years agoBug-8168: Fix for configuration file name mismatch in blueprint 33/54833/1
Michal Cmarada [Wed, 12 Apr 2017 06:07:21 +0000 (08:07 +0200)]
Bug-8168: Fix for configuration file name mismatch in blueprint

Change-Id: I5aa0fd67fd096d8892b669a3291dbb2190dc1adb
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoUpdate .gitreview to stable/carbon 47/54647/1
Anil Belur [Tue, 11 Apr 2017 01:26:29 +0000 (11:26 +1000)]
Update .gitreview to stable/carbon

Change-Id: I3379de59477f39aac8e224ab9982a69ce191e504
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
7 years agoBug-8168: Fix for VPP renderer startup configuration file 64/54364/3
Michal Cmarada [Mon, 10 Apr 2017 13:00:25 +0000 (15:00 +0200)]
Bug-8168: Fix for VPP renderer startup configuration file

when vpp renderer feature is installed a default config
file should be created. This fixes configuration file not beeing created

Change-Id: I9479b27f595ee9fa1757c3bafe419d19264f2084
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoBug-8168: Neutron VPP mapper initial configuration file fix 22/54422/2
Michal Cmarada [Mon, 10 Apr 2017 12:50:19 +0000 (14:50 +0200)]
Bug-8168: Neutron VPP mapper initial configuration file fix

When neutron vpp mapper feature is installed a default config file
was not created. This fixes the issue

Change-Id: Ic8c53b35742234be32e108aef91d198580eb28e9
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoBug 8194: fixed vpp-renderer remote procedure calls in cluster 18/51618/9
Vladimir Lavor [Thu, 9 Feb 2017 13:07:41 +0000 (14:07 +0100)]
Bug 8194: fixed vpp-renderer remote procedure calls in cluster

* vpp RPC implementation is now registered and available
          on every cluster node

Change-Id: I5b00fb57d9aa145a8a5b4710bd62357a02d1ec35
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoBug 6743: added futures to InterfaceManager and VppNodeManager 48/51348/5
Vladimir Lavor [Thu, 2 Feb 2017 16:10:57 +0000 (17:10 +0100)]
Bug 6743: added futures to InterfaceManager and VppNodeManager

Change-Id: I8af3f14d644310a298ab37a9b4b10ccb147f1fe4
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoBug 8192: dynamic nat is processed in case there is no static nat entry 62/54362/4
Vladimir Lavor [Wed, 5 Apr 2017 13:51:40 +0000 (15:51 +0200)]
Bug 8192: dynamic nat is processed in case there is no static nat entry

Change-Id: Ib02ca4047658b829676dfdabf01e2138a1fa8b34
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoBUG-8192: Setting Nat outbound when node with ext. interface is connected 82/53782/3
Michal Cmarada [Mon, 10 Apr 2017 06:57:31 +0000 (08:57 +0200)]
BUG-8192: Setting Nat outbound when node with ext. interface is connected

Nat outbound is set when node with external interface is connected.

Change-Id: I1bc3919852351bf3333e10fc70133fecdf40e4c0
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoincreased UT coverage in vpp renderer - VppEndpointLocationProvider 01/51301/5
Vladimir Lavor [Wed, 1 Feb 2017 13:10:29 +0000 (14:10 +0100)]
increased UT coverage in vpp renderer - VppEndpointLocationProvider

Change-Id: I1f89fae6eb98fd28d94cc4455595d6e1d4aec009
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoMerge "Implemented unregister l3-prefix endpoint"
Martin Sunal [Mon, 27 Mar 2017 10:43:35 +0000 (10:43 +0000)]
Merge "Implemented unregister l3-prefix endpoint"

7 years agoFixes addressing test reports 20/53520/12
Michal Cmarada [Fri, 24 Mar 2017 09:05:02 +0000 (10:05 +0100)]
Fixes addressing test reports

 - bug 8069 caching security groups and group
   rules in case notifications are disordered
 - mapping ipv6 allocation pools in subnets
 - tiny fix in processing SNAT matching table

Change-Id: I9cf4617d493e50f448be29455186cb6067a730e4
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoBug 8068 explicit specification of public interface 87/53487/7
Michal Cmarada [Wed, 22 Mar 2017 14:38:50 +0000 (15:38 +0100)]
Bug 8068 explicit specification of public interface

IP address of public interface has to be specified in control
plane for external networking to work. However, not all
integration tests do this. This patch introduces a mechanism
for specifying public interface in blueprint configuration
so that it's known during the entire runtime of ODL.

Change-Id: Ice3f0d86e93cbfab802d2da308d629f523d218f5
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoImplemented unregister l3-prefix endpoint 89/53689/1
Martin Sunal [Wed, 22 Feb 2017 12:44:38 +0000 (13:44 +0100)]
Implemented unregister l3-prefix endpoint

L3-prefix endpoints were not removed from OPER DS
due to missing implementation.

Change-Id: Iae8cd0d8beacc177b48073f33e796bc3ff0a87b4
Signed-off-by: Martin Sunal <msunal@frinx.io>
7 years agoimplementing routing for VPP 84/48984/27
Michal Cmarada [Wed, 22 Mar 2017 11:05:29 +0000 (12:05 +0100)]
implementing routing for VPP

- adding the implementation for ipv4 routing for VPP in VPP renderer
- making enhancements to NAT in VPP renderer as a supplement to routing

Change-Id: Ie9040ca6bc118402d8c7552a77d49aca9639e1f3
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoFDS-242 - Clearing intf ref prior to removing ACL itself 70/53670/2
Tomas Cechvala [Wed, 22 Mar 2017 10:48:08 +0000 (11:48 +0100)]
FDS-242 - Clearing intf ref prior to removing ACL itself

Ordering of actions matters in HC. ACL has been removed together with
cached index (ID), so clearing reference from interface failed b/c index
to referenced ACL had already been removed.

Change-Id: Ide25ba84692d6f814d41e37af7d819a92101e769
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoLooking for host-id of router port 54/52654/15
Michal Cmarada [Tue, 21 Mar 2017 10:42:02 +0000 (11:42 +0100)]
Looking for host-id of router port

Reading host-id for router bvi interface from DHCP port
host ID. It is assumed that they are located on one node.
This is a workaround for unbound interfaces for L3 scenario.

Change-Id: I62e56ec33ba8dc234db2bbd42d77113645d7920e
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoExcluding VPP router interface from policy 46/53246/2
Tomas Cechvala [Mon, 13 Mar 2017 20:20:38 +0000 (21:20 +0100)]
Excluding VPP router interface from policy

So that policy is applied only on access ports.

Change-Id: I9022e05de01493ff48d6a1d26ad61b3078b46af8
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoNetconf transactions synchronization GBP part 64/52964/4
Michal Cmarada [Mon, 13 Mar 2017 13:32:54 +0000 (14:32 +0100)]
Netconf transactions synchronization GBP part

adding mechanism to sync transactions between GBP and VBD
this is used as a workaround for bug https://bugs.opendaylight.org/show_bug.cgi?id=7918
In order for this workaround to work GBP uses Reentrant lock from VBD to synchronize transactions.
It is needed to use netconfSyncedWrite and netconfSyncedDelete from GbpNetconfTransaction
for all write and delete operations to netconf device.

Change-Id: I4f74c376a06adb5aec058710ccbb8ed069103483
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoFixing regex pattern in OVSDB and NM module 43/53243/2
Tomas Cechvala [Mon, 13 Mar 2017 20:00:28 +0000 (21:00 +0100)]
Fixing regex pattern in OVSDB and NM module

Due to changes in yangotools, regex patters
are automatically supplied with starting ^ and
ending $ control chars.

E.g. ^tcp$|^udp$ in model
     results to
     ^\^tcp\$|\^udp\$$
     in code

Removing unused module from neutron-mapper

Change-Id: Icb8b62f308526b78b4dd3cfd7250b821f95fa165
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoTiny fix for excluding Qrouter from Policy 62/52662/3
Tomas Cechvala [Thu, 2 Mar 2017 14:47:02 +0000 (15:47 +0100)]
Tiny fix for excluding Qrouter from Policy

Change-Id: I8306a78c74424fafbd5ec30dc4249c84d174d34e
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoInitial implementation for dynamic SNAT 93/52493/7
Tomas Cechvala [Tue, 28 Feb 2017 09:25:53 +0000 (10:25 +0100)]
Initial implementation for dynamic SNAT

allocation pools is needed in an external network
 -> VPP renderer will use external subnet as a pool
    for dynamic SNAT.
     - isTenant = false
     - allocationPool is specified
 -> traffic passing through an interface set to
    'outside NAT' will be automatically translated

Change-Id: I18077d0fa31ae1ae3b2fde13aa12c2d41c3fdecb
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoInitial NAT implementation 91/48691/21
Michal Cmarada [Thu, 2 Mar 2017 11:57:22 +0000 (12:57 +0100)]
Initial NAT implementation

Needs to be tested with the full stack and reviewed
once again.

Change-Id: I8305de67f18d33499884545f4dea7a8f934d6e3c
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoSecurity group in VPP renderer 06/47006/37
Tomas Cechvala [Thu, 12 Jan 2017 16:01:41 +0000 (17:01 +0100)]
Security group in VPP renderer

Introducing traffic filtering by using
access-lists based on security-groups.

Implementation for transforming resolved
policy to INGRESS/EGRESS access lists in HC.

Change-Id: Ie7bf491b3aa3e1d6724ce37cce1835ccb2b06f79
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoFixing read-write transaction in InterfaceManager 65/52365/1
Tomas Cechvala [Tue, 28 Feb 2017 12:56:37 +0000 (13:56 +0100)]
Fixing read-write transaction in InterfaceManager

Transaction was not closed which caused problems in NETCONF
for creating next write or read-write transactions. Changed
to read-only transaction as long as write is not needed.

Change-Id: I3cdefc6330e7264e670749c02ed379903bab61e3
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoWIP choosing L3 node by ODL for VPP 50/51250/5
Tomas Cechvala [Tue, 31 Jan 2017 14:52:52 +0000 (15:52 +0100)]
WIP choosing L3 node by ODL for VPP

Openstack has not this feature available yet,
workaroud is done in ODL.

APIs are not modified, configuration for this may be
passed by config in file located in karaf's /etc folder.

Change-Id: I1b8f8cb8da79843601695a689dadc854946ba694
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoMerge "Remove bad manifestLocation from maven-bundle-plugin"
Vladimir Lavor [Mon, 6 Feb 2017 08:37:44 +0000 (08:37 +0000)]
Merge "Remove bad manifestLocation from maven-bundle-plugin"

7 years agoMerge "remove redundant parent data with last child"
Vladimir Lavor [Thu, 2 Feb 2017 14:00:50 +0000 (14:00 +0000)]
Merge "remove redundant parent data with last child"

7 years agoMove ip-sgt-distribution-service into sxp-integration 29/51129/2
Michal Rehak [Fri, 27 Jan 2017 14:56:38 +0000 (15:56 +0100)]
Move ip-sgt-distribution-service into sxp-integration

    - this project is part of sxp integration effort

Change-Id: I513ad85046c7e1f8c135c83f1b80ffdf3fbcbdf8
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agoMerge "netconf connection in cluster - workaround for bug7699"
Tomas Cechvala [Wed, 1 Feb 2017 09:56:04 +0000 (09:56 +0000)]
Merge "netconf connection in cluster - workaround for bug7699"

7 years agoMerge "better odl <-> device communication via netconf - gbp side"
Tomas Cechvala [Wed, 1 Feb 2017 09:55:53 +0000 (09:55 +0000)]
Merge "better odl <-> device communication via netconf - gbp side"

7 years agonetconf connection in cluster - workaround for bug7699 72/51172/2
Vladimir Lavor [Mon, 30 Jan 2017 09:49:52 +0000 (10:49 +0100)]
netconf connection in cluster - workaround for bug7699

Change-Id: I34417160ca4f1fd1c4707699988b51e76121ccb1
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoRemove bad manifestLocation from maven-bundle-plugin 35/51235/1
Michael Vorburger [Tue, 31 Jan 2017 13:12:57 +0000 (14:12 +0100)]
Remove bad manifestLocation from maven-bundle-plugin

Change-Id: Ia27b7bf906aec9893d5c4ad23c343f7571cb24e5
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agobetter odl <-> device communication via netconf - gbp side 67/51067/5
Vladimir Lavor [Thu, 26 Jan 2017 13:13:59 +0000 (14:13 +0100)]
better odl <-> device communication via netconf - gbp side

* transaction is restarted after every exception (caused by
  collision, netconf failure, HC failure etc.)
* data to remove are verified whether they are present to
  prevent netconf transaction exceptions

Change-Id: I7243b174cb1545f78d2df897e8755fc173e3757a
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoRemove delegator feature - odl-groupbasedpolicy-sxp-mapper 07/51007/2
Michal Rehak [Wed, 25 Jan 2017 13:17:20 +0000 (14:17 +0100)]
Remove delegator feature - odl-groupbasedpolicy-sxp-mapper

    - this feature was renamed to odl-groupbasedpolicy-sxp-ep-provider
    - feature-test is fixed: https://git.opendaylight.org/gerrit/#/c/50995/

Change-Id: I1cec8b04065b2dc3a4af1ac5d3aef02fabed0d9f
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agoMerge "Replace mockito-all by mockito-core (see Bug 7662)"
Vladimir Lavor [Thu, 26 Jan 2017 18:30:02 +0000 (18:30 +0000)]
Merge "Replace mockito-all by mockito-core (see Bug 7662)"

7 years agoMerge "Fixing compareTo for RendererResolvedPolicy"
Vladimir Lavor [Thu, 26 Jan 2017 11:07:29 +0000 (11:07 +0000)]
Merge "Fixing compareTo for RendererResolvedPolicy"

7 years agoFixing compareTo for RendererResolvedPolicy 04/51004/6
Tomas Cechvala [Wed, 25 Jan 2017 11:42:09 +0000 (12:42 +0100)]
Fixing compareTo for RendererResolvedPolicy

It's important not to lose any resolved rule
when caching policy.

Parameters included:
    EndpointPolicyParticipation
    ResolvedRuleGroup

Change-Id: Idf5f4dbde902d7f21ca0a83d68a71dbeeefc7a52
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoExporting API for VPP adapter 76/50376/3
Tomas Cechvala [Thu, 12 Jan 2017 16:10:37 +0000 (17:10 +0100)]
Exporting API for VPP adapter

Generated classes need to be available in runtime.
Consuming instance need import them.

Change-Id: I30f69fc9ab046f333cf0721ff86cc5635b02a401
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoGUI - Add default redirect on app start 79/50179/2
Daniel Malachovsky [Tue, 10 Jan 2017 12:59:16 +0000 (13:59 +0100)]
GUI - Add default redirect on app start

Due Dlux split we removed Topology app from odl-dlux-core feature.
There were also default redirect to that app, so it was landing page, when
DLUX was started.
This patch adds default route to GUI in this project.

More info:
https://wiki.opendaylight.org/view/Weather#Rename_some_odl-dlux-.2A_features_to_odl-dluxapps-.2A

Change-Id: Ic46fa497dcef604b5eba15cc93a2c29a93630f43
Signed-off-by: Daniel Malachovsky <dmalacho@cisco.com>
7 years agoMerge "Handling for occassional npe in neutron-mapper/vpp-renderer"
Tomas Cechvala [Tue, 24 Jan 2017 14:11:51 +0000 (14:11 +0000)]
Merge "Handling for occassional npe in neutron-mapper/vpp-renderer"

7 years agoReplace mockito-all by mockito-core (see Bug 7662) 64/50864/2
Michael Vorburger [Mon, 23 Jan 2017 18:58:42 +0000 (19:58 +0100)]
Replace mockito-all by mockito-core (see Bug 7662)

Change-Id: I5fcdc0124404d29ffef4acc54b1a87ccdb48c990
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
7 years agoMerge "Fixing socket for vpp endpoint"
Tomas Cechvala [Tue, 24 Jan 2017 12:39:35 +0000 (12:39 +0000)]
Merge "Fixing socket for vpp endpoint"

7 years agoMerge "router delete implementation in neutron mapper"
Tomas Cechvala [Tue, 24 Jan 2017 11:30:21 +0000 (11:30 +0000)]
Merge "router delete implementation in neutron mapper"

7 years agoFixing socket for vpp endpoint 25/48825/7
Michal Cmarada [Fri, 2 Dec 2016 07:38:56 +0000 (08:38 +0100)]
Fixing socket for vpp endpoint

if hostconfig is used for VPP renderer, the socket generated
for VPP endpoint is bad. this patch fixes this issue

Change-Id: I136f1b0b331f7fef82c74f217f802960687a79bf
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agorouter delete implementation in neutron mapper 29/50429/8
Michal Cmarada [Mon, 23 Jan 2017 12:13:39 +0000 (13:13 +0100)]
router delete implementation in neutron mapper

Change-Id: I5c5575cceaf878316b4e1de73f736c98748b3fb9
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoHandling for occassional npe in neutron-mapper/vpp-renderer 55/50555/7
Vladimir Lavor [Tue, 17 Jan 2017 14:56:42 +0000 (15:56 +0100)]
Handling for occassional npe in neutron-mapper/vpp-renderer

Change-Id: I1ec230adca38c1eda083a008d1cc2c579ac79eb8
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoReplace rpc registration via blueprint with rpc-broker 79/50679/4
Michal Rehak [Fri, 7 Oct 2016 12:34:58 +0000 (14:34 +0200)]
Replace rpc registration via blueprint with rpc-broker

    - blueprint registers rpc equally per node where
      all instances are active at the same time and routing
      over cluster is not needed (local instance is always involved)
    - now rpc-broker is used to expose rpc and rpc lifecycle is managed
      by cluster-singleton-service
    - adapted also neutron-mapper and neutron-ovsdb (feature test blocker)

Change-Id: I55e75f6a9ade6a948487f5da2465e81c962f7c9b
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agoFix DS based test in ip-sgt-distribution-service 27/50927/1
Michal Rehak [Tue, 24 Jan 2017 09:24:01 +0000 (10:24 +0100)]
Fix DS based test in ip-sgt-distribution-service

    - sxp model changed - at least 1 sxp domain is required
    - removed slf4j-log4j test dependency (conflicting with slf4j-simple in tests)

Change-Id: Ie82a51655418c03286b9c986a7b7e461f5fc4e0f
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agoAdd jolokia feature repo to local karaf 78/50678/1
Michal Rehak [Tue, 11 Oct 2016 14:33:59 +0000 (16:33 +0200)]
Add jolokia feature repo to local karaf

Change-Id: I57d949a5cc4e89029924612bfb5400ff0223cf32
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agoMerge "Neutron port removal fixed"
Tomas Cechvala [Thu, 19 Jan 2017 08:25:50 +0000 (08:25 +0000)]
Merge "Neutron port removal fixed"

7 years agoMerge "Changes features for odl-groupbasedpolicy-vpp"
Vladimir Lavor [Wed, 18 Jan 2017 16:13:53 +0000 (16:13 +0000)]
Merge "Changes features for odl-groupbasedpolicy-vpp"

7 years agoMerge "Adding logs to RPC calls in VPP adapter"
Vladimir Lavor [Wed, 18 Jan 2017 16:13:13 +0000 (16:13 +0000)]
Merge "Adding logs to RPC calls in VPP adapter"

7 years agoNeutron port removal fixed 37/50437/8
Vladimir Lavor [Fri, 13 Jan 2017 13:58:56 +0000 (14:58 +0100)]
Neutron port removal fixed

* L3 context update is applied only for persistent ports
  within subnet to avoid recreation of previously removed
  ones
* Router interface port is now already removed in onDelete
* vif-type is considered if port update

Change-Id: I4d1331845e19313f50a563206f6c4efe67e1fca6
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoAddress endpoint with no location is not counted into configuration 44/49244/12
Vladimir Lavor [Mon, 12 Dec 2016 13:29:15 +0000 (14:29 +0100)]
Address endpoint with no location is not counted into configuration

Change-Id: Ide6f38453dcc738eabc4f1c3511be124cde82371
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoremove redundant parent data with last child 36/49536/5
Matej Perina [Tue, 17 Jan 2017 15:33:24 +0000 (15:33 +0000)]
remove redundant parent data with last child

Change-Id: If833e1a6c9bce23834f15983ed1a620c39fed9c8
Signed-off-by: Matej Perina <mperina@cisco.com>
7 years agoChanges features for odl-groupbasedpolicy-vpp 30/49230/2
Tomas Cechvala [Mon, 12 Dec 2016 09:21:24 +0000 (10:21 +0100)]
Changes features for odl-groupbasedpolicy-vpp

Feature odl-vbd has to be installed for fully operational
VPP renderer.

Change-Id: I598f3cd3653e1e019149f0a277f01cc0ca1a7828
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoAdding logs to RPC calls in VPP adapter 23/50523/1
Tomas Cechvala [Mon, 16 Jan 2017 18:39:52 +0000 (19:39 +0100)]
Adding logs to RPC calls in VPP adapter

for easier troubleshooting.

Change-Id: Ibff4060022ae1ca3d3017b1b3429d4abecec9fa4
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoCleanup CRLF consistency 99/50199/1
Robert Varga [Tue, 10 Jan 2017 14:46:45 +0000 (15:46 +0100)]
Cleanup CRLF consistency

This file has inconsistent CR/LF combination, clean that up.

Change-Id: I202b9253422e8555e091631d875e8cdbdcd5ce21
Signed-off-by: Robert Varga <rovarga@cisco.com>
7 years agoDeleting L2 when removing interface from BD 79/49179/4
Tomas Cechvala [Fri, 9 Dec 2016 13:04:56 +0000 (14:04 +0100)]
Deleting L2 when removing interface from BD

Errors when removing bridge-domain from bridge-based since
bridge-domain is marked as mandatory. I tried to set
interconnection to null, but this led to strange behaviour
on HC, so currently it's necessary to remove the entire
L2 node.

Change-Id: I8c5738003fed464e89b346953c156c17d60e8d05
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoVPP adapter changes 41/49041/10
Tomas Cechvala [Tue, 6 Dec 2016 15:33:02 +0000 (16:33 +0100)]
VPP adapter changes

updating model to make it more transparent
tiny implementation changes

Change-Id: Ib39174c30c689fd174409c0791aed533a7f9dd42
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoReplacing InstanceIdentifier in VPP renderer model 90/49190/5
Tomas Cechvala [Fri, 9 Dec 2016 16:45:55 +0000 (17:45 +0100)]
Replacing InstanceIdentifier in VPP renderer model

 - replaced with NodeId
 - it would be easier to write JSONs for RPC
 - mount points are located in topology-netconf anyways
   no need for specifying other topology for now

Change-Id: I5645868e495a602b369f123afbb416f07b927066
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoVppNodeManager improvements 27/48827/5
Vladimir Lavor [Wed, 30 Nov 2016 13:04:55 +0000 (14:04 +0100)]
VppNodeManager improvements

* Unused available netconf node cache removed
* VppNodeWriter removed, status is written from manager
* If node is connected but mountpoint is not available,
  such a node will not be considered ready

Change-Id: If8381d9079e61742e7a580e0d0a41fc68bcf3002
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoUT coverage increased in vpp-renderer 79/48579/7
Vladimir Lavor [Tue, 22 Nov 2016 14:46:13 +0000 (15:46 +0100)]
UT coverage increased in vpp-renderer

* GbpVppNetconfConnectionProbeTest.class
* GbpNetconfTransaction

Change-Id: I7615d2eaeb6f3a64ab42aaf534807ddcffe74ded
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoMore reliable netconf transaction handling 83/48983/11
Vladimir Lavor [Mon, 5 Dec 2016 13:54:41 +0000 (14:54 +0100)]
More reliable netconf transaction handling

* Every interface creation/deletion is now treated
* Applies as a workaround for netconf bug 7295

Change-Id: I9d8e2ac2412065d4bf4ff9c9525a4265c207c0c4
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoIncorporating vagrant box for gbpsfc demo 16/46616/6
Tomas Cechvala [Thu, 6 Oct 2016 12:54:18 +0000 (14:54 +0200)]
Incorporating vagrant box for gbpsfc demo

Speeding up building process by using a
customized box with preinstalled software.

Change-Id: Id581a87ece170e158a7536954ff071eae43bdd29
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoWire ip-sgt-distribution-service - renderer part 83/49083/6
Michal Rehak [Wed, 7 Dec 2016 10:39:42 +0000 (11:39 +0100)]
Wire ip-sgt-distribution-service - renderer part

    added:
    - dependency + feature
    - ip-sgt-distribution-service resolution
    - compute input values
    - collect src+dest part and invoke the service

Change-Id: Ie03ca9d7fd9a88ef3b9843b2ee5d47bd9cf9826f
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agoWire ip-sgt-distribution-service - service part 82/49082/6
Michal Rehak [Wed, 7 Dec 2016 08:08:49 +0000 (09:08 +0100)]
Wire ip-sgt-distribution-service - service part

    - changed rpc service registration
    - added missing sxp values to binding container
    - fixed missing propagation of version leaf (mandatory)

Change-Id: I6fa23bd7c1af35c09e0d0a354070d9c63b28da34
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agoInactive data provider will not cause SingleFeatureTest to stuck 95/49295/11
Vladimir Lavor [Tue, 13 Dec 2016 12:37:04 +0000 (13:37 +0100)]
Inactive data provider will not cause SingleFeatureTest to stuck

Change-Id: Iadcc8ef8da7536703168c898f6850c75221fb187
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoMerge "Fix collision between VBD UI and GBP UI"
Vladimir Lavor [Sun, 11 Dec 2016 22:57:28 +0000 (22:57 +0000)]
Merge "Fix collision between VBD UI and GBP UI"

7 years agoMerge "ip-sgt-distribution-service"
Vladimir Lavor [Sat, 10 Dec 2016 11:35:30 +0000 (11:35 +0000)]
Merge "ip-sgt-distribution-service"

7 years agoFix collision between VBD UI and GBP UI 77/49177/1
Daniel Malachovsky [Fri, 9 Dec 2016 12:24:18 +0000 (13:24 +0100)]
Fix collision between VBD UI and GBP UI

Change-Id: Icb9fdae85e8f45e0a85e354ae441cf5bcf43016b
Signed-off-by: Daniel Malachovsky <dmalacho@cisco.com>
7 years agoQR-Tap port update fix 34/49034/2
Michal Cmarada [Thu, 8 Dec 2016 13:07:40 +0000 (14:07 +0100)]
QR-Tap port update fix

Change-Id: Ia44d12b2da8dda5811b3b108cd1acb6feee52ad7
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoip-sgt-distribution-service 33/42033/15
Matej Perina [Wed, 21 Sep 2016 12:23:15 +0000 (14:23 +0200)]
ip-sgt-distribution-service

    - rebased
    - version bump to next master (carbon)
    - added support for clustering

Change-Id: I82fb13997031240e8b223d518349ab0e5124bace
Signed-off-by: Matej Perina <mperina@cisco.com>
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agovpp demo update 35/49035/3
Michal Cmarada [Thu, 8 Dec 2016 09:14:34 +0000 (10:14 +0100)]
vpp demo update

updating some config files for hc and vpp
reducing size of RAM for VMs
reducing hugepages for VPP

Change-Id: I89d34dc7bf4ac1fec08629d029db85097931dd97
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoIntroducing RPCs for remote calls to VPP 62/48962/5
Tomas Cechvala [Mon, 5 Dec 2016 14:37:15 +0000 (15:37 +0100)]
Introducing RPCs for remote calls to VPP

Allowing other plugins to interact with VPP by
using VPP renderer.
RPCs allow creating bridge domains, interfaces
and assigning bridge domains to interfaces.

Change-Id: Iddcf4b127ebe5757405d6041746a9559365156ee
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoImprove gbp-sxp logging 89/48789/3
Michal Rehak [Tue, 29 Nov 2016 14:43:26 +0000 (15:43 +0100)]
Improve gbp-sxp logging

    - prevent unneccessary NPE from dumping to log
    - provide more useful logging for operation results
    - bit of code formatting

Change-Id: I564f1b9cd9135bc4767c22b2e3028f65c5301eef
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agoFix for Neutron Port update for VPP 65/48665/6
Michal Cmarada [Tue, 29 Nov 2016 12:59:24 +0000 (13:59 +0100)]
Fix for Neutron Port update for VPP

Change-Id: I1baf4e77b797d5f9d3e79dd619b6ee6e0ff4a1ed
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoBug 7241:Fix logging for VPP node 97/48697/2
Michal Cmarada [Fri, 25 Nov 2016 12:18:33 +0000 (13:18 +0100)]
Bug 7241:Fix logging for VPP node

if the required VPP node does not contain required capability the logs
shouldn`t say that this node is capable and ready.

Change-Id: Id515d89a9aae8c5c84ac555ececa751f40aa8052
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agointroducing loopback port for VPP 07/48307/6
Michal Cmarada [Wed, 23 Nov 2016 15:34:33 +0000 (16:34 +0100)]
introducing loopback port for VPP

adding support for loopback interface in vpp-renderer
adding support for loopback VPP router interface in neutron-vpp-mapper

Change-Id: Ibd91f8b109468abc16018f3a09d6bb76cd7ce018
Signed-off-by: Michal Cmarada <mcmarada@cisco.com>
7 years agoBug 6743: GBP HA improved 98/48198/6
Vladimir Lavor [Tue, 15 Nov 2016 16:20:49 +0000 (17:20 +0100)]
Bug 6743: GBP HA improved

    - Improved update processing for vpp endpoint and policy
    - Added netconf connection probe to watch and handle connected devices
    - Better logging

Change-Id: If186972d8d6177c5e1361f8b857307f517c5a7fd
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoRemoving the last reference to sfcofl2 04/48404/1
Brady Johnson [Wed, 16 Nov 2016 13:19:31 +0000 (14:19 +0100)]
Removing the last reference to sfcofl2

- The feature was renamed to odl-sfc-openflow-renderer

Change-Id: I7a58a016035761147627bb325c3d701f1a8dd039
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
7 years agoThe SFCOFL2 karaf feature is deprecated 49/43249/3
Brady Johnson [Fri, 5 Aug 2016 16:06:12 +0000 (18:06 +0200)]
The SFCOFL2 karaf feature is deprecated

- The odl-sfc-openflow-renderer should be used in its place

Change-Id: Idda220b9acd338f6c6d8bf6861ac1816879e73e2
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
7 years agoHostconfig for Openstack in VPP renderer 17/48217/4
Tomas Cechvala [Thu, 10 Nov 2016 14:38:54 +0000 (15:38 +0100)]
Hostconfig for Openstack in VPP renderer

Different underlay technologies may be used in multinode
environment (ovs, vpp, etc.)

Configuration for hosts on a particular node may be passed to
Openstack by using hostconfigs feature.

If GBP discoveres a VPP capable node, neutron-vpp-mapper
(if installed) will react to this by exposing a config
specific for the node into
/restconf/operational/neutron:neutron/hostconfigs

On the Openstack side, pseudo-agent-binding port binding
controller (networking-odl) will periodically scan the
datatree mentioned above and if it finds data, it will update
agent database (neutron) with them.

Later on, if someone is going to boot nova instance, nova will
bind the port in such a way as the configuration in agent DB for
the given node tells it.

E.g. if vif_type is 'ovs', a port will be created and bound to
OVS. If it's 'vhostuser' nova will bind the port to a vhostuser
socket (which path is also specified in the config)

How to enable hostconfig feature in Devstack/Openstack:
modify ml2.conf by adding the following lines:
port_binding_controller=pseudo-agentdb-binding
ODL_HOSTCONF_URI=restconf/operational/neutron:neutron/hostconfigs
URL=<your_url, e.g http://127.0.0.1:8080/>

Change-Id: I43dd10a4dc0d7bb62ab3c9f0c6b100718b528cad
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
7 years agoBug 7174: stop propagating mandatory/min-elements in configuration nodes 15/48315/2
Vladimir Lavor [Mon, 14 Nov 2016 11:56:09 +0000 (12:56 +0100)]
Bug 7174: stop propagating mandatory/min-elements in configuration nodes

Change-Id: Ie17af5e2e2d7998e7a270b3d844d846fd7d3ec17
Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
7 years agoStop manadatory flag propagation in range-value/* 06/48306/1
Michal Rehak [Mon, 14 Nov 2016 09:05:40 +0000 (10:05 +0100)]
Stop manadatory flag propagation in range-value/*

    - caused by /tenants/tenant/policy/subject-feature-instance/
      range-value/{min;max}
    - added presence statement to range-value container

Resolves: BUG-7167

Change-Id: I2f0706f671696cc885f545400124c8aa2cfc3bc7
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agoThe OpendaylightSfc class was removed from SFC. 76/48276/2
Brady Johnson [Fri, 11 Nov 2016 18:46:31 +0000 (19:46 +0100)]
The OpendaylightSfc class was removed from SFC.

Change-Id: I09b8752c44aba80908b5fa5df68585016c93af64
Signed-off-by: Brady Johnson <brady.allen.johnson@ericsson.com>
7 years agoBump SFC dependency version 96/47896/2
Vratko Polak [Thu, 3 Nov 2016 14:55:00 +0000 (15:55 +0100)]
Bump SFC dependency version

SFC has bumped their versions in:
https://git.opendaylight.org/gerrit/47001

Change-Id: If593af03c314e2b2a284bae5c1c43cdff5253cc0
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
7 years agoBUG-6743: HA features supports - switch netconf-topology 20/47620/1
Michal Rehak [Wed, 12 Oct 2016 08:24:16 +0000 (10:24 +0200)]
BUG-6743: HA features supports - switch netconf-topology

    - switch to odl-netconf-clustered-topology in favor
      of odl-netconf-topology

Change-Id: Ia7ffe4db5c5da8e0049ee3ab75f1a806688b8f06
Signed-off-by: Michal Rehak <mirehak@cisco.com>
7 years agoadditional fix for netconf change 39/47439/5
Matej Perina [Mon, 24 Oct 2016 22:23:35 +0000 (00:23 +0200)]
additional fix for netconf change

 - covers missing leaf in required capabilities
 - fix missing dependency on ClusteredSingletonService

Change-Id: I7de71b4775194dc55e1d38d929779103acef8034
Signed-off-by: Matej Perina <mperina@cisco.com>