-
Type: Story
-
Status: To Do (View Workflow)
-
Priority: Medium
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Future
-
Component/s: ofagent-go
-
Labels:
-
Story Points:3
-
Epic Link:
Currently the OfAgent-go handles every error in the Core pertaining to FLOW by translating it into `BAD_COMMANDS`
See:
https://github.com/opencord/ofagent-go/blob/master/internal/pkg/openflow/flowMod.go#L243-L277
the resulting log in ONOS is
21:17:09.591 ERROR [OFChannelHandler] OFFlowModFailedErrorMsgVer13(xid=0, code=BAD_COMMAND, data=[unparsed: 04 0e 00 38 00 00 00 00 00 b7 00 00 9d 64 6a ca 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]) from switch DefaultSwitchHandshaker
in state ACTIVE
The OfAgent should instead parse the error message returned from VOLTHA and specify the most accurate OF error code to ONOS in a dynamic way.