openflowplugin.git
3 years agoRemove ByteBufUtils.macAddressToBytes() 09/92709/3
Robert Varga [Fri, 25 Sep 2020 08:49:49 +0000 (10:49 +0200)]
Remove ByteBufUtils.macAddressToBytes()

With all callers migrated, remove the now-unused method.

Change-Id: I65412717a28c393d3e31d2cda19d8becb3278dd7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoDeprecate ByteBufUtils.macAddressToBytes() 08/92708/3
Robert Varga [Fri, 25 Sep 2020 08:46:24 +0000 (10:46 +0200)]
Deprecate ByteBufUtils.macAddressToBytes()

This method operates on any string, whereas all its users are faced
with an ietf-yang-types' MacAddress. IetfYangUtil.macAddressBytes()
provides a superior alternative to this open-coded utility.

Change-Id: Id4f7448a0894a4cec5e76ec801cfde47b03e3be7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoUse Short.BYTES 15/92715/3
Robert Varga [Fri, 25 Sep 2020 10:30:58 +0000 (12:30 +0200)]
Use Short.BYTES

We have a few places where we a using Short.SIZE / Byte.SIZE. This
is already a constant known as Short.BYTES.

Change-Id: I51bbc7028131948d615ef2f21e9301ba1cff0fc6
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFix switch serial number type 06/92706/2
Robert Varga [Fri, 25 Sep 2020 08:35:59 +0000 (10:35 +0200)]
Fix switch serial number type

This is a day-0 bug in the definition: X509Certificate's serial
number can be any unbounded number, not just uint64.

Change the definition to be string-based so we do not get errors
if the serial number is negative or quite large.

Change-Id: I41292cc329c4eac81a7c671821e29b6851030056
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFix openflow-protocol-impl deprecation warnings 05/92705/2
Robert Varga [Fri, 25 Sep 2020 08:23:34 +0000 (10:23 +0200)]
Fix openflow-protocol-impl deprecation warnings

Convert all use of widened types to proper uint types.

JIRA: OPNFLWPLUG-1099
Change-Id: Iabdcf752965851b29be0162c70f463206d07abaa
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoDo no subclass HashMap 84/92684/1
Robert Varga [Fri, 25 Sep 2020 07:33:43 +0000 (09:33 +0200)]
Do no subclass HashMap

Eclipse is correctly pointing out we are creating a serializable
subclass without assigning a version to it. Rather than doing that,
use a simple initializer through an intermediate map.

Change-Id: I83d5a05c138bf7ee664612daf81f721fe30435f7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate test-extension to use uint types 82/92682/1
Robert Varga [Thu, 24 Sep 2020 22:50:37 +0000 (00:50 +0200)]
Migrate test-extension to use uint types

This is a straightforward replacement with Uint64.

JIRA: OPNFLWPLUG-1099
Change-Id: I2cc7607ec96c31566d2fbadb4bbab7cb54ed32e7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate frm-sync to use uint types 81/92681/1
Robert Varga [Thu, 24 Sep 2020 22:48:18 +0000 (00:48 +0200)]
Migrate frm-sync to use uint types

This is a simple matter of encapsulating values, make sure we do
that.

JIRA: OPNFLWPLUG-1099
Change-Id: I12f5c63b9a9935a993b52a7ce90f5ae91a55edc4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMake methods static 80/92680/1
Robert Varga [Thu, 24 Sep 2020 22:43:15 +0000 (00:43 +0200)]
Make methods static

Eclipse is pointing out a number of methods which can be made static,
fix those warnings.

Change-Id: I4691094f1e5ee098cca5d377a92a3417d667de7e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate southbound-cli to use uint types 79/92679/1
Robert Varga [Thu, 24 Sep 2020 22:40:03 +0000 (00:40 +0200)]
Migrate southbound-cli to use uint types

We have some technical debt here, fix it up.

JIRA: OPNFLWPLUG-1099
Change-Id: I7c777dec680234b9c3a9978175e007b2d39c6d59
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoDo not use deprecated Mockito constructs 78/92678/1
Robert Varga [Thu, 24 Sep 2020 22:33:39 +0000 (00:33 +0200)]
Do not use deprecated Mockito constructs

Mockito has moved some functionality around, adjust to that.

Change-Id: I965d6ba5fd29e95060e9bfd6286fdad40d3a99df
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFinish test code migration to uint 77/92677/1
Robert Varga [Thu, 24 Sep 2020 22:26:38 +0000 (00:26 +0200)]
Finish test code migration to uint

