Not able to deploy the Toaster example

asked 2015-02-08 10:35:16 -0800

updated 2015-02-08 11:16:22 -0800

Hello All,

I am trying to write application by following the toaster example. I am able to successfully compile the toaster and toaster provider module but I am not able to deploy the example to the opendaylight running instance.

I created the 03-toaster-sample.xml and placed inside distribution-karaf-0.2.2-Helium-SR2/etc/opendaylight/karaf folder but I am not able to get any output from the get request :

error : protocol invalid-value URI has bad format

Please help me to understand the following :

  • How the application is deployed to karaf distribution.
  • Please let me know the explanation of the 03-toaster-sample.xml, how does it install the application to ODL.
edit retag flag offensive close merge delete


hi subhash, did your toaster POST request succeed? i tried POST to http://localhost:8181/restconf/config/ with the content as """{ "toaster:toaster" : { "toaster:toasterManufacturer" : "General Electric", "toaster:toasterModelNumber" : "34567", "toaster:toasterStatus" : "up" } }""" it gave error, Data has bad format. Root element node has incorrect namespace (XML format) or module name(JSON format)... i am sure, you cannot do GET request when the POST doesn't work.

madhavan ( 2015-03-09 04:07:28 -0800 )edit