Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

Revision history [back]

click to hide/show revision 1
initial version

ODL helium 0.2.2 returns 404 Not found with Operational Datastore in GET using cURL

Hi All,

I am working on ODL controller (distribution-karaf-0.2.2-Helium-SR2), and I was trying to install required flows from controller to my agent using config datastore and I am trying to fetch the installed flows using operational data store and returns 404 not found error.

Please find below for the process that I am following...

Controller:

sudo ./karaf

To fetch the connected nodes:

curl -i -v -u admin:admin -H "Accept: application/json" -X GET http://10.130.171.25:8181/restconf/operational/opendaylight-inventory:nodes | sed 's/,/\n/g' | grep '\"nodes\"'

returns {"nodes":{"node":[{"id":"openflow:55930"

Configured a VLAN flow entry:

curl -i -v -u admin:admin -H "Content-Type: application/json" -H "Accept: application/json" -X PUT --data "@teaddvlan_1.json" http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:55930/table/10/flow/1

Tried to fetch the installed flow using operational:

curl -i -v -u admin:admin -H "Accept: application/json" -X GET http://localhost:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:55930/table/10/flow/1

< HTTP/1.1 404 Not Found HTTP/1.1 404 Not Found < Content-Type: text/plain Content-Type: text/plain < Transfer-Encoding: chunked Transfer-Encoding: chunked * Server Jetty(8.1.14.v20131031) is not blacklisted < Server: Jetty(8.1.14.v20131031) Server: Jetty(8.1.14.v20131031)

Please help me in resolving this.

ODL helium 0.2.2 returns 404 Not found with Operational Datastore in GET using cURL

Hi All,

I am working on ODL controller (distribution-karaf-0.2.2-Helium-SR2), and I was trying to install required flows from controller to my agent using config datastore and I am trying to fetch the installed flows using operational data store and returns 404 not found error.

Please find below for the process that I am following...

Controller:

sudo ./karaf

To fetch the connected nodes:

curl -i -v -u admin:admin -H "Accept: application/json" -X GET http://10.130.171.25:8181/restconf/operational/opendaylight-inventory:nodes http://localhost:8181/restconf/operational/opendaylight-inventory:nodes | sed 's/,/\n/g' | grep '\"nodes\"'

returns {"nodes":{"node":[{"id":"openflow:55930"

Configured a VLAN flow entry:

curl -i -v -u admin:admin -H "Content-Type: application/json" -H "Accept: application/json" -X PUT --data "@teaddvlan_1.json" http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:55930/table/10/flow/1

Tried to fetch the installed flow using operational:

curl -i -v -u admin:admin -H "Accept: application/json" -X GET http://localhost:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:55930/table/10/flow/1

< HTTP/1.1 404 Not Found HTTP/1.1 404 Not Found < Content-Type: text/plain Content-Type: text/plain < Transfer-Encoding: chunked Transfer-Encoding: chunked * Server Jetty(8.1.14.v20131031) is not blacklisted < Server: Jetty(8.1.14.v20131031) Server: Jetty(8.1.14.v20131031)

Please help me in resolving this.

ODL helium 0.2.2 returns 404 Not found with Operational Datastore in GET using cURL

Hi All,

I am working on ODL controller (distribution-karaf-0.2.2-Helium-SR2), and I was trying to install required flows from controller to my agent using config datastore and I am trying to fetch the installed flows using operational data store and returns 404 not found error.

Please find below for the process that I am following...

Controller:

sudo ./karaf

To fetch the connected nodes:

curl -i -v -u admin:admin -H "Accept: application/json" -X GET http://localhost:8181/restconf/operational/opendaylight-inventory:nodes | sed 's/,/\n/g' | grep '\"nodes\"'

returns {"nodes":{"node":[{"id":"openflow:55930"

Configured a VLAN flow entry:

curl -i -v -u admin:admin -H "Content-Type: application/json" -H "Accept: application/json" -X PUT --data "@teaddvlan_1.json" http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:55930/table/10/flow/1

Tried to fetch the installed flows using Config:

I am getting the configured flow successfully. qaadmin@lbhyd-ubuntuqa3:~$ curl -i -v -u admin:admin -H "Accept: application/json" -X GET http://localhost:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:55930/table/10/flow/1 * Adding handle: conn: 0x21b8d30 * Adding handle: send: 0 * Adding handle: recv: 0 * CurladdHandleToPipeline: length: 1 * - Conn 0 (0x21b8d30) sendpipe: 1, recv_pipe: 0 * About to connect() to localhost port 8181 (#0) * Trying 127.0.0.1... * Connected to localhost (127.0.0.1) port 8181 (#0) * Server auth using Basic with user 'admin'

GET /restconf/config/opendaylight-inventory:nodes/node/openflow:55930/table/10/flow/1 HTTP/1.1 Authorization: Basic YWRtaW46YWRtaW4= User-Agent: curl/7.32.0 Host: localhost:8181 Accept: application/json

< HTTP/1.1 200 OK HTTP/1.1 200 OK < Content-Type: application/json Content-Type: application/json < Transfer-Encoding: chunked Transfer-Encoding: chunked * Server Jetty(8.1.14.v20131031) is not blacklisted < Server: Jetty(8.1.14.v20131031) Server: Jetty(8.1.14.v20131031)

< * Connection #0 to host localhost left intact {"flow-node-inventory:flow":[{"id":"1","hard-timeout":0,"match":{"in-port":"1","vlan-match":{"vlan-id":{"vlan-id-present":true,"vlan-id":10}}},"tableid":10,"instructions":{"instruction":[{"order":1,"go-to-table":{"tableid":20}}]},"cookie":1,"strict":false,"idle-timeout":0,"flow-name":"Vlanflow1","priority":2,"cookiemask":255}]}

Tried to fetch the installed flow using operational:

curl -i -v -u admin:admin -H "Accept: application/json" -X GET http://localhost:8181/restconf/operational/opendaylight-inventory:nodes/node/openflow:55930/table/10/flow/1

< HTTP/1.1 404 Not Found HTTP/1.1 404 Not Found < Content-Type: text/plain Content-Type: text/plain < Transfer-Encoding: chunked Transfer-Encoding: chunked * Server Jetty(8.1.14.v20131031) is not blacklisted < Server: Jetty(8.1.14.v20131031) Server: Jetty(8.1.14.v20131031)

Please help me in resolving this.