Fix up the few remaining users of widened types, preparing the floor
for migration of production code.

JIRA: OPNFLWPLUG-1099
Change-Id: I6a2ed96d2859244debd63aa41a16db5c8dc7f7f5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate openflowplugim-impl tests to uint types 73/92673/5
Robert Varga [Thu, 24 Sep 2020 17:21:32 +0000 (19:21 +0200)]
Migrate openflowplugim-impl tests to uint types

This migrates the entire openflowplugin-impl test suite to use
Uint types.

We borrow EncodeConstants to get at Uint8-specified
protocol numbers, which is probably not what we want, but then
there seems to be variance of opinion whether to use that or
OFConstants. This is fine for this migration, we will address
the OFConstants/EncodeConstants duplicity when we migrate
production code.

JIRA: OPNFLWPLUG-1099
Change-Id: I088597573037b8a662840aff62b0593a058a10b4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate openflow-protocol-impl tests to Uint types 71/92671/5
Robert Varga [Thu, 24 Sep 2020 11:40:19 +0000 (13:40 +0200)]
Migrate openflow-protocol-impl tests to Uint types

There are plenty of warnings in the test suite, address all of them
without touching production code.

JIRA: OPNFLWPLUG-1099
Change-Id: I8ec19c008ef51dfdabeded610bef4bda4e11d8f0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRemove ByteBufUtils.padBuffer() 69/92669/4
Robert Varga [Thu, 24 Sep 2020 11:22:55 +0000 (13:22 +0200)]
Remove ByteBufUtils.padBuffer()

This method has been deprecated for at least three years and is not
used anywhere, remove it.

Change-Id: Ied94f803d3a2025542a07ef1e6e9320fd9a7af4a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFix migration warnings in openflowjava-util 68/92668/4
Robert Varga [Thu, 24 Sep 2020 11:21:30 +0000 (13:21 +0200)]
Fix migration warnings in openflowjava-util

We have some use of legacy widened types, fix them up.

JIRA: OPNFLWPLUG-1099
Change-Id: I1266a79d5957f4ae1009258593447f0cadfff40c
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRemove deprecated ActionSerializerKey constructor 67/92667/3
Robert Varga [Thu, 24 Sep 2020 11:18:34 +0000 (13:18 +0200)]
Remove deprecated ActionSerializerKey constructor

Legacy widened-type constructor is not used anywhere, remove it.

Change-Id: Ib1b4225657c5bba3455e2b7edbf53a659b02ce40
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRemove deprecated ExperimenterActionSerializerKey constructor 66/92666/2
Robert Varga [Thu, 24 Sep 2020 11:15:02 +0000 (13:15 +0200)]
Remove deprecated ExperimenterActionSerializerKey constructor

This constructor is using widened Long argument and is not used
anywhere, remove it.

Change-Id: I41ef92b1957657c50d1bb5be7a0ca985851b5bf0
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMerge "Refactor AbstractOxmMatchEntryDeserializer"
Arunprakash D [Thu, 24 Sep 2020 06:42:05 +0000 (06:42 +0000)]
Merge "Refactor AbstractOxmMatchEntryDeserializer"

3 years agoMerge "AbstractOxmMatchEntryDeserializer should be an OFDeserializer"
Arunprakash D [Thu, 24 Sep 2020 06:41:03 +0000 (06:41 +0000)]
Merge "AbstractOxmMatchEntryDeserializer should be an OFDeserializer"

3 years agoBump MRI projects 99/92599/1
Robert Varga [Tue, 22 Sep 2020 15:46:58 +0000 (17:46 +0200)]
Bump MRI projects

This patch adopts:
- odlparent-7.0.6
- infrautils-1.8.1
- yangtools-5.0.6
- mdsal-6.0.5
- controller-2.0.4

Change-Id: I56ec950e030e1cb67bb697df85703c8d76dfa95a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRefactor AbstractOxmMatchEntryDeserializer 94/92394/14
Robert Varga [Wed, 2 Sep 2020 20:02:28 +0000 (22:02 +0200)]
Refactor AbstractOxmMatchEntryDeserializer

All subclassses of AbstractOxmMatchEntryDeserializer follow the same
deserializer pattern. Make sure we eliminate useless getters and
streamline the implementation accordingly.

JIRA: OPNFLWPLUG-1102
Change-Id: I2417ce9f58f7f97acfab91a93d4c346ece3b1208
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoAbstractOxmMatchEntryDeserializer should be an OFDeserializer 93/92393/12
Robert Varga [Wed, 2 Sep 2020 17:55:07 +0000 (19:55 +0200)]
AbstractOxmMatchEntryDeserializer should be an OFDeserializer

