[CONTROLLER-117] Flow add which worked yesterday is broken today... Created: 16/Jan/14  Updated: 25/Jul/23  Resolved: 24/Jan/14

Status: Resolved
Project: controller
Component/s: restconf
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Prasanna Huddar Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


Attachments: File opendaylight.rar    

 Description   

Following input was working yesterday today this test case broken.
Getting following error:
Data has bad format.
"flow" does not exist in yang schema.

Input XML:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
<priority>2</priority>
<flow-name>Foo</flow-name>
<match>
<ethernet-match>
<ethernet-type>
<type>2048</type>
</ethernet-type>
</ethernet-match>
<ipv4-destination>10.0.10.2/24</ipv4-destination>
</match>
<id>1</id>
<table_id>0</table_id>
<instructions>
<instruction>
<order>0</order>
<apply-actions>
<action>
<order>0</order>
<dec-nw-ttl/>
</action>
</apply-actions>
</instruction>
</instructions>
</flow>



 Comments   
Comment by Prasanna Huddar [ 16/Jan/14 ]

Bug is related to flow creation operation

Comment by Tony Tkacik [ 16/Jan/14 ]

Could you provide us with related log information, also operation was POST or PUT?

Comment by Ed Warnicke [ 16/Jan/14 ]

Please insure that the controller is all the way up before PUTing this flow, as if it isn't the flow could be rejected for that reason.

Comment by Kanagasundaram [ 17/Jan/14 ]

Opendaylight log file

Comment by Kanagasundaram [ 17/Jan/14 ]

Attachment opendaylight.rar has been added with description: Opendaylight log file

Comment by Kanagasundaram [ 17/Jan/14 ]

It is a POST operation with the bellow url:
http://169.144.42.35:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1

Comment by Ed Warnicke [ 17/Jan/14 ]

Please reattach the log in some sort of reasonable format such as zip. Rar is quite obscure and hard to deal with.

Comment by Ed Warnicke [ 17/Jan/14 ]

Note the semantic difference between PUT and POST

You POST to the container you are seeking to create in, for example to POST 1 or more FLOWs you would use URL

http://169.144.42.35:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/

to POST to the table.

You can use PUT to create directly a single instance using URL

http://169.144.42.35:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1

Comment by Kanagasundaram [ 20/Jan/14 ]

POST fails with the below URL and XML; through the below error:

ERROR: Data schema node was not found for flow

URL : http://169.144.42.35:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/

XML:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<flow xmlns="urn:opendaylight:flow:inventory">
<priority>2</priority>
<flow-name>Foo-15</flow-name>
<match>
<ethernet-match>
<ethernet-type>
<type>2048</type>
</ethernet-type>
</ethernet-match>
<ipv4-destination>25.0.10.2/24</ipv4-destination>
</match>
<id>25</id>
<table_id>0</table_id>
<instructions>
<instruction>
<order>0</order>
<apply-actions>
<action>
<order>0</order>
<dec-nw-ttl/>
</action>
</apply-actions>
</instruction>
</instructions>
</flow>

Comment by Martin Sunal [ 20/Jan/14 ]

fix https://git.opendaylight.org/gerrit/#/c/4454/

Generated at Wed Feb 07 19:52:14 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.