sfc.git
9 years agoClean up SfcOpenflowUtilsTest and re-enable all tests 30/31530/2
Stephen Kitt [Thu, 17 Dec 2015 17:41:31 +0000 (18:41 +0100)]
Clean up SfcOpenflowUtilsTest and re-enable all tests

nextHopGroupIdArray isn't used, remove it.
(int) random() is always 0 (because of rounding), use the default
Random() constructor.
Drop redundant casts.
static methods are final, drop the redundant final modifier.
All the parameter creation methods are used but untrackable, suppress
the unused warnings.
Remove commented code.
Fix shouldThrowExceptionForCreateSetAction() and re-enable it.

Change-Id: I6b14f161eb3c96d5170030b34bc0c6cd0776cae1
Signed-off-by: Stephen Kitt <[email protected]>
9 years agoCleaning up SfcL2FlowProgrammerOFimpl 55/30555/7
Brady Johnson [Thu, 3 Dec 2015 14:08:51 +0000 (15:08 +0100)]
Cleaning up SfcL2FlowProgrammerOFimpl

- instead of creating a thread class for each type
  of table modification, just create the flow and
  have one thread class for writing to, and another
  for removing from the data-store
- some simple API and logic cleanups
- more cleanups to SfcL2FlowProgrammerOFimpl coming
  in the RspProcessor refactor:
  https://git.opendaylight.org/gerrit/#/c/30859/
- PatchSet 3: Adding javadoc
- PatchSet 4: Rebase
- PatchSet 5: Rebase
- PatchSet 6: Minor changes from code review comments

Change-Id: I0716e3e759ddf5c985b51ce2f0a770349ee51cd4
Signed-off-by: Brady Johnson <[email protected]>
9 years agoMerge "sfc.sfc_lisp.provider.api cleanup"
Keith Burns [Wed, 16 Dec 2015 23:55:22 +0000 (23:55 +0000)]
Merge "sfc.sfc_lisp.provider.api cleanup"

9 years agoMerge "Adding buffering for TCP Proxy PktIn packets"
Keith Burns [Wed, 16 Dec 2015 23:54:52 +0000 (23:54 +0000)]
Merge "Adding buffering for TCP Proxy PktIn packets"

9 years agoMerge "Add missing license headers"
Keith Burns [Wed, 16 Dec 2015 23:38:57 +0000 (23:38 +0000)]
Merge "Add missing license headers"

9 years agoMerge "Add SFC Standalone classifier demo"
Keith Burns [Wed, 16 Dec 2015 22:48:35 +0000 (22:48 +0000)]
Merge "Add SFC Standalone classifier demo"

9 years agosfc.sfc_lisp.provider.api cleanup 35/30135/4
Matej Perina [Wed, 2 Dec 2015 17:43:01 +0000 (18:43 +0100)]
sfc.sfc_lisp.provider.api cleanup

Change-Id: Ic7ec747ea10ef75e6133ddb3db195239021350e0
Signed-off-by: Matej Perina <[email protected]>
9 years agoAdding buffering for TCP Proxy PktIn packets 34/28934/4
Brady Johnson [Thu, 29 Oct 2015 10:39:54 +0000 (11:39 +0100)]
Adding buffering for TCP Proxy PktIn packets

- Avoids updating data store for every packet in a flow
- The buffer key is the src/dst IP
- buffer max time is 60 seconds

Change-Id: I5840740b78ba49848d604be3cba6c2012178ee06
Signed-off-by: Brady Johnson <[email protected]>
9 years agoMerge "BUG-4697: move features to top level"
Keith Burns [Wed, 16 Dec 2015 20:49:08 +0000 (20:49 +0000)]
Merge "BUG-4697: move features to top level"

9 years agoAdd missing license headers 81/31381/1
Thanh Ha [Tue, 15 Dec 2015 23:29:38 +0000 (18:29 -0500)]
Add missing license headers

Change-Id: I670f301d830bde100adb0657aafb2e5733f9028e
Signed-off-by: Thanh Ha <[email protected]>
9 years agoAdding UT for SFCOFL2 package: 10/30210/6
Ricardo Noriega [Wed, 25 Nov 2015 17:14:48 +0000 (18:14 +0100)]
Adding UT for SFCOFL2 package:

    - Checking if flows written in datastore are properly built

Change-Id: Ia475c2f5471226551913af1fc3a5a770ac28155b
Signed-off-by: Ricardo Noriega <[email protected]>
9 years agoBUG-4697: move features to top level 47/31347/1
Robert Varga [Tue, 15 Dec 2015 13:51:09 +0000 (14:51 +0100)]
BUG-4697: move features to top level

