sfc.git
7 years agoRemove direct usage of OpenFlowJava models 03/60003/1
Tomas Slusny [Thu, 6 Jul 2017 07:41:53 +0000 (09:41 +0200)]
Remove direct usage of OpenFlowJava models

Remove direct usage of OpenFlowJava models in SfcOpenflowUtils and
replace them with usage of OpenFlowPlugin models.

Resolves: bug 8807
See also: bug 8747

Change-Id: I6c13740e9d2ed60fa0db0a29353b0b199bdb9c8a
Signed-off-by: Tomas Slusny <[email protected]>
7 years agoMerge "Adding blueprint template"
Yi Yang [Thu, 6 Jul 2017 05:17:56 +0000 (05:17 +0000)]
Merge "Adding blueprint template"

7 years agoAdd infrautils version to parent pom 77/59977/1
David Suarez [Wed, 5 Jul 2017 14:26:49 +0000 (16:26 +0200)]
Add infrautils version to parent pom

Add infrautils project version to the sfc parent pom so
that it can be referenced by other other modules.

Change-Id: Ia1cea8ea352b724061b71faaadc78276be8284f6
Signed-off-by: David Suarez <[email protected]>
7 years agoAdding blueprint template 07/58607/7
Brady Johnson [Fri, 9 Jun 2017 12:30:01 +0000 (14:30 +0200)]
Adding blueprint template

- All new features must first have a blueprint.
- This blueprint templates is based on OpenStack blueprints
  and was copied from the Netvirt project.

Change-Id: Id019f22065bdde327a6a4c391f1b8971a9190530
Signed-off-by: Brady Johnson <[email protected]>
Signed-off-by: David Suarez <[email protected]>
7 years agoAdd files to be ignored 91/59791/2
David Suarez [Fri, 30 Jun 2017 14:18:27 +0000 (16:18 +0200)]
Add files to be ignored

Change-Id: Ib4d83e049ba4713524853055cbdc4fd2e9456b4d
Signed-off-by: David Suarez <[email protected]>
7 years agoAdded classifier creation in dovs 95/57295/3
Manuel Buil [Wed, 17 May 2017 16:52:45 +0000 (18:52 +0200)]
Added classifier creation in dovs

To create the classification config we had to use the RestAPI directly.
Using this patch we can use the dovs CLI

Change-Id: I784109c192b22a5590fa3a440fc19a722a023d1c
Signed-off-by: Manuel Buil <[email protected]>
7 years agoStore SFF Openflow table offsets 11/59611/3
Brady Johnson [Thu, 29 Jun 2017 13:16:45 +0000 (15:16 +0200)]
Store SFF Openflow table offsets

- Simple DataObject used internally to specify SFF
  OpenFlow table offsets. To be used primarily to
  pass information from the SFC OpenFlow renderer
  to the sfc-statistics module.

Change-Id: I5c13d081f01e97bc00a3678f33c128f57e347e28
Signed-off-by: Brady Johnson <[email protected]>
7 years agoBump odlparent to 2.0.0 25/59325/1
Brady Johnson [Thu, 22 Jun 2017 08:27:55 +0000 (10:27 +0200)]
Bump odlparent to 2.0.0

- Needed for Karaf 4 migration.

Change-Id: I8e717a7b129433724c5888ff93180d04b7161b27
Signed-off-by: Brady Johnson <[email protected]>
7 years agoMerge "Improving SFC OpenFlow Flow Names and IDs"
Yi Yang [Thu, 22 Jun 2017 02:41:42 +0000 (02:41 +0000)]
Merge "Improving SFC OpenFlow Flow Names and IDs"

7 years agoImproving SFC OpenFlow Flow Names and IDs 30/59230/3
Brady Johnson [Tue, 20 Jun 2017 12:58:39 +0000 (14:58 +0200)]
Improving SFC OpenFlow Flow Names and IDs

- Previously the Flow id was an incrementing counter,
  which makes it difficult to easily retrieve flows
  from the data store by the flow ID.

Change-Id: Ie2a87e2748d05efd29b516aa6e2c126e483fdcd7
Signed-off-by: Brady Johnson <[email protected]>
7 years agoBug 8543: Pop_nsh should be last 52/57752/2
Manuel Buil [Wed, 24 May 2017 09:43:16 +0000 (11:43 +0200)]
Bug 8543: Pop_nsh should be last

pop_nsh action is no the last one and thus the NSH fields are not copied
correctly

Change-Id: I8f0d8429709cf287989eee803fcc334113967a6d
Signed-off-by: Manuel Buil <[email protected]>
7 years agoBug 5995: remove org.json 40/46140/4
Stephen Kitt [Fri, 23 Sep 2016 16:31:50 +0000 (18:31 +0200)]
Bug 5995: remove org.json

Nothing appears to use org.json any more in SFC, remove it.

Change-Id: If7d9e909a5ad7e93c1a1f894bde6df7754cb6dc8
Signed-off-by: Stephen Kitt <[email protected]>
7 years agoMigrating SFC Nitrogen to Karaf4 36/58236/9
Brady Johnson [Mon, 5 Jun 2017 11:19:17 +0000 (13:19 +0200)]
Migrating SFC Nitrogen to Karaf4

- Removing Karaf3 features configuration

Change-Id: I5cfda9d9898b3d0acd909df3cb63b45aadda66c5
Signed-off-by: Brady Johnson <[email protected]>
Signed-off-by: Stephen Kitt <[email protected]>
7 years agoMigrate to odlparent 1.9.0 79/58879/1
Thanh Ha [Tue, 13 Jun 2017 20:28:50 +0000 (16:28 -0400)]
Migrate to odlparent 1.9.0

Change-Id: I473b4304f9ace966bdf64eb17b4d1b4b35d4b9a1
Signed-off-by: Thanh Ha <[email protected]>
7 years agoMigrate to odlparent 1.8.0-Carbon 76/58676/1
Thanh Ha [Sun, 11 Jun 2017 03:55:33 +0000 (23:55 -0400)]
Migrate to odlparent 1.8.0-Carbon

Per request of odlparent project we are downgrading all Nitrogen
projects to use the released odlparent 1.8.0-Carbon to allow for the
odlparent project to start performing semver style releases.

Change-Id: Idaadab64a3c227ba6df9acb50607a77b4fd9e5b2
Jira: RELENG-159
RT: 41406
Signed-off-by: Thanh Ha <[email protected]>
7 years agoFix minor issues 13/57813/3
David Suarez [Thu, 25 May 2017 13:20:28 +0000 (15:20 +0200)]
Fix minor issues

Fix some minor issues like:
- Useless assignments
- Local variables not used
- Missing logging for some exceptions
- Readability issues

Change-Id: Ibf294ef4d8a69a93869a9505291cf9daf17535a9
Signed-off-by: David Suarez <[email protected]>
7 years agoRemove redundant modifier 95/57895/1
David Suarez [Fri, 26 May 2017 09:17:57 +0000 (11:17 +0200)]
Remove redundant modifier

Remove redundant modifier.

Change-Id: I2630144ec06123b223b891f4f21412b6af783999
Signed-off-by: David Suarez <[email protected]>
8 years agoRemove <prerequisites><maven> from pom.xml to avoid WARNING 08/56808/1
David Suarez [Wed, 10 May 2017 21:53:32 +0000 (23:53 +0200)]
Remove <prerequisites><maven> from pom.xml to avoid WARNING

[WARNING] The project ... uses prerequisites which is only intended for
maven-plugin projects but not for non maven-plugin projects. For such
purposes you should use the maven-enforcer-plugin. See
https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html

This is already done in odlparent.

Change-Id: I5837047b6a940c91155e7f8f6871fcbbd335a75b
Signed-off-by: David Suarez <[email protected]>
8 years agoBUG 8367 (2): Avoid certain unicode chars from random test input 82/56782/2
Diego Granados [Wed, 10 May 2017 11:04:56 +0000 (13:04 +0200)]
BUG 8367 (2): Avoid certain unicode chars from random test input

A new subtle, random problem was detected in autorelease. Full
unicode space use in the random test input generation has been
removed (really hard to do well; makes junit fail all the time)
Now, random standard characters / numbers are used instead.

Change-Id: If7b1298f368c6fdffc701173b616c1f83b9def99
Signed-off-by: Diego Granados <[email protected]>
8 years agoBUG 8367. Avoid certain unicode chars from random test input 05/56505/3
Diego Granados [Thu, 4 May 2017 08:18:31 +0000 (10:18 +0200)]
BUG 8367. Avoid certain unicode chars from random test input

Avoid randomly-generated test input from containing certain
unicode characters (in the private-unassigned ranges) which
cause trouble with some regexps internally used by junit
Parameterised test runner

Change-Id: Iaa0fa034f40c7084f5485d70685e985e0b082c9b
Signed-off-by: Diego Granados <[email protected]>
8 years agoBUG 8316: non-NSH packets should be redispatched 72/56172/1
Manuel Buil [Wed, 26 Apr 2017 15:21:51 +0000 (17:21 +0200)]
BUG 8316: non-NSH packets should be redispatched

SFC is the first serviced registered for the SFs interfaces. If packets do not
have NSH, they should be sent back to the dispatcher table so that they can be
processed by other services. However, right now they are dropped in table 83.

Change-Id: I15bb49bfaaf0f1956c3238243cbeed210342d6cc
Signed-off-by: Manuel Buil <[email protected]>
8 years agoComplete the README of dovs 27/55727/6
Manuel Buil [Thu, 20 Apr 2017 12:10:54 +0000 (14:10 +0200)]
Complete the README of dovs

I added the SFC instructions which were not included

Change-Id: I942e3b64c49df440a4a8711267885531ad50087f
Signed-off-by: Manuel Buil <[email protected]>
8 years agoBUG 8249 Correctly handle Logical SFF Chain egress 03/55703/4
Brady Johnson [Thu, 20 Apr 2017 07:40:44 +0000 (09:40 +0200)]
BUG 8249 Correctly handle Logical SFF Chain egress

- If NSH C1 is present, then write C1/C2 to Ipv4TunDst/Vnid
- Minor fix for UT
- When NSH C1 is present, also egress to Vxgpe flow-based tunnel

Change-Id: Ia149c30850c7e55bb7bcd678f73d217ff7231a76
Signed-off-by: Brady Johnson <[email protected]>
8 years agoFix checkstyle problems not detected by the current version 81/55681/1
David [Wed, 19 Apr 2017 22:58:59 +0000 (00:58 +0200)]
Fix checkstyle problems not detected by the current version

This change is required for overall move to new Checkstyle version, see
https://git.opendaylight.org/gerrit/#/q/topic:bumpCheckstyle

Change-Id: I637dd46617ca144f0ed33bd705c6357493b887fe
Signed-off-by: David <[email protected]>
8 years agoBump versions by x.(y+1).z for next dev cycle 21/54721/1
Anil Belur [Tue, 11 Apr 2017 01:45:55 +0000 (11:45 +1000)]
Bump versions by x.(y+1).z for next dev cycle

Change-Id: I3205e3d12d13531d3bd68751d0c49d09892188c6
Signed-off-by: Anil Belur <[email protected]>
8 years agoFix wait for parent interface and device-id 01/54601/1
Jaime Caamaño Ruiz [Mon, 10 Apr 2017 13:45:12 +0000 (15:45 +0200)]
Fix wait for parent interface and device-id

- Do not wait for parent interface if not using ODL.
- Add device-id to neutron ports of guest namespaces, use port uuid as
  value for now.

Change-Id: Ic8fd0b00b6d927e1054cf83e96a85366e9fb1c8d
Signed-off-by: Jaime Caamaño Ruiz <[email protected]>
8 years agoBug 4628: Name sfc-vnfm-tacker configfile 62/54262/1
Vratko Polak [Mon, 3 Apr 2017 12:12:23 +0000 (14:12 +0200)]
Bug 4628: Name sfc-vnfm-tacker configfile

Also, add dependency to feature poms.

Change-Id: Id05a5f8014ef8692925837cabec3ccd286502093
Signed-off-by: Vratko Polak <[email protected]>
8 years agoAdd execution permissions to setup_sh_hhe.sh 25/54025/2
Jaime Caamaño Ruiz [Wed, 29 Mar 2017 10:03:02 +0000 (12:03 +0200)]
Add execution permissions to setup_sh_hhe.sh

Fixes the 'Permission denied' error when bringing up the sfc-docker
vagrant.

Change-Id: Ie0ad555b7c47fb19bf21923a2b59fa19f2262763
Signed-off-by: Jaime Caamaño Ruiz <[email protected]>
8 years agoMigrate features to Karaf4 50/53350/3
Juan Vidal [Tue, 14 Mar 2017 14:23:51 +0000 (14:23 +0000)]
Migrate features to Karaf4

 - Move old features folder to features/features-sfc
 - Create new features4-sfc folder for Karaf4 pom.xml
 - Create module-specific folders with their respective pom.xml files

Bug: 7629 - Karaf 4 migration: provide Karaf 4 sfc features

Change-Id: I7b5126780b1ae463bd416eeecbd0def18fa2a44e
Signed-off-by: Juan Vidal <[email protected]>
8 years agoadd Mininet wrapper to create SFC topologies and add a MAC Chaining demo 85/53985/3
Rafael [Tue, 28 Mar 2017 14:28:22 +0000 (11:28 -0300)]
add Mininet wrapper to create SFC topologies and add a MAC Chaining demo

Change-Id: I373c66eaeb5f045c15b645209e03236a3ff232d1
Signed-off-by: Rafael <[email protected]>
8 years agoadd mac chaining implementation as a new SFC OpenFlow Renderer 95/53695/4
Rafael [Wed, 22 Mar 2017 20:38:43 +0000 (17:38 -0300)]
add mac chaining implementation as a new SFC OpenFlow Renderer

- Fix minor review issues and add unit tests for mac chaining processor
Change-Id: I309f1c641160ea16f945bea84aeabead6d2be8b7
Signed-off-by: Rafael <[email protected]>
8 years agoAlign dovs to latest carbon updates 50/51950/4
Jaime Caamaño Ruiz [Thu, 16 Feb 2017 11:46:20 +0000 (12:46 +0100)]
Align dovs to latest carbon updates

- check parent interface after ovs tap add
- use a segmentation id other than 0

Change-Id: I9a36dbf835c5725daba47d67d01c4c7287161427
Signed-off-by: Jaime Caamaño Ruiz <[email protected]>
8 years agoDeclare private constructors for utility classes 80/53580/3
David [Mon, 20 Mar 2017 21:02:28 +0000 (22:02 +0100)]
Declare private constructors for utility classes

Minor change: Declare private constructors for utility classes and make
those classes final.

Change-Id: I6ac71e1283623c8cf20f045eecea7b8fb7fb3178
Signed-off-by: David <[email protected]>
8 years agoFix minor issues related to types boxing and unboxing 65/53465/1
David [Fri, 17 Mar 2017 08:28:48 +0000 (09:28 +0100)]
Fix minor issues related to types boxing and unboxing

Fix minor issues related to types boxing and unboxing.

Change-Id: I0b26d3f59c5131831e6cedf42b59ab76732df9bc
Signed-off-by: David <[email protected]>
8 years agoRemove duplicate declaration of itm-api in sfc-genius 38/53238/4
Juan Vidal [Mon, 13 Mar 2017 17:07:23 +0000 (17:07 +0000)]
Remove duplicate declaration of itm-api in sfc-genius

Change-Id: I6f3a848c3b79fcc001d6c99df45e8fb665bcc5c0
Signed-off-by: Juan Vidal <[email protected]>
8 years agosfc-vnfm-tacker checkstyle enforcement 77/52877/6
Faseela K [Wed, 8 Mar 2017 04:56:00 +0000 (10:26 +0530)]
sfc-vnfm-tacker checkstyle enforcement

Fix issues related to checkstyle compliance in module
sfc-vnm-tacker:
- Copyright sections
- Line lengths
- Declaration of constants: name, modifiers
- Formatting
- Rename variables
- Move declaration of variables closer to their use
- Exception catching
- printStackTrace()
- Remove unused variables
- Enforcement in pom.xml

Change-Id: Ia6e917833a4f060ae23d83f4aca0e9487b3a0b10
Signed-off-by: Faseela K <[email protected]>
8 years agoadd api changes needed by MAC Chaining implementation 01/52901/6
Rafael [Mon, 6 Mar 2017 17:20:15 +0000 (14:20 -0300)]
add api changes needed by MAC Chaining implementation

Change-Id: I28e47335e3c42efea363de93c442aa67bd636a4a
Signed-off-by: Rafael <[email protected]>
8 years agoRemove sfc-jsonconfig module 67/52967/4
Juan Vidal [Tue, 7 Mar 2017 15:31:04 +0000 (15:31 +0000)]
Remove sfc-jsonconfig module

This module contains some configuration files that are not needed anymore.

Change-Id: Ided20e1e3c1341bf33bd41a9e53ef0e88ee9641c
Signed-off-by: Juan Vidal <[email protected]>
8 years agoFix issues related to checkstyle enforcement for module 05/53005/2
David [Wed, 8 Mar 2017 13:56:43 +0000 (14:56 +0100)]
Fix issues related to checkstyle enforcement for module
sfc-rsp-manager

- Copyright sections
- Line lengths
- Enforcement in pom.xml

Change-Id: Ibcf04bcb2cedec58d8f4a6c7f375e2375366e2b6
Signed-off-by: David <[email protected]>
8 years agoRemove sfc-network-topology-utils 03/53003/2
Juan Vidal [Tue, 7 Mar 2017 17:42:01 +0000 (17:42 +0000)]
Remove sfc-network-topology-utils

This submodule does not contain anything, its contents was removed some time
ago. It can be safely removed from repository.

Change-Id: I7dca0dd1cee3c66aa808c6b7d95f0fac13ae7965
Signed-off-by: Juan Vidal <[email protected]>
8 years agoFix issues related to checkstyle enforcement for module 00/52900/4
David [Mon, 6 Mar 2017 17:17:14 +0000 (18:17 +0100)]
Fix issues related to checkstyle enforcement for module
sfc-scf-openflow

- Copyright sections
- Line lengths
- Declaration of constants: name, modifiers
- Formatting
- Rename variables
- Move declaration of variables closer to their use
- Enforcement in pom.xml

Change-Id: Ib7e676a8c262154b3937273e2aa21be04f3c2719
Signed-off-by: David <[email protected]>
8 years agoUpdate sfc104 demo to support nsh proxy and vpp classifier 14/52914/3
Yi Yang [Tue, 7 Mar 2017 10:17:53 +0000 (18:17 +0800)]
Update sfc104 demo to support nsh proxy and vpp classifier

- Use ovs 2.6.1 + DPDK 16.07
- Enable vpp classifier for vpp demo
- Add an option "--nshproxy" for ./run_demo.sh
- Enable nsh proxy support for ovs, ovs_dpdk and vpp demos

You can run nsh proxy demo with option --nshproxy.

  $ ./run_demo.sh --nshproxy ovs | ovs_dpdk | vpp

Change-Id: I2d9982f6d9f77b0ec4f669940195e19bab48a5ab
Signed-off-by: Yi Yang <[email protected]>
8 years agoFix issues related to checkstyle enforcement for module 47/52847/3
David [Mon, 6 Mar 2017 00:57:55 +0000 (01:57 +0100)]
Fix issues related to checkstyle enforcement for module
sfc-vnfm-spi

- Copyright sections
- Line lengths
- Declaration of constants: name, modifiers
- Formatting
- Rename variables
- Move declaration of variables closer to their use
- Enforcement in pom.xml

Change-Id: Ic7f05a4d785aecd348b27a9aae1667051f9a4bd5
Signed-off-by: David <[email protected]>
8 years agoOne Chain Service Functions 72/52872/2
Brady Johnson [Tue, 21 Feb 2017 07:57:58 +0000 (08:57 +0100)]
One Chain Service Functions

- If the SF flag one-chain-only is TRUE, then the Service
  Function can only be used in one Service Chain.
- This feature will be used mainly by VXLAN non-NSH,
  once implemented
- Once the VXLAN, non-NSH feature is implemented, if a
  chain is created whose SFs have one-chain-only set TRUE,
  then reclassification wont be neccessary at SF ingress.
- Fixes for code review comments.

Change-Id: Ia6b5584a9c1297ed5f678a3dd875fd57ab3c9044
Signed-off-by: Brady Johnson <[email protected]>
8 years agoBUG-6859 - Binding generator v1 refactoring 11/52911/2
Martin Ciglan [Tue, 7 Mar 2017 01:02:04 +0000 (02:02 +0100)]
BUG-6859 - Binding generator v1 refactoring