All subclasses already also implement OFDeserializer, centralize
that connection.

JIRA: OPNFLWPLUG-1102
Change-Id: I4105e6b71937f43bd649c26aaf4d2cb7f476590e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMake VersionAssignableFactory implement OFDeserializer 91/92391/12
Robert Varga [Wed, 2 Sep 2020 17:40:10 +0000 (19:40 +0200)]
Make VersionAssignableFactory implement OFDeserializer

All subclasses are implementing OFSerializer, hence it makes sense
to encode this in the base class. This ends up sharing the offset
of the implementation.

JIRA: OPNFLWPLUG-1102
Change-Id: I53342f0f0ec5ffe37440ee29f6e06c20be5add5d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFix warnings around SimpleRpcListener 90/92390/12
Robert Varga [Wed, 2 Sep 2020 17:08:44 +0000 (19:08 +0200)]
Fix warnings around SimpleRpcListener

SimpleRpcListener has generic arguments, fix warnings pointing out
unparameterized use.

Change-Id: Ia0a4bd398eddb81bfac1e6459249be685e95d931
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRemove an unneeded cast 89/92389/12
Robert Varga [Wed, 2 Sep 2020 17:06:27 +0000 (19:06 +0200)]
Remove an unneeded cast

We have a superfluous cast, remove it.

Change-Id: Id325d5b4c1593241a156e6f4560c10ae0bfc6501
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoEliminate AbstractEmptyActionDeserializer subclasses 88/92388/13
Robert Varga [Wed, 2 Sep 2020 16:57:27 +0000 (18:57 +0200)]
Eliminate AbstractEmptyActionDeserializer subclasses

Method dispatch works on particular class implementation and
individual per-type subclasses are not bringing anything to the
table.

Change AbstractEmptyActionDeserializer to a final
EmptyActionDeserializer and use its instances to perform duties
previously held by its subclasses.

JIRA: OPNFLWPLUG-1102
Change-Id: I3e1e03a498a15808cf2538fcca651c6c258e07f5
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoUse ActionContstants in ActionDeserializerInitializer 87/92387/13
Robert Varga [Wed, 2 Sep 2020 16:50:46 +0000 (18:50 +0200)]
Use ActionContstants in ActionDeserializerInitializer

Rather than using a plain constants, use symbolic names so that we
can neatly cross-reference users.

JIRA: OPNFLWPLUG-1102
Change-Id: I106798adbf77f7e9a9e917b72707ae76b49bae94
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMerge "Eliminate AbstractEmptyActionSerializer subclasses"
Arunprakash D [Fri, 18 Sep 2020 05:52:50 +0000 (05:52 +0000)]
Merge "Eliminate AbstractEmptyActionSerializer subclasses"

3 years agoMerge "Add AbstractEmptyActionSerializer"
Arunprakash D [Fri, 18 Sep 2020 05:47:54 +0000 (05:47 +0000)]
Merge "Add AbstractEmptyActionSerializer"

3 years agoMerge "Make AbstractActionSerializer.serialize() final"
Arunprakash D [Fri, 18 Sep 2020 05:39:07 +0000 (05:39 +0000)]
Merge "Make AbstractActionSerializer.serialize() final"

3 years agoMerge "Refactor AbstractActionSerializer"
Arunprakash D [Fri, 18 Sep 2020 05:35:56 +0000 (05:35 +0000)]
Merge "Refactor AbstractActionSerializer"

3 years agoMerge "Refactor AbstractInstructionSerializer"
Arunprakash D [Thu, 17 Sep 2020 04:30:36 +0000 (04:30 +0000)]
Merge "Refactor AbstractInstructionSerializer"

3 years agoEliminate AbstractEmptyActionSerializer subclasses 86/92386/13
Robert Varga [Wed, 2 Sep 2020 16:32:26 +0000 (18:32 +0200)]
Eliminate AbstractEmptyActionSerializer subclasses

Method dispatch works on particular class implementation and
individual per-type subclasses are not bringing anything to the
table.

Change AbstractEmptyActionSerializer to a final
EmptyActionSerializer and use its instances to perform duties
previously held by its subclasses.

In order to aid debugging, we customize its toString() to list
the code being handled.

JIRA: OPNFLWPLUG-1102
Change-Id: Icf7176a62bde41d036c9251ed6e347a85aaa35ce
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoAdd AbstractEmptyActionSerializer 85/92385/12
Robert Varga [Wed, 2 Sep 2020 16:18:10 +0000 (18:18 +0200)]
Add AbstractEmptyActionSerializer

