Hi,
Please enclose JSON string with single quotations(ascii code is 0x27) like:
curl -X POST -d '{"address":"172.16.20.1/24"}'
http://localhost:8080/router/0000000000000001
I think you are using "right single quotation marks", 0x2019 at unicode.
On Thu, 22 May 2014 06:14:19 +0500
Zubair Hafeez <[email protected]> wrote:
> Hello ,
>
> I am unable to set the address for router using REST API as mentioned in Ryu
> frame work.
>
> Set the addresses “172.16.20.1/24” and “172.16.30.30/24” for router s1.
>
> i am using the following on the controller :curl -X POST -d
> ’{"address":"172.16.20.1/24"}’ http://localhost:8080/router
> /0000000000000001
>
> but it is giving me error {"result": "failure", "details": "invalid syntax"}.
> Kindly suggest.
>
>
> Regards
> Zubair Hafeez.
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
>
>
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel