Sofware-Defined Networking

Reply
Brocadian
Posts: 18
Registered: ‎08-11-2012

Why GET fails to retrieve installed flow through postman?

Hi,

 

   I follow the instruction on page 20 of BVC user guide to retrieve instsall flow on BVC but receive the following error.

 

                      Request could not be completed because the relevant data model content does not exist

 

Here's the GET   "10.20.226.222:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/1" through postman.

 

Thank you,

 

-Lawrence

 

Brocadian
Posts: 18
Registered: ‎08-11-2012

Re: Why GET fails to retrieve installed flow through postman?

Hi,

 

     After importing the collections, I still not able to put installed flows.  Here's the new ReST API GET.

 

         http://10.20.226.222:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0

 

This time, I don't even have error message returned.

 

     However, the get topology works

 

         http://10.20.226.222:8181/restconf/operational/network-topology:network-topology/

 

{
"link-id": "openflow:8398923981433208832:135/host:00:10:94:00:06:10:openflow:8398923981433208832:135",
"source": {
"source-node": "openflow:8398923981433208832",      <------ my node
"source-tp": "openflow:8398923981433208832:135"
},
"destination": {
"dest-tp": "host:00:10:94:00:06:10:openflow:8398923981433208832:135",   <---- my port id.
"dest-node": "host:00:10:94:00:06:10"
}
},

 

So, what I am not able to retreive installed flow per example given in the BVC user guide? Please advise.

 

Thank you,

 

-Lawrence

Brocadian
Posts: 8
Registered: ‎02-10-2011

Re: Why GET fails to retrieve installed flow through postman?

[ Edited ]

Hi Lawrence,

 

It looks like you are using the default openflow switch id in the url pasted below.

 

http://10.20.226.222:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0

 

From the operational DB return output, it looks like you are connecting to an openflow node with the switchid: openflow:8398923981433208832.

 

If you try the following url for your GET request do you still see the issue.

http://10.20.226.222:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:8398923981433208832/table/0

 

Thanks,

Michael

Brocadian
Posts: 8
Registered: ‎02-10-2011

Re: Why GET fails to retrieve installed flow through postman?

One other behavioral note.

 

In the latest release BSC 2.0 (based on Opendaylight Lithium) the first time you make a call to the config data-base it will return the following:

{
    "errors": {
        "error": [
            {
                "error-message": "Request could not be completed because the relevant data model content does not exist ",
                "error-tag": "data-missing",
                "error-type": "application"
            }
        ]
    }
}

Once the first flow is installed (and deleted) in the config data-base it will then return an empty flow table:

 

{
    "flow-node-inventory:table": [
        {
            "id": 0
        }
    ]
}

 

The REST call is:

curl -u admin:admin http://<controller-ip>:8181/restconf/config/opendaylight-inventory:nodes/node/<openflow-node-id>/table/<table-id> | python -m json.tool

Thanks,

Michael

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.

vADC is now Pulse Secure
Download FREE NVMe eBook