Similar to AbstractEmptyActionDeserializer, we can centralize
common body reads in a single class, eliminating duplicate code.

JIRA: OPNFLWPLUG-1102
Change-Id: I91e02ac81d7f631bc7237e4ea770fad40ca5eb0d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMake AbstractActionSerializer.serialize() final 84/92384/12
Robert Varga [Wed, 2 Sep 2020 16:09:10 +0000 (18:09 +0200)]
Make AbstractActionSerializer.serialize() final

We want to reduce the number of megamorphic calls in the serialization
path. Rather than overriding the serialize() method in abstract base
class and call into it, make sure the base class calls out to subclasses
to serialize the body.

This reduces the number of serialize() implementations, peeling common
code into the caller. It also makes it clear there are opportunities
to further reduction.

JIRA: OPNFLWPLUG-1102
Change-Id: I0cb421be9f84fd278039a07107254bfac9ddd9a2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRefactor AbstractActionSerializer 83/92383/12
Robert Varga [Wed, 2 Sep 2020 15:48:58 +0000 (17:48 +0200)]
Refactor AbstractActionSerializer

Current structure is causing multiple megamorphic invocations in
the serialization paths. This first step eliminates
getType()/getLength() methods, storing their values in the object
instead.

JIRA: OPNFLWPLUG-1102
Change-Id: Ie806a6a4a011b9235c9b47005927cfc5704f018b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRefactor AbstractInstructionSerializer 82/92382/12
Robert Varga [Wed, 2 Sep 2020 15:20:35 +0000 (17:20 +0200)]
Refactor AbstractInstructionSerializer

AbstractInstructionSerializer can be made more efficient with
inlining types -- which means we will issue a simple read/load
instead of having to go through virtual dispatch.

JIRA: OPNFLWPLUG-1102
Change-Id: I8c325718715a928a1b24fc75a6de11a6b80eada1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoBump conf.yaml versions to Silicon 65/92065/2
Thanh Ha [Tue, 11 Aug 2020 19:28:57 +0000 (15:28 -0400)]
Bump conf.yaml versions to Silicon

Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: Ic81fabcf98bf798b92dc08f5d77dc72486f2c549

3 years agoOPNFLWPLUG-1105 : Fix for get-active bundle DOMRpcImplementationNotAvailableException 28/92128/4
Dheenadayalan.b [Thu, 13 Aug 2020 08:08:50 +0000 (13:38 +0530)]
OPNFLWPLUG-1105 : Fix for get-active bundle DOMRpcImplementationNotAvailableException

description: GetActive Bundles failed  with "No implementation of RPC AbsoluteSchemaPath" exception even after the path registered successfully.
              Issue Observered when multiple Switches connected to controller, and some of them were restarted.
  During restart previous bundle rpc registrations are overwritten.
  Fix done as registrations are stored and retrieved using map.

Signed-off-by: Dheenadayalan.b <dhinua@gmail.com>
Change-Id: I4de90445db2f5b29e4fefb2d5bd296cdcd73af8a
Signed-off-by: Dheenadayalan.b <dhinua@gmail.com>
3 years agoMerge "Refactor AbstractActionDeserializer"
Arunprakash D [Tue, 15 Sep 2020 10:24:41 +0000 (10:24 +0000)]
Merge "Refactor AbstractActionDeserializer"

3 years agoOPNFLWPLUG-1089 : Enable matching of a range of tcp/udp-source/destination-ports... 81/89181/10
Somashekhar Javalagi [Tue, 21 Apr 2020 05:06:04 +0000 (10:36 +0530)]
OPNFLWPLUG-1089 : Enable matching of a range of tcp/udp-source/destination-ports per flow

Signed-off-by: Somashekhar Javalagi <somashekhar.manohara.javalagi@ericsson.com>
Change-Id: I047fd49aa60f0a9e951eef9f55b0104931a15679
Signed-off-by: Dheenadayalan.b <dhinua@gmail.com>
3 years agoRefactor AbstractActionDeserializer 81/92381/12
Robert Varga [Wed, 2 Sep 2020 14:34:31 +0000 (16:34 +0200)]
Refactor AbstractActionDeserializer

Looking at AbstractActionDeserializer, we can increase performance
of parseHeader() by eagerly instantiating choice/header objects.

