[OCPPLUGIN-8] Only OCP messages formatted in a certain way can be parsed correctly by the OCP plugin Created: 09/May/16  Updated: 23/May/16  Resolved: 23/May/16

Status: Resolved
Project: ocpplugin
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Chin-Hung Chien Assignee: ChinNing Lai
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5858

 Description   

It seems like the OCP plugin will only be able to parse OCP messages correctly when the OCP agent produces those messages in a way that each pair of terminal start and end elements is followed by a line feed. Take the hello indication message for instance, a successful hello would look like the following:

<msg xmlns="http://uri.etsi.org/ori/002-2/v4.1.1">
<header>
<msgType>IND</msgType>
<msgUID>0</msgUID>
</header>
<body>
<helloInd>
<version>4.1.1</version>
<vendorId>MTI</vendorId>
<serialNumber>101-12</serialNumber>
</helloInd>
</body>
</msg>

Obviously, this does not make sense as a normal XML document typically does not contain line feed characters. The OCP plugin must be able to process OCP messages in "normal" XML format in addition to the above mentioned ones. A normal OCP message should look like the following:

<msg xmlns="http://uri.etsi.org/ori/002-2/v4.1.1"><header><msgType>IND</msgType><msgUID>0</msgUID></header><body><helloInd><version>4.1.1</version><vendorId>foxconn</vendorId><serialNumber>123</serialNumber></helloInd></body></msg>



 Comments   
Comment by ChinNing Lai [ 23/May/16 ]

add patch link:
https://git.opendaylight.org/gerrit/#/c/38864/

Generated at Wed Feb 07 20:26:06 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.