- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Re: SDN Delete Flow REST in Java
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2015 01:06 AM
06-02-2015 01:06 AM
SDN Delete Flow REST in Java
Hi,
I am trying to delete a flow in the VAN controller using DELETE REST call, something like below:
curl -sk -H "X-Auth-Token:6b2fa61a754a4cb984cc943689e65276" -X DELETE -H 'Content-Type:application/json' -d '{"flow":{"priority":50000,"idle_timeout":200,"match":[{"eth_type":"ipv4"},{"ipv4_src":"10.0.0.1"},{"ipv4_dst":"10.0.0.2"},{"ip_proto":"tcp"},{"tcp_dst":"80"}],"actions":[{"output":2}]}}' https://127.0.0.1:8443/sdn/v2.0/of/datapaths/00:00:00:00:00:00:00:01/flows
Using curl command, this works fine. Is there a similar way in Java (library/package etc.), which can be used to do the same?
I have tried the common Http client libraries of Java but unable to implement the DELETE method with payload. Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2015 04:28 AM
07-03-2015 04:28 AM
Re: SDN Delete Flow REST in Java
Hi Avimany,
There is a Java wrapper for libcurl. Since it's implemented on libcurl, anything that works with cURL also works with libcurl. For an example of using libcurl (in C, regrettably not in Java, but the principle should be the same) see here. Let me know whether this helps.
Best regards,
Wouter
HP SDN CoE Team