JIRA: OPNFLWPLUG-1102
Change-Id: Ia71bb2d865eaf83627945b1a7039a0978b76be80
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRemove EncodeConstants.SIZE_OF_{BYTE,SHORT,INT,LONG}_IN_BYTES 80/92380/14
Robert Varga [Wed, 2 Sep 2020 13:03:11 +0000 (15:03 +0200)]
Remove EncodeConstants.SIZE_OF_{BYTE,SHORT,INT,LONG}_IN_BYTES

These constants are exposed since Java 8 as
{Byte,Short,Integer,Long}.BYTES use them from there instead of
brewing our own.

Change-Id: I3a47659f136165d54f3f97315b0911cc7feaec6b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMerge "Remove OFConstants.SIZE_OF_LONG_IN_BYTES"
Arunprakash D [Thu, 10 Sep 2020 08:26:55 +0000 (08:26 +0000)]
Merge "Remove OFConstants.SIZE_OF_LONG_IN_BYTES"

3 years agoMerge "Change OFConstants.OFPCML_NO_BUFFER to Uint16"
Arunprakash D [Thu, 10 Sep 2020 07:16:07 +0000 (07:16 +0000)]
Merge "Change OFConstants.OFPCML_NO_BUFFER to Uint16"

3 years agoMerge "Fix a modernizer warning"
Arunprakash D [Thu, 10 Sep 2020 06:25:24 +0000 (06:25 +0000)]
Merge "Fix a modernizer warning"

3 years agoMerge "Migrate most of openflowplugin to use Uint types"
Arunprakash D [Thu, 10 Sep 2020 06:19:56 +0000 (06:19 +0000)]
Merge "Migrate most of openflowplugin to use Uint types"

3 years agoMerge "Migrate openflowplugin tests to use Uint types"
Arunprakash D [Thu, 10 Sep 2020 06:16:15 +0000 (06:16 +0000)]
Merge "Migrate openflowplugin tests to use Uint types"

3 years agoMerge "Fix a raw type warning"
Arunprakash D [Thu, 10 Sep 2020 05:11:59 +0000 (05:11 +0000)]
Merge "Fix a raw type warning"

3 years agoMerge "Fix javadoc reference"
Arunprakash D [Thu, 10 Sep 2020 05:11:23 +0000 (05:11 +0000)]
Merge "Fix javadoc reference"

3 years agoMerge "openflow devices are getting disconnected from Controller, sending OFPBFC_BAD_...
Arunprakash D [Thu, 10 Sep 2020 05:07:25 +0000 (05:07 +0000)]
Merge "openflow devices are getting disconnected from Controller, sending OFPBFC_BAD_ID error reply"

3 years agoMerge "Fix uint warnings in sample-bundles"
Arunprakash D [Thu, 10 Sep 2020 04:09:42 +0000 (04:09 +0000)]
Merge "Fix uint warnings in sample-bundles"

3 years agoMerge "Fix for openflow devices not connecting to controller"
Arunprakash D [Thu, 10 Sep 2020 04:08:15 +0000 (04:08 +0000)]
Merge "Fix for openflow devices not connecting to controller"

3 years agoMerge "Fix deprecation warnings in learning-switch"
Arunprakash D [Wed, 9 Sep 2020 15:55:03 +0000 (15:55 +0000)]
Merge "Fix deprecation warnings in learning-switch"

3 years agoMerge "Do not parse string multiple times"
Arunprakash D [Wed, 9 Sep 2020 15:53:33 +0000 (15:53 +0000)]
Merge "Do not parse string multiple times"

3 years agoMerge "Remove unneeded boxing"
Arunprakash D [Wed, 9 Sep 2020 15:51:45 +0000 (15:51 +0000)]
Merge "Remove unneeded boxing"

3 years agoMerge "Mark static methods"
Arunprakash D [Wed, 9 Sep 2020 15:50:59 +0000 (15:50 +0000)]
Merge "Mark static methods"

3 years agoFix for openflow devices not connecting to controller 07/87907/16
dheenadayalan b [Wed, 19 Feb 2020 12:12:05 +0000 (17:42 +0530)]
Fix for openflow devices not connecting to controller

Signed-off-by: dheenadayalan b <dhinua@gmail.com>
Change-Id: I641997a74f5b5081366fcaa1fe9a56b6d1c67f5d
Signed-off-by: Dheenadayalan.b <dhinua@gmail.com>
3 years agoMerge "GetFlowNodeCache cli"
Arunprakash D [Wed, 9 Sep 2020 15:47:10 +0000 (15:47 +0000)]
Merge "GetFlowNodeCache cli"

