commit | d900fe4a87261f17c7293421c0bdbd4599b37c07 | [log] [tgz] |
---|---|---|
author | Daniele Moro <daniele@opennetworking.org> | Thu Feb 11 16:12:57 2021 +0100 |
committer | Pier Luigi Ventre <pier@opennetworking.org> | Thu Jul 01 17:34:35 2021 +0000 |
tree | 528fcd3393d2071d2ef7a3ba9f8f98240318af84 | |
parent | a4ceaab1295d74e1df8783569d485fa84e02725d [diff] |
Add support for one shot action profile programming in PI A P4 table annotated with @oneshot annotation can be programmed only with the action profile action set. For these kind of tables we don't issue read request for action profile groups and members. Change-Id: I7b6a743f4f4df4190f17d958ebb4807aca5feda5
diff --git a/core/common/src/main/java/org/onosproject/codec/impl/DecodeInstructionCodecHelper.java b/core/common/src/main/java/org/onosproject/codec/impl/DecodeInstructionCodecHelper.java index 7307939..e3efae2 100644 --- a/core/common/src/main/java/org/onosproject/codec/impl/DecodeInstructionCodecHelper.java +++ b/core/common/src/main/java/org/onosproject/codec/impl/DecodeInstructionCodecHelper.java
@@ -329,6 +329,7 @@ return Instructions.piTableAction(piActionProfileMemberId); } + // TODO: implement JSON decoder for ACTION_SET throw new IllegalArgumentException("Protocol-independent Instruction subtype " + subType + " is not supported"); }
diff --git a/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodecHelper.java b/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodecHelper.java index 996fa8c..cab335c 100644 --- a/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodecHelper.java +++ b/core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodecHelper.java
@@ -289,6 +289,7 @@ final PiActionProfileMemberId memberId = (PiActionProfileMemberId) piInstruction.action(); result.put(InstructionCodec.PI_ACTION_PROFILE_MEMBER_ID, memberId.id()); break; + //TODO: implement JSON encoder for ACTION_SET default: throw new IllegalArgumentException("Cannot convert protocol-independent subtype of" + piInstruction.action().type().name());