[CONTROLLER-84] Failure to get flow known to be in table Created: 09/Dec/13  Updated: 25/Jul/23  Resolved: 11/Dec/13

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

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

Operating System: Mac OS
Platform: PC



 Description   

This is against:
https://git.opendaylight.org/gerrit/#/c/3314/10 (controller side)

https://git.opendaylight.org/gerrit/#/c/3451/2 (openflowplugin side)

Build the controller
Build openflowplugin using -nsu

Run distribution/base/target/../run.sh -debug

Connect a mininet-2.1.0-of1.3 switch

From the OSGI console run

addMDFlow openflow:1 f1

Confirm this results in a flow on the switch:

sudo ovs-ofctl -O OpenFlow13 dump-flows s1

With POSTMAN

GET: http://192.168.195.157:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/

Accept: application/xml

You should get back:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<table
xmlns="urn:opendaylight:flow:inventory">
<flow>
<strict>false</strict>
<instructions>
<instruction>
<apply-actions>
<action>
<dec-nw-ttl/>
</action>
</apply-actions>
</instruction>
</instructions>
<table_id>2</table_id>
<id>124</id>
<cookie_mask>10</cookie_mask>
<out_port>10</out_port>
<installHw>false</installHw>
<out_group>2</out_group>
<match>
<ethernet-match>
<ethernet-type>
<type>2048</type>
</ethernet-type>
</ethernet-match>
<ipv4-destination>10.0.0.1/24</ipv4-destination>
</match>
<hard-timeout>12</hard-timeout>
<cookie>10</cookie>
<idle-timeout>34</idle-timeout>
<flow-name>FooXf1</flow-name>
<priority>2</priority>
<barrier>false</barrier>
</flow>
</table>

But when you try to address the flow directly with:

http://192.168.195.157:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/2/flow/124

You will get a 404 "No data exists"


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