3 years agoMerge "Inventory status check"
Arunprakash D [Wed, 9 Sep 2020 15:44:11 +0000 (15:44 +0000)]
Merge "Inventory status check"

3 years agoopenflow devices are getting disconnected from Controller, 65/89065/6
Somashekhar Javalagi [Thu, 28 Mar 2019 08:32:34 +0000 (14:02 +0530)]
openflow devices are getting disconnected from Controller,
sending OFPBFC_BAD_ID error reply

Change-Id: I0a13ef1ab35057d9306532f5c0f8c06a1d0db572
Signed-off-by: dheenadayalan b <dhinua@gmail.com>
3 years agoMerge "Update active committers info"
Arunprakash D [Wed, 9 Sep 2020 12:20:55 +0000 (12:20 +0000)]
Merge "Update active committers info"

3 years agoInventory status check 63/89063/4
Shweta Chaturvedi [Wed, 30 Jan 2019 05:52:42 +0000 (11:22 +0530)]
Inventory status check

Change-Id: I68698582247dbd9d9ad38c24c555fb8512e1dcb8
Signed-off-by: dheenadayalan b <dhinua@gmail.com>
3 years agoGetFlowNodeCache cli 90/88890/18
Shweta Chaturvedi [Fri, 3 Apr 2020 15:17:42 +0000 (20:47 +0530)]
GetFlowNodeCache cli

Signed-off-by: Shweta Chaturvedi <shweta.chaturvedi@ericsson.com>
Change-Id: I81c5f411a50a91dba08b8e6d46555faf36c6aa7a

3 years agoIncrease flow and group dtcn listener changes 02/88902/10
Shweta Chaturvedi [Thu, 6 Dec 2018 04:58:05 +0000 (10:28 +0530)]
Increase flow and group dtcn listener changes

Change-Id: Ibfac8b245f1a1b39a6ee58a7fa6e391386fdb0d2
Signed-off-by: Shweta Chaturvedi <shweta.chaturvedi@ericsson.com>
3 years agoUpdate active committers info 27/92427/1
D Arunprakash [Tue, 8 Sep 2020 10:49:48 +0000 (16:19 +0530)]
Update active committers info

Signed-off-by: D Arunprakash <d.arunprakash@ericsson.com>
Change-Id: I0bfec2355d23fde4b9ffd824cd97348746a82115

3 years agoRemove OFConstants.SIZE_OF_LONG_IN_BYTES 79/92379/7
Robert Varga [Wed, 2 Sep 2020 12:56:34 +0000 (14:56 +0200)]
Remove OFConstants.SIZE_OF_LONG_IN_BYTES

This is simple value which matches Long.BYTES, remove it.

Change-Id: I1a32cb7c05e81c9fd3ed0b09634232e8fe0aa758
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoChange OFConstants.OFPCML_NO_BUFFER to Uint16 78/92378/7
Robert Varga [Wed, 2 Sep 2020 12:50:18 +0000 (14:50 +0200)]
Change OFConstants.OFPCML_NO_BUFFER to Uint16

We are using this constant only for builders, change it to Uint16
so that we skip any conversion.

JIRA: OPNFLWPLUG-1099
Change-Id: Ie59302d05b8ce3d2cad91f30c84038a05cd1e651
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate most of openflowplugin to use Uint types 77/92377/6
Robert Varga [Wed, 2 Sep 2020 12:46:44 +0000 (14:46 +0200)]
Migrate most of openflowplugin to use Uint types

Migrate production code to use non-widened values. There are a few
methods left out, as they seem to be performing lossy conversion,
which needs to be investigated separately.

JIRA: OPNFLWPLUG-1099
Change-Id: I7bd10498557396f96a6ec0baf9dccc7b8186b28f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate openflowplugin tests to use Uint types 76/92376/6
Robert Varga [Wed, 2 Sep 2020 12:12:46 +0000 (14:12 +0200)]
Migrate openflowplugin tests to use Uint types

Migrate test code to use non-widened values. Production code will
be migrated separately.

JIRA: OPNFLWPLUG-1099
Change-Id: I6723d1f1660a18cd6bc634dac0d91a9cd9199dd9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFix a raw type warning 73/92373/4
Robert Varga [Wed, 2 Sep 2020 10:01:44 +0000 (12:01 +0200)]
Fix a raw type warning

Add a simple wildcard to suppress a warning around raw type.

Change-Id: I7469b88fc4371cf2954cf9dd2688dfedb70fcf23
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFix javadoc reference 72/92372/4
Robert Varga [Wed, 2 Sep 2020 10:01:25 +0000 (12:01 +0200)]
Fix javadoc reference

