Problem occurs when walking through End to End Flows


Liguangpeng (Roc, IPTechnologyResearchDept&HW) <guangpeng.li@...>
 

OpenflowPlugin Experts,

 

Today, I checked the guidance “End to End Inventory” and it works. I can get nodes and their properties. And then I turned to “End to End Flows” at https://wiki.opendaylight.org/view/OpenDaylight_OpenFlow_Plugin:End_to_End_Flows, however I just got error response code(400) in postman. Follow is my parameters:

 

I tried POST and PUT method both,

and URL is http://[controllerip]:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1.

The header is Content-Type : application/yang.data+xml .

Request body is “<?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>

            <apply-actions>

                <action>

                    <dec-nw-ttl/>

                </action>

            </apply-actions>

        </instruction>

    </instructions>

</flow>”

 

After click send button, error message is “URI has bad format” and error code is 400.

 

Second problem is about checking the flows. GET http://10.107.1.241:8080/operational/config/opendaylight-inventory:nodes/node/openflow:1/table/0/ with no headers. I just can get a html document of login prompt form.  I added basic-auth of admin:admin, and the result is the same.

 

Anyone can clarify this guidance? If I missed anything, please let me know.

 

Thanks/Guangpeng