RFC6020 is explicit about where a feature can be defined
(https://tools.ietf.org/html/rfc6020#section-7.18.1). Fix the model so
it does not block yangtools enforcement patch.

Change-Id: I555cefeb39ed9c50904b16765fc9353cc9dcaef1
Signed-off-by: Robert Varga <[email protected]>
9 years agoAdd SFC Standalone classifier demo 45/31245/1
Ruijing Guo [Sun, 13 Dec 2015 21:35:01 +0000 (21:35 +0000)]
Add SFC Standalone classifier demo

Change-Id: I3d3d92ff5920b4993d6a0469f72500994df6ab03
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoMerge "update according to yang model change"
Reinaldo Penno [Thu, 10 Dec 2015 09:10:34 +0000 (09:10 +0000)]
Merge "update according to yang model change"

9 years agoupdate according to yang model change 02/31102/1
Ruijing Guo [Thu, 10 Dec 2015 00:29:56 +0000 (00:29 +0000)]
update according to yang model change

Change-Id: I07aec182f93a9b060fffa8a6a0a641b0332e7f34
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoMerge "SfcNetworkTopologyUtils cleanup"
Reinaldo Penno [Tue, 8 Dec 2015 20:08:06 +0000 (20:08 +0000)]
Merge "SfcNetworkTopologyUtils cleanup"

9 years agoSfcNetworkTopologyUtils cleanup 17/29917/2
Michal Cmarada [Tue, 8 Dec 2015 07:21:42 +0000 (08:21 +0100)]
SfcNetworkTopologyUtils cleanup

Change-Id: I2574ed432ea43062f47a566c7ab42a58edcedf23
Signed-off-by: Michal Cmarada <[email protected]>
9 years agoThe changes to this code were done to support the recent SFC demo done by 52/30952/1
Andre Fredette [Tue, 8 Dec 2015 03:56:03 +0000 (22:56 -0500)]
The changes to this code were done to support the recent SFC demo done by
Sam Hague and Tim Rozet.  Keith Burns also used a version of it in a
GBP-based demo.

This code was modified to
* run with Python 2.7
* swap the IP SA and DA when forwarding.
* Work for either UDP port 4790 or 6633
* Don't forward NSH frames unless service index is > 1
* Added verbose option to turn off prints when in forward mode

Options:
* -i: Interface to receive, and optionally send packets on
* -d: Mode: 'dump' or 'forward'.  Default is dump.
* -v: Verbose: 'on' or 'off'.  Default is 'on', and 'off' only works
      in 'forward' mode.

Example Use:
sudo python vxlan_tool.py -i 'eth1' -d 'forward' -v 'off'

Change-Id: I14ddefcd2bdde3c681f69878ad817f464cb520d4
Signed-off-by: Andre Fredette <[email protected]>
9 years agoAddition of SF DPL to SFF DPL mapping. 92/28392/7
Keith Burns (alagalah) [Wed, 14 Oct 2015 13:04:49 +0000 (06:04 -0700)]
Addition of SF DPL to SFF DPL mapping.

Change-Id: If1a6a61ae7b84868ba7f887825c6ce3d98a148fe
Signed-off-by: Keith Burns (alagalah) <[email protected]>
9 years agoSFC Standalone Classifier 78/29478/15
Ruijing Guo [Tue, 1 Dec 2015 18:17:21 +0000 (18:17 +0000)]
SFC Standalone Classifier

1. Add unit test for SfcMatch
2. Add unit test for SfcScfOfScfDataListener
3. Add unit test for SfcScfOfScfProcessor
4. fix bug in SfcServicePathIdTest

Todo List:
1. add more unit tests
2. move SfcOvsPortUtils to sfc-ovs
3. move SfcNshHeader to sfc-provider

Change-Id: I86105872a9aa9a0763bec2a96cb7a84a18eb6034
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoUpdate and re-enable sfclisp 86/30686/1
Florin Coras [Wed, 25 Nov 2015 14:46:34 +0000 (15:46 +0100)]
Update and re-enable sfclisp

Change-Id: I85913f3fd707e9ef8a031f3bd5d5e93190c83e13
Signed-off-by: Florin Coras <[email protected]>
9 years agoMerge "Remove sfclisp from build"
Keith Burns [Thu, 3 Dec 2015 23:08:02 +0000 (23:08 +0000)]
Merge "Remove sfclisp from build"

9 years agoRemove sfclisp from build 76/30576/1
Florin Coras [Thu, 3 Dec 2015 18:07:27 +0000 (19:07 +0100)]
Remove sfclisp from build

Change-Id: I43e679302da38eb807014e5403b7047472244b60
Signed-off-by: Florin Coras <[email protected]>
9 years agoSFC data model to config OpenFlow table offsets 36/30136/5
Brady Johnson [Tue, 24 Nov 2015 13:18:36 +0000 (14:18 +0100)]
SFC data model to config OpenFlow table offsets

- For now, the Sfc OpenFlow Renderer data model only
  has attributes for OpenFlow tables, but in the future
  more attributes can be added.
- Introduced SfcSynchronizer class to be able to synchronize
  FlowTable offset changes with Rsp modifications.
- Introduced SfcL2OfRendererDataListener, that listens for
  changes to Sfc OpenFlow Renderer data model changes.
- Not UnitTested yet, waiting for patch 29986 to be merged,
  after which SfcL2FlowProgrammerOFimpl UT will be refactored.
- TableEgress feature not implemented yet. I want to refactor
  SfcL2FlowProgrammerOFimpl first, which will make implementing
  the feature much easier.
- Patch Set 2 - rebase

Change-Id: I7c5ed97d68ea0e08beabeae601c4c24d944cf589
Signed-off-by: Brady Johnson <[email protected]>
9 years agoChange to classifier.py fixing issue with dict keys. 23/30523/1
Keith Burns (alagalah) [Thu, 3 Dec 2015 01:55:41 +0000 (17:55 -0800)]
Change to classifier.py fixing issue with dict keys.

Change-Id: Ib916375974be25e635187d7204ab2b838a675bb1
Signed-off-by: Keith Burns (alagalah) <[email protected]>
9 years agoAllow socket reuse in IPTABLES classifier 13/30513/1
Keith Burns (alagalah) [Wed, 2 Dec 2015 22:02:44 +0000 (14:02 -0800)]
Allow socket reuse in IPTABLES classifier

Change-Id: I508361b3cbc7bcf95afbe6c8ec7e5c05d6ecf411
Signed-off-by: Keith Burns (alagalah) <[email protected]>
9 years agoMerge "SFC UI - broken forms fix"
Reinaldo Penno [Wed, 2 Dec 2015 16:42:25 +0000 (16:42 +0000)]
Merge "SFC UI - broken forms fix"

9 years agoMerge "sfc_ovs.api cleanup"
Brady Johnson [Wed, 2 Dec 2015 15:57:15 +0000 (15:57 +0000)]
Merge "sfc_ovs.api cleanup"

9 years agosfc-provider.api cleanup 28/30128/5
Michal Cmarada [Wed, 2 Dec 2015 14:23:14 +0000 (15:23 +0100)]
sfc-provider.api cleanup

Change-Id: I96d63cafe10107033a8d9f12365d2fd5707c1a83
Signed-off-by: Michal Cmarada <[email protected]>
9 years agosfc_ovs.api cleanup 38/30138/2
Michal Cmarada [Wed, 2 Dec 2015 14:05:55 +0000 (15:05 +0100)]
sfc_ovs.api cleanup

Change-Id: I56e3652505ece37ac2c3a5c00f05b9ff0aa7f875
Signed-off-by: Michal Cmarada <[email protected]>
9 years agoSFC UI - broken forms fix 44/30444/3
Daniel Malachovsky [Wed, 2 Dec 2015 12:36:16 +0000 (13:36 +0100)]
SFC UI - broken forms fix

- ACL table now shows data
- add/edit ACL data is working
- fixed template directive to not rewrite existing data

Change-Id: Icc3d40a9962053f09e40d7834b5f3b1e994d68e1
Signed-off-by: Daniel Malachovsky <[email protected]>
Signed-off-by: Stanislav Jamrich <[email protected]>
Signed-off-by: Daniel Malachovsky <[email protected]>
9 years agoMove network topology APIs from sfc-provider to sfc-util 60/30460/1
Yi Yang [Wed, 2 Dec 2015 01:54:55 +0000 (09:54 +0800)]
Move network topology APIs from sfc-provider to sfc-util

This will utterly remove dependency on l2switch from
sfc-provider, network topology APIs are put into a bundle
sfc-network-topology-utils under sfc-util.

Change-Id: Ic5606d5e506d78e54cd96902f70e4838f8f4c170
Signed-off-by: Yi Yang <[email protected]>
9 years agoMerge "Change sfc-util for accommodating multiple bundles"
Reinaldo Penno [Tue, 1 Dec 2015 20:49:01 +0000 (20:49 +0000)]
Merge "Change sfc-util for accommodating multiple bundles"

9 years agoMerge "SfcUICosmeticChanges2"
Reinaldo Penno [Tue, 1 Dec 2015 19:53:59 +0000 (19:53 +0000)]
Merge "SfcUICosmeticChanges2"

9 years agoChange sfc-util for accommodating multiple bundles 37/28837/9
Yi Yang [Tue, 27 Oct 2015 10:39:04 +0000 (18:39 +0800)]
Change sfc-util for accommodating multiple bundles

Current sfc-util only has one bundle, it is actually
openflow utils, network topology utils will be moved
into this in order that sfc-provider won't depend on
l2switch. So this commit renames current sfc-util
bundle to sfc-openflow-utils and chnage sfc-util to
accommodate other utils.

Change-Id: I06575c283726e532b9a514444c6ea7a06178d912
Signed-off-by: Yi Yang <[email protected]>
9 years agoMerge "Remove executable bit on pom files"
Reinaldo Penno [Tue, 1 Dec 2015 18:45:04 +0000 (18:45 +0000)]
Merge "Remove executable bit on pom files"

9 years agoImplementation of Service Function Type Definitions 90/30090/8
Keith Burns (alagalah) [Mon, 23 Nov 2015 17:37:02 +0000 (09:37 -0800)]
Implementation of Service Function Type Definitions

Change-Id: I863dec458365b0175b42bda0357f429186f008a6
Signed-off-by: Keith Burns (alagalah) <[email protected]>
9 years agoSfcUICosmeticChanges2 35/30435/1
Stanislav Jamrich [Tue, 1 Dec 2015 13:34:26 +0000 (14:34 +0100)]
SfcUICosmeticChanges2

- added ngTable search placeholder

Change-Id: I4671b496344a07a70770ec9c73046be6c847e3c5
Signed-off-by: Stanislav Jamrich <[email protected]>
9 years agoMerge "SFC UI cosmetic fixes"
Reinaldo Penno [Tue, 1 Dec 2015 10:31:21 +0000 (10:31 +0000)]
Merge "SFC UI cosmetic fixes"

9 years agoMerge "sfc_ovs.util cleanup"
Reinaldo Penno [Tue, 1 Dec 2015 10:30:45 +0000 (10:30 +0000)]
Merge "sfc_ovs.util cleanup"

9 years agoSFF SF-dict sff-sf-dpl is a name, not a DPL 03/29303/16
Brady Johnson [Thu, 5 Nov 2015 11:32:22 +0000 (12:32 +0100)]
SFF SF-dict sff-sf-dpl is a name, not a DPL

- Instead of redefining the DPL in this dictionary,
  refer to the SF DPL name.
- Allows for much better referential integrity
- Patch Set 6 removed duplicate SF type
- Patch Set 7 fixes the python test failures
- Patch Set 8 adds sf retrieval from ODL to the sfc_agent
- Patch Set 9 and 10 rebasing
- Patch Set 12 and 13 rebasing again
- Patch Set 16 fixed problem with python list vs dict

Change-Id: I29ff6b0b7ce9a00c265ca9dbc62fb740e0159130
Signed-off-by: Brady Johnson <[email protected]>
9 years agoSFC UI cosmetic fixes 99/30299/2
Stanislav Jamrich [Fri, 27 Nov 2015 15:01:30 +0000 (16:01 +0100)]
SFC UI cosmetic fixes

- cosmetic fixes in SFC UI

Change-Id: I4049941f1f656fc3fb14c60107f0cce946547437
Signed-off-by: Stanislav Jamrich <[email protected]>
9 years agoRemove executable bit on pom files 53/30353/1
Thanh Ha [Sun, 29 Nov 2015 22:36:42 +0000 (17:36 -0500)]
Remove executable bit on pom files

pom.xml files are metadata and do not require executable permissions.

Change-Id: I1d43b9e0ce2f61d8827c8874db95eec75ddd6d5d
Signed-off-by: Thanh Ha <[email protected]>
9 years agoSFC provider unit test clean up 29/30129/2
Ricardo Noriega [Tue, 24 Nov 2015 10:13:56 +0000 (11:13 +0100)]
SFC provider unit test clean up

    - Replacing C-style arrays to Java lists

Change-Id: Icbd3459a66d358d61027367d5abd854ed8c4ff81
Signed-off-by: Ricardo Noriega <[email protected]>
9 years agoMerge "SFCOFL2 Unit Test improvements"
Johnson Li [Wed, 25 Nov 2015 16:20:21 +0000 (16:20 +0000)]
Merge "SFCOFL2 Unit Test improvements"

9 years agosfc_ovs.util cleanup 44/30144/1
Michal Cmarada [Tue, 24 Nov 2015 15:17:47 +0000 (16:17 +0100)]
sfc_ovs.util cleanup

Change-Id: Ibf59a8579058e4fd8439ab93cfed434ff4c707a1
Signed-off-by: Michal Cmarada <[email protected]>
9 years agoYang model for Abstract Type Definition of Service Functions 81/29981/8
Ricardo Noriega [Tue, 17 Nov 2015 09:48:03 +0000 (10:48 +0100)]
Yang model for Abstract Type Definition of Service Functions

Change-Id: I1f460577a043091d3f5d8d20e0d2b2b7171cdc41
Signed-off-by: Ricardo Noriega <[email protected]>
Signed-off-by: Keith Burns (alagalah) <[email protected]>
9 years agoSFCOFL2 Unit Test improvements 86/29986/1
Brady Johnson [Fri, 20 Nov 2015 08:58:05 +0000 (09:58 +0100)]
SFCOFL2 Unit Test improvements

- Now using mockito to track calls to the OpenFlow renderer

Change-Id: I8e20f448b3fc7ec99143d1329852ad0526dc872b
Signed-off-by: Brady Johnson <[email protected]>
9 years agoFixed tests using default value 28/29928/1
Martin Sunal [Thu, 19 Nov 2015 16:29:42 +0000 (17:29 +0100)]
Fixed tests using default value

- fixed tests based on change
https://git.opendaylight.org/gerrit/#/c/28251/

Change-Id: Ifbdc51ed7dd68ac5b2c8e4b56260643880e59134
Signed-off-by: Martin Sunal <[email protected]>
9 years agoAdd code style check 78/29578/3
Ruijing Guo [Wed, 11 Nov 2015 21:19:43 +0000 (21:19 +0000)]
Add code style check

Change-Id: I153bee1a32f342401cff2c2c2ccbd49709d894aa
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoAdd NSH C3 C4 move action 87/29287/2
Ruijing Guo [Wed, 4 Nov 2015 22:35:44 +0000 (22:35 +0000)]
Add NSH C3 C4 move action

Change-Id: I184e4ee48bf072f017037207c7a0e614df8ee0b3
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoMerge "Yin files creation fix"
Reinaldo Penno [Tue, 3 Nov 2015 23:27:30 +0000 (23:27 +0000)]
Merge "Yin files creation fix"

9 years agoMerge "Fix for ACL YANG changes"
Reinaldo Penno [Tue, 3 Nov 2015 23:25:51 +0000 (23:25 +0000)]
Merge "Fix for ACL YANG changes"

9 years agoFix for ACL YANG changes 24/29224/1
Keith Burns (alagalah) [Tue, 3 Nov 2015 22:22:11 +0000 (14:22 -0800)]
Fix for ACL YANG changes

- URI sent to iptables classifier changed, yet Task sending old one.

Change-Id: If87041312fc6fe9b5070a81009b1d8e6ff2ea5b0
Signed-off-by: Keith Burns (alagalah) <[email protected]>
9 years agoAdding sequential path generation algorithm. 89/28889/4
Brady Johnson [Wed, 28 Oct 2015 13:36:22 +0000 (14:36 +0100)]
Adding sequential path generation algorithm.

- Random generation breaks sfcofl2 vlan demo
- Also added impl code for the service path id RPCs
- Sequential generation Unit tests included

Change-Id: If65a71f4f33cc4a89f9b527366c987967dfc928b
Signed-off-by: Brady Johnson <[email protected]>
9 years agoFeature clean up 69/29169/6
Keith Burns (alagalah) [Mon, 2 Nov 2015 23:19:08 +0000 (15:19 -0800)]
Feature clean up

- centralised and homogenised
- removed openflowplugin-all and netconf-all !!!!
- no more spurious log messages during startup
- removed un-needed depedencies
- removed redundant feature dependencies inside feature defn.

Change-Id: If5ea542732868b89ccd1cc6f5ae52167c8a4830b
Signed-off-by: Keith Burns (alagalah) <[email protected]>
9 years agoPom file clean up. 45/29045/8
Keith Burns (alagalah) [Fri, 30 Oct 2015 21:59:38 +0000 (14:59 -0700)]
Pom file clean up.

Change-Id: Ice04f4064257354a98dad66bc979ac78d37ca9bd
Signed-off-by: Keith Burns (alagalah) <[email protected]>
9 years agoYin files creation fix 92/28892/1
Daniel Malachovsky [Wed, 28 Oct 2015 14:39:55 +0000 (15:39 +0100)]
Yin files creation fix

- added search path to convert_yang_to_xml.sh script
- added yang files which are included into sfc models in sfc-model folder

Change-Id: I74acb65ced8bb844a646b6edead54ce89fcea08f
Signed-off-by: Daniel Malachovsky <[email protected]>
9 years agoRevert "Bug 4544 - SFC-VNFM Interface Implementation" 80/28880/1
Johnson Li [Wed, 28 Oct 2015 11:19:49 +0000 (11:19 +0000)]
Revert "Bug 4544 - SFC-VNFM Interface Implementation"

This reverts commit b31d270a05ea744ff8d539745e04738d836cf119.

Needs further discussion.

Change-Id: I22da812c27c83eb2084a403de5b665d1a0d5eb4e
Signed-off-by: Johnson Li <[email protected]>
9 years agoBug 4544 - SFC-VNFM Interface Implementation 62/28862/5
Reinaldo Penno [Wed, 28 Oct 2015 06:56:23 +0000 (23:56 -0700)]
Bug 4544 - SFC-VNFM Interface Implementation

Change-Id: I5b2c150df649e1a1ec1b484225754209d83dea29
Signed-off-by: Reinaldo Penno <[email protected]>
9 years agoBug 4507 20/28820/2
Daniel Malachovsky [Mon, 26 Oct 2015 20:34:11 +0000 (21:34 +0100)]
Bug 4507

 - Fixed script generating YIN files from Yang modules in the project.
 - added empty yang2xml folder
 - fixed many of the JS errors
 - deleted unnecessary files

 - more info @ https://bugs.opendaylight.org/show_bug.cgi?id=4507

Change-Id: I92892893e8955961c7f574b62296322bcf92c18b
Signed-off-by: Daniel Malachovsky <[email protected]>
9 years agoBug 4528 - SFC SBRest Broken 90/28790/2
Reinaldo Penno [Mon, 26 Oct 2015 08:12:19 +0000 (01:12 -0700)]
Bug 4528 - SFC SBRest Broken

- Commit https://git.opendaylight.org/gerrit/#/c/28539/
  introduced a new Yang model sfc-common.yang with typedefs
  for names used throughout other models.

- Although the typedefs resolve to strings, the typedefs
  themselves are instantiated as objects. Therefore in order
  to get the actual value of, say, the SF name from a SF
  object, first you get a handle to the object associated
  with the typedef and then perform a getValue().

- Introduced try/catch around jersey client methods
  in order to catch future issues

Change-Id: I870f3f84c707f6964aa1683b67a7c0e8ff2c847f
Signed-off-by: Reinaldo Penno <[email protected]>
9 years agoFix for YANG revisions not being explicit in import. 78/28778/4
Keith Burns (alagalah) [Sat, 24 Oct 2015 18:46:42 +0000 (11:46 -0700)]
Fix for YANG revisions not being explicit in import.

Change-Id: Ib1b6045ad74685ba37095c67aec424b67067545b
Signed-off-by: Keith Burns (alagalah) <[email protected]>
9 years agoMerge "Add exception handle for SfcProviderRenderedPathAPI & SfcNshHeader"
Reinaldo Penno [Mon, 26 Oct 2015 06:14:55 +0000 (06:14 +0000)]
Merge "Add exception handle for SfcProviderRenderedPathAPI & SfcNshHeader"

9 years agoAdd exception handle for SfcProviderRenderedPathAPI & SfcNshHeader 89/28789/1
Ruijing Guo [Mon, 26 Oct 2015 05:58:44 +0000 (05:58 +0000)]
Add exception handle for SfcProviderRenderedPathAPI & SfcNshHeader

Change-Id: Iad676023f076195e3dae2bc9fa24fdb5ca392d9c
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoFixing sfc-scf-openflow naming/class convention 87/28787/2
Reinaldo Penno [Mon, 26 Oct 2015 04:43:16 +0000 (21:43 -0700)]
Fixing sfc-scf-openflow naming/class convention

- Module, namespace and file name need to be consistent in
  sfc-scf-openflow-provider-impl.yang

- Fixes on .yang required corresponding changes in package
  name, class name, etc

- Fixed all possible Yang issues in sfc-provider-impl.yang.
  I do not think this is the cause of any issues but fixed
  everything according to pyang

- Fixed initial config files

Change-Id: I14f1d7f90d0c1c76f454535bd45fb362b08e2f1c
Signed-off-by: Reinaldo Penno <[email protected]>
9 years agofix NullPointerException in SfcLispUtil 21/28721/1
Ruijing Guo [Fri, 23 Oct 2015 05:39:10 +0000 (05:39 +0000)]
fix NullPointerException in SfcLispUtil

Change-Id: I4f0b2217f02ca44c1f0c3ad8101ea92e1ee6ecf8
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoBug 4481 - Standalone SFC classifier support 19/28719/1
Ruijing Guo [Fri, 23 Oct 2015 04:04:59 +0000 (04:04 +0000)]
Bug 4481 - Standalone SFC classifier support

  1. add more ACL match for SFC classifier
  2. clean up some code
  3. add some exception handle

Change-Id: I0c6e55c775da67a8aa19be7cb5374b92fbd34f2e
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoMerge "Append NSH-aware SF to vxlan_dump.py and rename as vxlan_tool.py"
Reinaldo Penno [Thu, 22 Oct 2015 06:29:47 +0000 (06:29 +0000)]
Merge "Append NSH-aware SF to vxlan_dump.py and rename as vxlan_tool.py"

9 years agoAppend NSH-aware SF to vxlan_dump.py and rename as vxlan_tool.py 77/28677/1
Yi Yang [Thu, 22 Oct 2015 05:40:05 +0000 (13:40 +0800)]
Append NSH-aware SF to vxlan_dump.py and rename as vxlan_tool.py

Usage: vxlan_tool.py [-h] [-i INTERFACE] [-d dump | forward]

This is a VxLAN/VxLAN-gpe + NSH dump and forward tool, you can use it to dump
and forward VxLAN/VxLAN-gpe + NSH packets, it can also act as an NSH-aware SF
for SFC test when you use --forward option, in that case, it will
automatically decrease nsi by one.

optional arguments:
  -h, --help            show this help message and exit
  -i INTERFACE, --interface INTERFACE
                        Specify the interface to listen
  -d {dump,forward}, --do {dump,forward}
                        dump/foward VxLAN/VxLAN-gpe + NSH packet

Change-Id: I2417327e1192073831d9da89893f90c0ccb741cd
Signed-off-by: Yi Yang <[email protected]>
9 years agoFix charset encode issue in sfc-py/MANIFEST.in 73/28673/1
Yi Yang [Thu, 22 Oct 2015 01:19:27 +0000 (09:19 +0800)]
Fix charset encode issue in sfc-py/MANIFEST.in

Before fix:
$ iconv -t ascii sfc-py/MANIFEST.in
iconv: illegal input sequence at position 0
$

After fix:
$ iconv -t ascii sfc-py/MANIFEST.in
graft nfq
graft test
include start_agent.sh tox.ini README.rst

prune unused
global-exclude *.pyc
recursive-exclude * __pycache__
$

https://pypi.python.org/pypi/sfc has same issue because of this
bad encode, this results in "pip3 install sfc" failure.

Change-Id: Ib12ad58e38d68b2bcaa4ce7a6670ccd286381267
Signed-off-by: Yi Yang <[email protected]>
9 years agoMerge "Introducing typedef and leafrefs for strings."
Reinaldo Penno [Wed, 21 Oct 2015 23:04:44 +0000 (23:04 +0000)]
Merge "Introducing typedef and leafrefs for strings."

9 years agoMerge "Add a SFC NSH test tool vxlan_dump.py"
Reinaldo Penno [Wed, 21 Oct 2015 16:09:56 +0000 (16:09 +0000)]
Merge "Add a SFC NSH test tool vxlan_dump.py"

9 years agoAdd a SFC NSH test tool vxlan_dump.py 54/28654/1
Yi Yang [Wed, 21 Oct 2015 12:15:14 +0000 (20:15 +0800)]
Add a SFC NSH test tool vxlan_dump.py

This is a pure python script, it can dump Ethernet
header, IP header, UDP header, NSH base header and
NSH context header, this is very helpful for SFC NSH
test.

It includes much code from sfc-py, the intention
is to make sure it is self-contained and hasn't too many
dependencies and packeges installation, in addition,
it does need some changes, the original APIs can't meet
its requirements.

Change-Id: I7ff2101afeeba009311e2f75efb2fc02bd3fc384
Signed-off-by: Yi Yang <[email protected]>
9 years agoFix errors in compute_internet_checksum in corner case 51/28651/1
Yi Yang [Wed, 21 Oct 2015 10:41:53 +0000 (18:41 +0800)]
Fix errors in compute_internet_checksum in corner case

When data length is odd, compute_internet_checksum will
hit a corner case, this results in two errors:
  1. pad = bytearray('\x00')
  2. out-of-boundary access to 'data'

This commit fixes them and it is verified in my python-based
SF.

Change-Id: Ida19b0b0f7c3a790a234273fc5773a4becd9f220
Signed-off-by: Yi Yang <[email protected]>
9 years agoIntroducing typedef and leafrefs for strings. 39/28539/19
Keith Burns (alagalah) [Sat, 17 Oct 2015 21:21:31 +0000 (14:21 -0700)]
Introducing typedef and leafrefs for strings.

This is to prepare for new data model, introduce
type safety and code-readability.

Change-Id: If181b38391abcc74754f2801bb2d6d66fd155e68
Signed-off-by: Keith Burns (alagalah) <[email protected]>
9 years agoBug 4500: Clean up Classifier/RSP dependency 84/28584/1
Ruijing Guo [Tue, 20 Oct 2015 08:43:30 +0000 (08:43 +0000)]
Bug 4500: Clean up Classifier/RSP dependency

Change-Id: Ie2d37a8d4d565bbdaae9edabaf1ec818f4740aad
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoMerge "SFC - fixed broken SFC UI by DLUX patch - fixed bugs about new version of...
Reinaldo Penno [Mon, 19 Oct 2015 15:43:47 +0000 (15:43 +0000)]
Merge "SFC - fixed broken SFC UI by DLUX patch - fixed bugs about new version of angular >1.4 - changed SFC compatibility to DLUX - SFC is depend just only on DLUX core - changed SFC UI translations to partial (like DLUX core) - removed yang2xml folder with Yin files - changed service-function-metadata module to   service-function-path-metadata in sfc.services.js"

9 years agoBug 4452 - Multiple Context Header Allocation Support 11/28311/8
Reinaldo Penno [Tue, 13 Oct 2015 02:31:33 +0000 (19:31 -0700)]
Bug 4452 - Multiple Context Header Allocation Support

This commit adds a SFC yang model as part of the
design of allows multiple SFC clients besides GBP.

https://lists.opendaylight.org/pipermail/sfc-dev/2015-September/001886.html

- The SFF metadata fatures design follows the recommended approach
  for capability and model evolution:
- https://tools.ietf.org/html/draft-ietf-netmod-rfc6087bis-04#page-31
- The common model (SFF) does not need to be touched
- All new augmentation and features remain on separate files
- Separate files can be reved and changed as needed

- RSP model was patched so client can request metadata allocation.
- Added new provisional code to test new RSP RPC
  parameters

- This code is safe in that it does not require any GBP changes yet

- Rebased to new classifier

Change-Id: I161d88196fa6ccd9baf64c3385974bcbd2af5fb4
Signed-off-by: Reinaldo Penno <[email protected]>
9 years agoMerge "Bug 4481 - Standalone SFC classifier support"
Reinaldo Penno [Mon, 19 Oct 2015 05:24:50 +0000 (05:24 +0000)]
Merge "Bug 4481 - Standalone SFC classifier support"

9 years agoBug 4481 - Standalone SFC classifier support 86/28486/3
Ruijing Guo [Fri, 16 Oct 2015 06:49:27 +0000 (06:49 +0000)]
Bug 4481 - Standalone SFC classifier support

1. Standalone SFC classifier framework
2. Already test in uni-direction SFC

TODO:

1. plan to add exception handle
2. plan to add bi-directory SFC
3. plan to add VLAN
4. plan to add classifier stats

Change-Id: I59fafc5f2145f7b07c4fd0bf66d055d9dc35fa86
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoChange protected to public in SfcProviderServiceFunctionMetadataAPI 43/28543/1
Ruijing Guo [Mon, 19 Oct 2015 02:29:10 +0000 (02:29 +0000)]
Change protected to public in SfcProviderServiceFunctionMetadataAPI

Change-Id: I96260af2e8f3c5f32058e4f490ba91c4cb4eeff5
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoMerge "Bug 4458 - implement SfcOpenflowUtils as SFC util module"
Reinaldo Penno [Fri, 16 Oct 2015 19:08:04 +0000 (19:08 +0000)]
Merge "Bug 4458 - implement SfcOpenflowUtils as SFC util module"

9 years agoBug 4458 - implement SfcOpenflowUtils as SFC util module 12/28312/2
Ruijing Guo [Tue, 13 Oct 2015 05:05:03 +0000 (05:05 +0000)]
Bug 4458 - implement SfcOpenflowUtils as SFC util module

Change-Id: Id06266ed7a9541fb765bb808af650076aa7406b1
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoAdd sfclisp postman collection for testing 82/28382/3
Florin Coras [Wed, 14 Oct 2015 11:12:03 +0000 (13:12 +0200)]
Add sfclisp postman collection for testing

Change-Id: I838b7c6b3c2aec027dec4a70d8d94377703ad1af
Signed-off-by: Florin Coras <[email protected]>
9 years agoMerge "Removed methods containing reflection"
Reinaldo Penno [Fri, 16 Oct 2015 09:42:06 +0000 (09:42 +0000)]
Merge "Removed methods containing reflection"

9 years agoRemoved methods containing reflection 89/28389/4
Martin Sunal [Wed, 14 Oct 2015 12:30:14 +0000 (14:30 +0200)]
Removed methods containing reflection

- removed all methods with name *Executor
- removed SfcProviderAbstractAPI which is not needed anymore

Change-Id: Ib7f0e2ad3ad5c43f4d06b3c93363eee0b2070ea2
Signed-off-by: Martin Sunal <[email protected]>
9 years agoMerge "Bug 4474 - Add metadata in rendered path data store"
Reinaldo Penno [Thu, 15 Oct 2015 13:40:06 +0000 (13:40 +0000)]
Merge "Bug 4474 - Add metadata in rendered path data store"

9 years agoBug 4474 - Add metadata in rendered path data store 17/28417/1
Ruijing Guo [Thu, 15 Oct 2015 00:16:00 +0000 (00:16 +0000)]
Bug 4474 - Add metadata in rendered path data store

Change-Id: Ia298f106959cdac5ae203df33d447fc1b1516b12
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoBug 4445 : Clean up pom.xml in SFC project 61/28361/1
Ruijing Guo [Wed, 14 Oct 2015 01:53:39 +0000 (01:53 +0000)]
Bug 4445 : Clean up pom.xml in SFC project

Change-Id: I928de057bb1d8fbf66785b3f3bd838b90be927eb
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoSFC 76/27276/9
Daniel Malachovsky [Tue, 13 Oct 2015 15:19:11 +0000 (17:19 +0200)]
SFC
- fixed broken SFC UI by DLUX patch
- fixed bugs about new version of angular >1.4
- changed SFC compatibility to DLUX - SFC is depend just only on DLUX core
- changed SFC UI translations to partial (like DLUX core)
- removed yang2xml folder with Yin files
- changed service-function-metadata module to
  service-function-path-metadata in sfc.services.js

Change-Id: Iedf77a7a8a909ec9a6fdadf9e80508aedc9ed51c
Signed-off-by: Daniel Kuzma <[email protected]>
Signed-off-by: Daniel Malachovsky <[email protected]>
9 years agoMerge "Bug 4453 - service function metadata provider support"
Reinaldo Penno [Mon, 12 Oct 2015 17:46:47 +0000 (17:46 +0000)]
Merge "Bug 4453 - service function metadata provider support"

9 years agoMerge "Bug 4443 - Add default classifier table for SFC"
Reinaldo Penno [Mon, 12 Oct 2015 16:05:40 +0000 (16:05 +0000)]
Merge "Bug 4443 - Add default classifier table for SFC"

9 years agoMerge "Bug 4445 : Clean up pom.xml in SFC project"
Reinaldo Penno [Mon, 12 Oct 2015 16:03:20 +0000 (16:03 +0000)]
Merge "Bug 4445 : Clean up pom.xml in SFC project"

9 years agoBug 4453 - service function metadata provider support 82/28282/1
Ruijing Guo [Mon, 12 Oct 2015 11:36:27 +0000 (11:36 +0000)]
Bug 4453 - service function metadata provider support

Change-Id: Ifee42e311e3c54869dbec0ba0f049c23474e38e5
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoMerge "Bug 4444 : Add system interface for SFC data plane locator"
Reinaldo Penno [Mon, 12 Oct 2015 04:22:58 +0000 (04:22 +0000)]
Merge "Bug 4444 : Add system interface for SFC data plane locator"

9 years agoBug 4443 - Add default classifier table for SFC 89/28189/2
Ruijing Guo [Fri, 9 Oct 2015 02:52:35 +0000 (02:52 +0000)]
Bug 4443 - Add default classifier table for SFC

Change-Id: I6e48370f2b033b732c29115bd958db182084fbe3
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoBug 4444 : Add system interface for SFC data plane locator 90/28190/2
Ruijing Guo [Fri, 9 Oct 2015 03:50:23 +0000 (03:50 +0000)]
Bug 4444 : Add system interface for SFC data plane locator

Change-Id: Ie15e7bdb9cffd697ef24d144672edd6fadbe7b7f
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoBug 4445 : Clean up pom.xml in SFC project 97/28197/5
Ruijing Guo [Fri, 9 Oct 2015 06:45:59 +0000 (06:45 +0000)]
Bug 4445 : Clean up pom.xml in SFC project

Change-Id: I7fcad0c678491c027eb6391d08810e0574a5e4ca
Signed-off-by: Ruijing Guo <[email protected]>
9 years agoFix bug 4450 random failure in SfcProviderSfstEntryDataListenerTest 39/28239/1
Hongli Chen [Sat, 10 Oct 2015 17:04:22 +0000 (01:04 +0800)]
Fix bug 4450 random failure in SfcProviderSfstEntryDataListenerTest

Change-Id: I5660aaa0aa4d4e1fced3d286e10cef2089dd9048
Signed-off-by: Hongli Chen <[email protected]>