This is simple copy&paste error, fix it up.

Change-Id: If6266671ebca0e94331bd00d4643971d984bd5ae
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFix uint warnings in sample-bundles 71/92371/4
Robert Varga [Wed, 2 Sep 2020 09:56:05 +0000 (11:56 +0200)]
Fix uint warnings in sample-bundles

There are a few users here, migrate them to fix warnings.

JIRA: OPNFLWPLUG-1099
Change-Id: I7228b0d0f33ad2e2fb0a72d398ffd1499bf8957b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFix deprecation warnings in learning-switch 70/92370/4
Robert Varga [Wed, 2 Sep 2020 09:40:58 +0000 (11:40 +0200)]
Fix deprecation warnings in learning-switch

Convert use of both legacy lists as well as widened types,
eliminating deprecation warnings.

JIRA: OPNFLWPLUG-1099
Change-Id: I6a5d994a96f37a7342517e4adc133d4f8579cc30
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoDo not parse string multiple times 69/92369/4
Robert Varga [Wed, 2 Sep 2020 09:06:11 +0000 (11:06 +0200)]
Do not parse string multiple times

This code block is a simple switch, really, if not even something
simpler.

Change-Id: Ibc4614c6e5f48691e2f8fdfaa1ebc312b7500c94
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRemove unneeded boxing 68/92368/3
Robert Varga [Wed, 2 Sep 2020 08:58:31 +0000 (10:58 +0200)]
Remove unneeded boxing

Use of Integer creates a box-and-unbox operation when coupled
with parseInt() and switch(), just use a plain int.

Change-Id: I62b9d925edf44a22422d14b00b0f413e83ccaf6b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMark static methods 67/92367/3
Robert Varga [Wed, 2 Sep 2020 08:59:50 +0000 (10:59 +0200)]
Mark static methods

A number of methods can be made static, make sure they are marked
as such.

Change-Id: Ie8c90c693fea0d873cec8412e6014b8ab56b7b7a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate test-provider to Uint types 58/92358/5
Robert Varga [Mon, 31 Aug 2020 15:11:20 +0000 (17:11 +0200)]
Migrate test-provider to Uint types

There is a multitude of use of legacy compatibility methods, migrate
them in one go.

JIRA: OPNFLWPLUG-1099
Change-Id: Ibbf23fe87bd1e078921619d944f1b4729b5d593d
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFixup warnings in openflowplugin-extension-onf 55/92355/2
Robert Varga [Mon, 31 Aug 2020 14:16:29 +0000 (16:16 +0200)]
Fixup warnings in openflowplugin-extension-onf

There are a few warnings about raw types and static methods. Fix
them up, improving BundleAddMessageConverter implementation.

Change-Id: If55353cacc4653e01428aad64aaf5a7cce947606
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate test-common user of deprecated methods 57/92357/2
Robert Varga [Mon, 31 Aug 2020 14:42:52 +0000 (16:42 +0200)]
Migrate test-common user of deprecated methods

We are using some deprecated Uint- and List-related methods, migrate
to their replacements.

JIRA: OPNFLWPLUG-1099
Change-Id: If4c960c795b49f191ad1644f21fd61464b706135
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate openflowplugin-extension-onf to use Uint types 54/92354/2
Robert Varga [Mon, 31 Aug 2020 14:09:44 +0000 (16:09 +0200)]
Migrate openflowplugin-extension-onf to use Uint types

There are a few references to old methods in the tests, migrate
them. We do not migrate production code yet, so we have
cross-testing.

JIRA: OPNFLWPLUG-1099
Change-Id: If2a98ede1f661896be80ef43b815910817c59d16
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate test-extension to use Uint types 56/92356/2
Robert Varga [Mon, 31 Aug 2020 14:36:48 +0000 (16:36 +0200)]
Migrate test-extension to use Uint types

There are a few users of legacy methods, migrate them.

JIRA: OPNFLWPLUG-1099
Change-Id: I5e5e41549095e5208fada718202b7a12f4dcc6b9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMark ConntrackConvertor methods static 53/92353/2
Robert Varga [Mon, 31 Aug 2020 14:04:13 +0000 (16:04 +0200)]
Mark ConntrackConvertor methods static

There are two utility methods which can be static, mark them as
such to improve clarity.

Change-Id: I54620d97a22b69d8808e1f60d32641b87aa6195f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate openflowplugin-extension-nicira to use Uint types 52/92352/2
Robert Varga [Mon, 31 Aug 2020 14:01:18 +0000 (16:01 +0200)]
Migrate openflowplugin-extension-nicira to use Uint types