Fix compilation failure after binding generator move.

Change-Id: Idd71975642e173e0779f281cb64e7aceb27efa73
Signed-off-by: Martin Ciglan <[email protected]>
8 years agoFix issues related to checkstyle compliance 74/52874/3
David [Mon, 6 Mar 2017 11:40:29 +0000 (12:40 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module
sfc-sb-rest:
- Copyright sections
- Order imports
- Line lengths
- Formatting
- Rename variables
- Remove unused variables
- Declaration of constants: name, modifiers
- Exception catching
- Move declaration of variables closer to their use
- Checkstyle enforcement in pom.xml

Change-Id: I360d712bc5aec65ceabcc31907971785b7a4c264
Signed-off-by: David <[email protected]>
8 years agoFix issues related to checkstyle enforcement for module 46/52846/2
David [Mon, 6 Mar 2017 00:48:56 +0000 (01:48 +0100)]
Fix issues related to checkstyle enforcement for module
sfc-vpp-utils

- Copyright sections
- Line lengths
- Declaration of constants: name, modifiers
- Formatting
- Rename variables
- Move declaration of variables closer to their use
- Enforcement in pom.xml

Change-Id: Iac36a44c0e0b8a77158b3fb77770d3190f69ff46
Signed-off-by: David <[email protected]>
8 years agoFix issues related to checkstyle compliance 43/52843/2
David [Sat, 4 Mar 2017 09:27:13 +0000 (10:27 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module
sfc-pot:
- Copyright sections
- Line lengths
- Order imports
- Formatting
- Declaration of constants: name, modifiers
- Rename variables
- Move declaration of variables closer to their use
- Enforcement in pom.xml

Change-Id: If573fa52860c0bd6380723d5b3c56f8a5dd69d46
Signed-off-by: David <[email protected]>
8 years agosfc-test-consumer - Checkstyle enforcement 85/52785/2
Faseela K [Fri, 3 Mar 2017 20:25:11 +0000 (01:55 +0530)]
sfc-test-consumer - Checkstyle enforcement

Fix issues related to checkstyle compliance in module
sfc-test-consumer:
- Copyright sections
- Line lengths
- Declaration of constants: name, modifiers
- Formatting
- Rename variables
- Move declaration of variables closer to their use
- Exception catching
- Remove unused variables
- Enforcement in pom.xml

Change-Id: I6c82ded6654b044486934b46a19bc04ed7e8992e
Signed-off-by: Faseela K <[email protected]>
8 years agoMerge "Fix issues related to checkstyle enforcement for module pot-netconf-renderer"
Yi Yang [Mon, 6 Mar 2017 01:21:41 +0000 (01:21 +0000)]
Merge "Fix issues related to checkstyle enforcement for module pot-netconf-renderer"

8 years agoFix issues related to checkstyle compliance 44/52844/1
David [Sun, 5 Mar 2017 23:58:53 +0000 (00:58 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module
sfc-sb-rest:
- Copyright sections
- Order imports
- Line lengths
- Formatting
- Rename variables
- Remove unused variables
- New class AclExporter to avoid having 2 classes in the same file
- New class RspExporter to avoid having 2 classes in the same file
- New class SfExporter to avoid having 2 classes in the same file
- New class SfgExporter to avoid having 2 classes in the same file
- New class SfstateExporter to avoid having 2 classes in the same file
- New class SfstExporter to avoid having 2 classes in the same file
- Remove duplicate constants
- Move declaration of variables closer to their use
- Declaration of constants: name, modifiers

Change-Id: I2299575852d42105f84a35823a9f02c33442b80e
Signed-off-by: David <[email protected]>
8 years agoFix issues related to checkstyle enforcement for module 45/52845/1
David [Sun, 5 Mar 2017 14:30:01 +0000 (15:30 +0100)]
Fix issues related to checkstyle enforcement for module
pot-netconf-renderer

- Copyright sections
- Line lengths
- Declaration of constants: name, modifiers
- Formatting
- Rename variables
- Move declaration of variables closer to their use
- Exception catching
- Remove unused variables
- Enforcement in pom.xml

Change-Id: I8316f367ec90a7f6ef0d15f0507d1f5a04020c75
Signed-off-by: David <[email protected]>
8 years agosfc-vpp-renderer - enforce checkstyle 17/52617/3
Faseela K [Thu, 2 Mar 2017 08:02:16 +0000 (13:32 +0530)]
sfc-vpp-renderer - enforce checkstyle

Change-Id: I39c179bc22651087f3dd526adbbecece293d84c7
Signed-off-by: Faseela K <[email protected]>
8 years agoFix package names to comply with naming conventions 60/52760/2
David [Fri, 3 Mar 2017 12:42:40 +0000 (13:42 +0100)]
Fix package names to comply with naming conventions

New arrangement of packages to comply with naming conventions.

Change-Id: Ice01dd527902439ebd44ae051ad0e36ccd383727
Signed-off-by: David <[email protected]>
8 years agoAdd missing <name> fields for pom.xml files 12/52712/8
Anil Belur [Fri, 3 Mar 2017 04:20:15 +0000 (14:20 +1000)]
Add missing <name> fields for pom.xml files

This is used by autorelease scripts to automatically parse which project
is failing a build and report to the mailing list automatically. We need
names in the format:

    ODL :: <groupId> :: <artifactId>

This patch formats in the same format as found in the startup archetypes
patch found here: https://git.opendaylight.org/gerrit/52522

Change-Id: Ib62021d93035eff6ada8584e12e68ce4dba3d651
Signed-off-by: Anil Belur <[email protected]>
8 years agoFix a minor checkstyle violation in sfc-provider module 36/52736/1
David [Fri, 3 Mar 2017 09:18:52 +0000 (10:18 +0100)]
Fix a minor checkstyle violation in sfc-provider module

Fix a minor checkstyle violation in sfc-provider module.

Change-Id: I3d2d6c6a950445ac75db89a5f1baa1ad86dd7476
Signed-off-by: David <[email protected]>
8 years agoGet rid of double brace initializers 20/52220/3
Miguel Duarte [Thu, 23 Feb 2017 15:05:45 +0000 (16:05 +0100)]
Get rid of double brace initializers

Double brace initialization is evil. In fact, it is considered a java
anti-pattern, since code becomes harder to read, and for each instance
instantiated through this, an anonymous class is created, whose
constructor code is the contents of the double brace.

Simply put, we're better off without it.

Change-Id: I162ca93b2afa7115a41ccc8b7e1f15b475ad0e6f
Signed-off-by: Miguel Duarte <[email protected]>
8 years agoFix issues related to checkstyle compliance 30/52430/2
David [Tue, 28 Feb 2017 23:01:33 +0000 (00:01 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module
sfc-ovs:
- Copyright sections
- Line lengths
- Order imports
- Declaration of constants: name, modifiers
- Formatting
- Rename variables
- Move declaration of variables closer to their use
- Exception catching
- Default clause for switch
- Remove unused variables
- Enforcement in pom.xml

Change-Id: I666aae1a9bfb1d661f785cd1b33e4a880bec1265
Signed-off-by: David <[email protected]>
8 years agoAdd NSH proxy support in openflow renderer 00/52500/5
Yi Yang [Thu, 2 Mar 2017 02:08:28 +0000 (10:08 +0800)]
Add NSH proxy support in openflow renderer

You can set proxy data plane locator for one SF
to enable NSH proxy for this SF.

        "sf-data-plane-locator": [
            {
                "name": "firewall-1-dpl",
                "port": 4789,
                "ip": SF2_IP,
                "transport": "service-locator:vxlan",
                "service-function-forwarder": "SFF2",
                "service-function-proxy:proxy-data-plane-locator": {
                    "port": 4790,
                    "ip": SF2_PROXY_IP,
                    "transport": "service-locator:vxlan-gpe"
                }
            }
        ]

Then openflow renderer will send VxLAN-gpe + NSH packet
to NSH proxy instead of ths SF, vxlan_tool.py is
changed to support NSH proxy and NSH-unaware SF. NSH proxy
will map VxLAN-gpe + NSH to VxLAN and send VxLAN packet to
NSH-unaware SF. Every session's NSH header is saved in
NSH proxy in order that it can be sent back to SFF intactly.

You can run vxlan_tool.py as NSH proxy by the below command

$ sudo python ./vxlan_tool.py --do=nsh_proxy -i eth1 -v on

Change-Id: I0a34cf5b68709c960218dfdf723a03f532d61305
Signed-off-by: Yi Yang <[email protected]>
8 years agoFixes for the SFC103 demo 95/52495/3
Brady Johnson [Wed, 1 Mar 2017 11:58:30 +0000 (12:58 +0100)]
Fixes for the SFC103 demo

- the recent Eth+NSH patch introduced a bug that broke the demo
- changing the Vagrantfile to use Ubuntu trusty, since wiley is not available
- Patch Set 3 : removing unecessary LOG

Change-Id: Ibcd2ea2f219bdc57d4d23257b7c58988dcf1e97a
Signed-off-by: Brady Johnson <[email protected]>
8 years agoChange from odl-genius to odl-genius-api dependences 01/50801/3
Diego Granados [Mon, 23 Jan 2017 11:43:38 +0000 (12:43 +0100)]
Change from odl-genius to odl-genius-api dependences

Both SFC openflow renderer & SFC classifier dependence on
feature "odl-genius" (added during logical SFF development)
is breaking SFC for classic (i.e. not cloud-based) deployments.
This is because depending on the odl-genius features has
the consequence of instructing the feature to start the
Genius-based application coexistance (e.g. to take ownership of table 0),
which is wrong for non-cloud scenarios.
This feature dependence has been changed to odl-genius-api, which
allows code dependences to be resolved without starting
Genius-based application coexistence.

Change-Id: I1eb0921e3c6358f3a142b950e6c09cdf91928916
Signed-off-by: Diego Granados <[email protected]>
8 years agoBUG 7182: remove M2E lifecycle mapping 34/52434/1
David [Tue, 28 Feb 2017 23:49:35 +0000 (00:49 +0100)]
BUG 7182: remove M2E lifecycle mapping

This is handled by odlparent.

Change-Id: Iaa87e5148c77b037e40e5c26ffbf6b1c7f2fa85a
Signed-off-by: David <[email protected]>
8 years agoChange package name to comply with Java checkstyle 82/52282/3
David [Mon, 27 Feb 2017 09:34:48 +0000 (10:34 +0100)]
Change package name to comply with Java checkstyle

Change the name of package sfc_ovs to ovs to comply with
Java checkstyle.

Change-Id: I1def343d28e8624e8b9dc0a585c2dff452748574
Signed-off-by: David <[email protected]>
8 years agoAdding Eth+NSH Transport 13/42313/11
Brady Johnson [Fri, 22 Jul 2016 12:39:36 +0000 (14:39 +0200)]
Adding Eth+NSH Transport

- Implementation for Vxgpe+NSH from classifier-SFF and SFF-SFF, but
  Eth+NSH from SFF-SF.
- The SFFs should have 2 DPLs, one for Vxgpe+NSH and another for Eth+NSH.
- Added SfcRspProcessorNshEth
- Added Unit tests in SfcOfFlowProgrammerTest and SfcOfRspProcessorTest
- Fixes for Code Review comments
- Fixed checkstyle violations
- Fixes for Unit Tests

Change-Id: Iecd0cf7dd9af3395202e809ceda1f2f728228232
Signed-off-by: Brady Johnson <[email protected]>
8 years agoAdd NSH proxy support for VPP renderder 44/52244/2
Yi Yang [Fri, 24 Feb 2017 12:00:21 +0000 (20:00 +0800)]
Add NSH proxy support for VPP renderder

vpp 17.01 and nsh_sfc 17.01 can act as a NSH proxy,
this commit enables VPP renderer to support NSH-unaware
Service Function, in that case, users need to specify
proxy data plane locator for this SF as below:

     "sf-data-plane-locator": [
         {
             "name": "firewall-1-dpl",
             "port": 4789,
             "ip": SF2_DP_IP,
             "transport": "service-locator:vxlan",
             "service-function-forwarder": "SFF2",
             "service-function-proxy:proxy-data-plane-locator": {
                  "port": 4790,
                  "ip": SF2_PROXY_DP_IP,
                  "transport": "service-locator:vxlan-gpe"
             }
         }
     ]

SFF will send VxLAN-gpe+NSH packet to NSH proxy specified by
proxy data plane locator, NSH proxy will send VxLAN+Ethernet
to SF, NSH proxy maintains VxLAN-gpe+NSH to VxLAN+Ethernet
mapping table in order that SFF will get correct VxLAN-gpe+NSH
packets from NSH proxy.

Change-Id: If3ecc82afd6b38142b143e43f541a270f4caa470
Signed-off-by: Yi Yang <[email protected]>
8 years agoFix issues related to checkstyle compliance 75/52275/1
David [Sun, 26 Feb 2017 18:16:11 +0000 (19:16 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module
sfc-openflow-utils:
- Copyright sections
- Line lengths
- Order imports
- Declaration of constants: name, modifiers
- Formatting
- Rename variables
- Move declaration of variables closer to their use
- Exception catching
- Enforcement in pom.xml

Change-Id: I0679a193d3efdca9a9fc1b01dd49c3fdd8459941
Signed-off-by: David <[email protected]>
8 years agoChange package name to comply with Java checkstyle 40/52240/1
David [Fri, 24 Feb 2017 09:49:59 +0000 (10:49 +0100)]
Change package name to comply with Java checkstyle

Change the name of package transactional_writer to writer to comply with
Java checkstyle.

Change-Id: Iad481e329815db75783c46e8eae5392ec6bacce6
Signed-off-by: David <[email protected]>
8 years agoDocker environment + SFC e2e traffic tests 45/49745/24
eceabpe [Mon, 13 Feb 2017 15:47:25 +0000 (16:47 +0100)]
Docker environment + SFC e2e traffic tests

-Add some updates to 'dovs' utility (that simulates neutron networks)
-Add tools to test end to end traffic for Service Function Chaining
with NSH in Logical-SFF configurations
-Add a Simple Service Function HTTP Header Enrichment (with its own tests)
-Add brief documentation (README.asciidoc files)
-Add Test cases see below

Example demo for testing the Logical SFF end-to-end SFC traffic
-Start the Controller (e.g. that run on 172.28.128.3)
-Start the 'dovs' environment:
cd sfc-test/sfc-docker/
vagrant destroy -f && vagrant up && vagrant ssh
> cd /vagrant/sf_hhe/logical_sff

A. SFs in a DIFFERENT subnets
-1 Test traffic in two Service Function Chains
> sudo ./test_case_01_traffic_different_subnet.sh -o 172.28.128.3
-2 Test traffic in one Service Function Chain
 + Test traffic after moving one VM to other compute node
> sudo ./test_case_02_move_vm_different_subnet.sh -o 172.28.128.3

B. SFs in the SAME subnet
-3 Test traffic in two Service Function Chains
> sudo ./test_case_03_traffic_same_subnet.sh -o 172.28.128.3
-4 Test traffic in one Service Function Chain
 + Test traffic after moving one VM to other compute node
> sudo ./test_case_04_move_vm_same_subnet.sh -o 172.28.128.3

- Clean the network topology in 'dovs'
> sudo dovs clean --odl 172.28.128.3

Executing tests from A and B requires restart ODL Controller and dovs

-There are many logs that will be stored in ./logs
(e.g. To see TCP packages in client of first Chain for test case 01
 > tcpdump -qns 0 -A -r ./logs/client1_tcpdump.pcap tcp )

- Check SFC configuration
> ./GetSfcConfig.py -v -ip 172.28.128.3

Change-Id: Idf02270444eb52597a4921563374e6876b5959cf
Signed-off-by: eceabpe <[email protected]>
8 years agoFix issues related to checkstyle compliance 93/52193/1
David [Wed, 22 Feb 2017 23:46:22 +0000 (00:46 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module
sfc-ios-xe-renderer:
- Copyright sections
- Line lengths
- Order imports
- Declaration of constants: name, modifiers
- Formatting
- Remove redundant modifiers: public in interface methods, final, etc.
- Rename variables
- Move declaration of variables closer to their use

Change-Id: I553c598839513c6c651527561e669df39e0e2779
Signed-off-by: David <[email protected]>
8 years agoClean up and fix RSP and service classifier remove issues 91/52091/2
Yi Yang [Tue, 21 Feb 2017 02:51:11 +0000 (10:51 +0800)]
Clean up and fix RSP and service classifier remove issues

When a RSP is removed, the corresponding vpp configuration
should be removed and cleaned up, vpp classifier configuration
also should be removed correctly after a service classifier
is removed.

This patch makes sure the related VxlanGpe ports, nsh entries,
nsh maps, vpp classify tables and vpp classify sessions are
removed and cleaned up after RSP or service classifier is
removed.

Change-Id: I9c10d8ce8275f90d5196f2974572307011269db1
Signed-off-by: Yi Yang <[email protected]>
8 years agoRemove overall checkstyle activation in SFC 32/52132/2
David [Tue, 21 Feb 2017 23:11:57 +0000 (00:11 +0100)]
Remove overall checkstyle activation in SFC

The overall checkstyle activation is not defined locally
in the specific projects as SFC anymore, but in the odlparent's POM.

This patch remove the local files stored in the
sfc-parent directory referenced by some modules like
the sfc-network-topology-utils.

The actual enforcement will be done on a per-module
basis, as in the following:

https://git.opendaylight.org/gerrit/#/c/51040/2/sfc-netconf/pom.xml

Change-Id: I9f742b83240f2055f352e71c64984f04b92563e1
Signed-off-by: David <[email protected]>
8 years agoFix issues related to checkstyle compliance 20/52120/1
David [Tue, 21 Feb 2017 16:02:07 +0000 (17:02 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module sfc-provider:
- Copyright sections
- Line lengths
- Order imports
- Declaration of constants: name, modifiers
- Formatting
- Remove redundant modifiers: public in interface methods, final, etc.
- Rename variables
- Move declaration of variables closer to their use

Change-Id: I8972b29436b8710777c2680347a1f52aaded1c8e
Signed-off-by: David <[email protected]>
8 years agoFix issues related to checkstyle compliance 61/52061/2
David [Mon, 20 Feb 2017 08:14:20 +0000 (09:14 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module sfc-provider:
- Copyright sections
- Line lengths
- Order imports
- Declaration of constants: name, modifiers
- Formatting
- Remove redundant modifiers: public in interface methods, final, etc.
- Rename variables
- Move declaration of variables closer to their use

Change-Id: I53b97f7709885629496f5f261bb017353a232ce2
Signed-off-by: David <[email protected]>
8 years agoMerge "Fix issues related to checkstyle compliance"
Yi Yang [Mon, 20 Feb 2017 00:51:17 +0000 (00:51 +0000)]
Merge "Fix issues related to checkstyle compliance"

8 years agoFix issues related to checkstyle compliance 11/52011/1
David [Fri, 17 Feb 2017 18:18:54 +0000 (19:18 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module
sfc-provider:
- Copyright sections
- Line lengths
- Order imports
- Declaration of constants: name, modifiers
- Formatting
- Remove redundant modifiers: public in interface methods, final, etc.
- Rename variables
- Move declaration of variables closer to their use

Change-Id: If486916d2236a3f463e5a17fc94d68a253d13c49
Signed-off-by: David <[email protected]>
8 years agoAdd VPP classifier 42/51542/3
Yi Yang [Fri, 17 Feb 2017 04:06:07 +0000 (12:06 +0800)]
Add VPP classifier

From vpp, honeycomb, hc2vpp and nsh_sfc 17.01 on,
vpp can act as sfc classifier as ovs-dpdk did before,
this patch adds a new classifier sfc-scf-vpp, it can
translate IETF ACLs into vpp classify tables and
sessions. With this commit, sfc can achieve NSH-based
service function chaining only based on vpp instead ovs,
this makes people have another choice to do service
function chaining.

By the way, NSH implementation has been part of vpp
releases, so we needn't any extra patch for NSH.

Change-Id: I8fe1bc5144140a0c378b87bef884ca49ba9223a8
Signed-off-by: Yi Yang <[email protected]>
8 years agoFix issues related to checkstyle compliance 95/51895/1
David [Wed, 15 Feb 2017 09:47:11 +0000 (10:47 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module
sfc-openflow-renderer:
- Copyright sections
- Line lengths
- Order imports
- Declaration of constants: name, modifiers
- Formatting
- Remove redundant modifiers: public in interface methods, final, etc.
- Rename variables
- Move declaration of variables closer to their use

Change-Id: I732f5f0141923756894919982dfc3938249717a5
Signed-off-by: David <[email protected]>
8 years agoMerge "Fix issues related to checkstyle compliance"
Brady Johnson [Fri, 10 Feb 2017 11:30:18 +0000 (11:30 +0000)]
Merge "Fix issues related to checkstyle compliance"

8 years agoMerge "Fix issues related to checkstyle compliance"
Brady Johnson [Fri, 10 Feb 2017 11:30:09 +0000 (11:30 +0000)]
Merge "Fix issues related to checkstyle compliance"

8 years agoMerge "Delete SFF VXGPE port upon SFF deletion"
Yi Yang [Fri, 10 Feb 2017 10:58:54 +0000 (10:58 +0000)]
Merge "Delete SFF VXGPE port upon SFF deletion"

8 years agoFix issues related to checkstyle compliance 54/51654/2
David Suarez [Thu, 9 Feb 2017 20:46:49 +0000 (21:46 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module
sfc-openflow-renderer:
- Copyright sections
- Line lengths
- Declaration of constants: name, modifiers
- Formatting
- Group overloaded methods
- Remove redundant modifiers: public in interface methods, final, etc.
- Move variable declarations to be closer to their usage

Change-Id: Ic997732b525d3397532650282a13d1d742c50d3b
Signed-off-by: David Suarez <[email protected]>
Change-Id: Ibae8e1e15156d51c37ff9b152eb8081f89545d21
Signed-off-by: David Suarez <[email protected]>
8 years agoFix issues related to checkstyle compliance 33/51633/3
David Suarez [Thu, 9 Feb 2017 14:43:29 +0000 (15:43 +0100)]
Fix issues related to checkstyle compliance

Fix issues related to checkstyle compliance in module
sfc-openflow-renderer:
- Copyright sections
- Line lengths
- Declaration of constants: name, modifiers
- Formatting
- Group overloaded methods
- Remove redundant modifiers: public in interface methods, final, etc.
- Move variable declarations to be closer to their usage

Change-Id: Ic997732b525d3397532650282a13d1d742c50d3b
Signed-off-by: David Suarez <[email protected]>
8 years agoChange package name to comply with checkstyle 56/51656/1
David Suarez [Thu, 9 Feb 2017 22:44:15 +0000 (23:44 +0100)]
Change package name to comply with checkstyle

Change package name to comply with checkstyle rules and other minor
changes to follow its rules.

Change-Id: Id82b4513f49dd9f09b3b1be74c323d6b29ac0e60
Signed-off-by: David Suarez <[email protected]>
8 years agoDelete SFF VXGPE port upon SFF deletion 99/50499/5
Brady Johnson [Fri, 13 Jan 2017 11:19:50 +0000 (12:19 +0100)]
Delete SFF VXGPE port upon SFF deletion

- Added sfc_ovs/provider/listener unit tests

Change-Id: I82ddda7319957fea390aeef2ddace367e3d30be1
Signed-off-by: Brady Johnson <[email protected]>
8 years agodocker environment to test sfc 91/49691/26
Jaime Caamaño Ruiz [Wed, 21 Dec 2016 11:11:48 +0000 (12:11 +0100)]
docker environment to test sfc

This directory provides:

- An utility, 'dovs', to setup neutron networks where compute nodes
  are containerized openvswitch instances and VMs are isolated network
  namespaces connected to such instances.
- A vagrant driven virtual environment prepared to run dovs

The plan is to further add utilities to test SFC on top of this
environment, and will also be used for CSIT SFC.

Change-Id: Ife8357d50b7df43400504d9bd602ff9afd1b88a7
Signed-off-by: Jaime Caamaño Ruiz <[email protected]>
8 years agoMerge "Bug 3712: SFP validation of SF types at creation time"
Brady Johnson [Tue, 7 Feb 2017 08:24:14 +0000 (08:24 +0000)]
Merge "Bug 3712: SFP validation of SF types at creation time"

8 years agoMinor changes in sfc-genius module to comply with checkstyle 92/51492/1
David Suarez [Mon, 6 Feb 2017 23:44:30 +0000 (00:44 +0100)]
Minor changes in sfc-genius module to comply with checkstyle

Minor changes in sfc-genius module to comply with checkstyle.

Change-Id: I549b89f7717181906c925dad3b2baff6ca2720f2
Signed-off-by: David Suarez <[email protected]>
8 years agoBug 3712: SFP validation of SF types at creation time 59/50559/10
Diego Granados [Mon, 16 Jan 2017 10:58:39 +0000 (11:58 +0100)]
Bug 3712: SFP validation of SF types at creation time

This commit makes use of DOMDataTreeCommitCohorts (callbacks
that can be registered in order to participate in commit
validation) in order to make sure that newly-added datastore
SFPs are consistent with previously defined SFCs and SFs.
Specifically, it is checked that the types for the SFs the
SFP references are consistent with the SF types that the
SFC specifies.

Since the datastore commit transaction is kept open during
validation, this validation must be as fast as possible.
Controller guidelines about not opening new datastore
reads in order to validate a DS write have been followed
to the maximum extent; for this reason, a datastore cache
has been deployed to cover both SFs and SFCs. On systems
with less than 500 SFs & SFCs deployed, caches will provide
total coverage (i.e. validation will never need to access
datastore)

Testing: manually tested (complex interactions between
controller-mdsal-scf are too hard to simulate). Proper CSIT
tests will be delivered to the sfc suites in the integration
project.

Change-Id: I5886d0be9191043aa8227c242a1498e518b31a38
Signed-off-by: Diego Granados <[email protected]>
8 years agoUpdate vpp YANG models to 17.01 release 70/51070/2
Yi Yang [Thu, 26 Jan 2017 13:28:46 +0000 (21:28 +0800)]
Update vpp YANG models to 17.01 release

Change-Id: I77f7e6e3e4508d49ff57dc0d36f9998546386bc2
Signed-off-by: Yi Yang <[email protected]>
8 years agoRename sfc-ios-xe-renderers packages to comply with checkstyle 15/51315/2
David Suarez [Wed, 1 Feb 2017 22:40:12 +0000 (23:40 +0100)]
Rename sfc-ios-xe-renderers packages to comply with checkstyle

Rename sfc-ios-xe-renderers packages to comply with checkstyle.

Change-Id: Ida04fae3ddba129564e76aedb989e8415f6153ab
Signed-off-by: David Suarez <[email protected]>
8 years agoBug 7554: Update GUI after deprecating nsh-aware in SF and other changes in model 52/50552/2
eabasan [Tue, 17 Jan 2017 14:48:51 +0000 (15:48 +0100)]
Bug 7554: Update GUI after deprecating nsh-aware in SF and other changes in model

After the following commits, GUI should be updated:
1) https://git.opendaylight.org/gerrit/#/c/49687/
   Removing deprecated SF fields (nsh-aware)
2) https://git.opendaylight.org/gerrit/#/c/49546/
   Deprecating the SFC and RSP symmetric flags

Change-Id: I994d70878ff5d6f71aca54b338076df9bf2d3a05
Signed-off-by: eabasan <[email protected]>
8 years agoSFC Proof of Transit SB changes. 36/49636/14
Srihari [Tue, 20 Dec 2016 09:44:44 +0000 (15:14 +0530)]
SFC Proof of Transit SB changes.

1. Add changes to handle RPC trigger to generate PoT configuration.
2. Add timer wheel and configuration refresh related timer code.
3. Add core SFC PoT configuration generation APIs
4. Utilities for listening to node arrivals and sending via NETCONF
5. Add unit tests.
6. Design guide and documentation: https://github.com/CiscoDevNet/iOAM

Change-Id: Ibfcf98509c91d8e9d0c20c741e08813c0ab19ef8
Signed-off-by: Srihari <[email protected]>
8 years agoUse operational for DPN term. service actions 67/50667/5
Jaime Caamaño Ruiz [Mon, 16 Jan 2017 18:01:05 +0000 (19:01 +0100)]
Use operational for DPN term. service actions

Remove in-memory handling of DPNs for terminating service actions.
Replace with listener for changes on the existing DPN to RSP map
already available on operationa data store
(service-function-forwarder-logical.yang, dpnid-rsps grouping).

In detail:

- Main module interface has been moved and renamed, from
  impl/handlers/ISfcGeniusInterfaceServiceHandler to
  impl/SfcGeniusServiceManager. This is because the module
  is no longer centered on interface events as it now responds
  to DPN related events.
- SfcGeniusServiceManager has two new methods, bindToNode and
  unbindFromNode, to create and remove the SFC terminating service
  action on the nodes.
- SfcGeniusServiceManager no longer has an interfaceStateDown method
  which only purpose was to remove the SFC terminating service action
  on VM migration. Note that now this is delayed up until the VM
  migration completes: interfaceStateUp on a new Node triggers
  the re-rendering of the appropiate RSPs which updates the map
  of DPN to RSP, which in turn triggers the removal and creation
  of the SFC service terminating action on the appropiate nodes.
- A new listener, SfcGeniusSffDpnStateListener, that in response
  to changes on the DPN to RSP map, will trigger SFC service
  binding or unbinding towards the DPN.

Change-Id: I2cfe36fadedba619ed959ba6e3c6533787a88be4
Signed-off-by: Jaime Caamaño Ruiz <[email protected]>
8 years agoAct on sonar reported issues / technical debt 61/51261/5
Miguel Duarte [Mon, 30 Jan 2017 14:14:39 +0000 (15:14 +0100)]
Act on sonar reported issues / technical debt

Stop using the 'order' local variable in the SfcOfFlowProgrammerImpl
methods; since we're only appending the action to the action list, I
think it is more explicit / less error-prone to indicate the 'order' as
the current-list size (always append to the end of the list)

The configureNshNscTransportEgressFlow in the SfcOfFlowProgrammerImpl
class had a bug; the next protocol was not deing correctly defined as
NSH - as a result, that action list only featured a single action, which
is to set the output port. Now it has an action setting the next
protocol to NSH, and another setting the output protocol.

Tests are updated accordingly.

Used a StringBuilder instead of a StringBuffer in the SfcOfRspProcessor
because the StringBuffer is thread safe, which, in this scenario only
leads to throttled performance.

Removed the TUN_GPE_NP_NSH constant from yet another class.

Change-Id: Ie66ba64f4ec015e97856da5289c19f10efdf3566
Signed-off-by: Miguel Duarte <[email protected]>
8 years agoEnforce checkstyle in sfc-sfclisp module 64/51264/1
David Suarez [Tue, 31 Jan 2017 17:04:22 +0000 (18:04 +0100)]
Enforce checkstyle in sfc-sfclisp module

Checkstyle enforcement for sfc-sfclisp module:
- Remove commented blocks
- Formatting
- Lines length
- Re-factor switch
- Replace catching of generic exceptions
- Move overloaded methods
- Fix Javadocs
- Protected constructor for utility classes
- Order imports
- Change attributes names

Change-Id: I234ee2489051132dcd3e6a5ae8ff904b94cb89d8
Signed-off-by: David Suarez <[email protected]>
8 years agoEnforce checkstyle in sfc-genius module 92/51092/4
David Suarez [Thu, 26 Jan 2017 21:55:37 +0000 (22:55 +0100)]
Enforce checkstyle in sfc-genius module

Checkstyle enforcement for sfc-genius module
- Formatting
- Fix Javadocs
- Order imports
- Change attributes names
- Replace catching of generic exceptions
- Lines length
- Enforce rule in POM

Change-Id: I35df8a29ee0813ed43c92391115350fa174d71a7
Signed-off-by: David Suarez <[email protected]>
8 years agoLSFF Fix: add NSH as NP at SFF->SFF egress 80/51080/4
Diego Granados [Thu, 26 Jan 2017 17:39:47 +0000 (18:39 +0100)]
LSFF Fix: add NSH as NP at SFF->SFF egress

Also test changes

Change-Id: Iddde0e57654aa045b6c8a33108fdb75463157408
Signed-off-by: Diego Granados <[email protected]>
8 years agoEnforce checkstyle in sfc-netconf module 40/51040/2
David Suarez [Wed, 25 Jan 2017 22:42:02 +0000 (23:42 +0100)]
Enforce checkstyle in sfc-netconf module

Checkstyle enforcement for sfc-netconf module
- Protected constructor for utility classes
- Formatting
- Fix Javadocs
- Order imports
- Change attributes names
- Replace catching of generic exceptions
- Remove commented blocks

Change-Id: I84669eb8c62429ab3b6b3377da19f0e4cf95bcfa
Signed-off-by: David Suarez <[email protected]>
8 years agoReplace mockito-all by mockito-core (see Bug 7662) 54/50854/2
Michael Vorburger [Mon, 23 Jan 2017 18:53:22 +0000 (19:53 +0100)]
Replace mockito-all by mockito-core (see Bug 7662)

Change-Id: I884d88f940955788bf7d5f0194183e198c9fad0e
Signed-off-by: Michael Vorburger <[email protected]>
8 years agoSplit sfc-vpp-utils bundle from sfc-vpp-renderer for sfc-scf-vpp 00/50500/7
Yi Yang [Thu, 26 Jan 2017 11:39:21 +0000 (19:39 +0800)]
Split sfc-vpp-utils bundle from sfc-vpp-renderer for sfc-scf-vpp

sfc-scf-vpp (SFC VPP classifier) needs to use common APIs from
sfc-vpp-renderer, so split them as a single bundle sfc-vpp-utils
for sharing between sfc-vpp-renderer and sfc-scf-vpp (the following
commit will implement it).

Change-Id: I87e94e484cde388a8d62cee71d48e1ff0201cb11
Signed-off-by: Yi Yang <[email protected]>