There are a few references to old methods in the tests, migrate
them. We do not migrate production code yet, so we have
cross-testing.

JIRA: OPNFLWPLUG-1099
Change-Id: Ib43111cbb3ab8cb8941c76068fb5c23021f1dd0b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate openflowplugin-extension-eric to use Uint types 51/92351/2
Robert Varga [Mon, 31 Aug 2020 13:50:46 +0000 (15:50 +0200)]
Migrate openflowplugin-extension-eric to use Uint types

There are a few references to old methods in the tests, migrate
them. Since we are in the area, also clean up Mockito/Assert
references.

JIRA: OPNFLWPLUG-1099
Change-Id: I6649244c2366f993e9672f0ce423eade8372d428
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoRemove unused Joiner/Splitter 50/92350/2
Robert Varga [Mon, 31 Aug 2020 13:46:18 +0000 (15:46 +0200)]
Remove unused Joiner/Splitter

MatchUtil is no longer using these fields, remove them.

Change-Id: I699d09b5e89969e5615fa9f981bdf8f3615d4459
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMigrate openflowjava-extension-nicira tests to Uint types 46/92346/2
Robert Varga [Mon, 31 Aug 2020 13:33:43 +0000 (15:33 +0200)]
Migrate openflowjava-extension-nicira tests to Uint types

This migrates tests to use Uint types, fixing warnings there while
keeping production code unmodified.

JIRA: OPNFLWPLUG-1099
Change-Id: I3c834253abe207d815528bacd6a5cae7499cfe67
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoFix raw types in openflowjava-extension-nicira test 45/92345/2
Robert Varga [Mon, 31 Aug 2020 12:46:58 +0000 (14:46 +0200)]
Fix raw types in openflowjava-extension-nicira test

We have a few warnings here, fix them up.

Change-Id: Ie0aa8ae6f73a8c282e85cf24acd126052dab05cf
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
3 years agoMerge "Clean up EricExtensionsRegistratorTest"
Arunprakash D [Mon, 7 Sep 2020 07:20:41 +0000 (07:20 +0000)]
Merge "Clean up EricExtensionsRegistratorTest"

3 years agoMerge "Use Uint types in openflowjava-extension-eric"
Arunprakash D [Mon, 7 Sep 2020 07:19:51 +0000 (07:19 +0000)]
Merge "Use Uint types in openflowjava-extension-eric"

3 years agoMerge "Fix raw type warnings in openflowjava-extension-eric test"
Arunprakash D [Mon, 7 Sep 2020 07:19:14 +0000 (07:19 +0000)]
Merge "Fix raw type warnings in openflowjava-extension-eric test"

3 years agoMerge "Remove LLDPDiscoveryUtils.macToString()"
Arunprakash D [Mon, 7 Sep 2020 07:18:47 +0000 (07:18 +0000)]
Merge "Remove LLDPDiscoveryUtils.macToString()"

3 years agoMerge "Migrate topology-lldp-discovery to use Uint types"
Arunprakash D [Mon, 7 Sep 2020 07:18:24 +0000 (07:18 +0000)]
Merge "Migrate topology-lldp-discovery to use Uint types"

3 years agoMerge "Migrate table-miss-enforcer to use Uint types"
Arunprakash D [Mon, 7 Sep 2020 07:17:55 +0000 (07:17 +0000)]
Merge "Migrate table-miss-enforcer to use Uint types"

3 years agoMerge "Cleanup ReconciliationServiceImpl"
Arunprakash D [Mon, 7 Sep 2020 07:14:14 +0000 (07:14 +0000)]
Merge "Cleanup ReconciliationServiceImpl"

3 years agoMerge "Migrate notification-supplier to use Uint types"
Arunprakash D [Mon, 7 Sep 2020 07:11:59 +0000 (07:11 +0000)]
Merge "Migrate notification-supplier to use Uint types"

3 years agoMerge "Fix various warnings"
Arunprakash D [Mon, 7 Sep 2020 07:01:40 +0000 (07:01 +0000)]
Merge "Fix various warnings"

3 years agoMerge "Use Assert.assertThrows()"
Arunprakash D [Mon, 7 Sep 2020 06:57:38 +0000 (06:57 +0000)]
Merge "Use Assert.assertThrows()"

3 years agoMerge "Migrate Mockito methods"
Arunprakash D [Mon, 7 Sep 2020 06:56:46 +0000 (06:56 +0000)]
Merge "Migrate Mockito methods"