Software Defined Networking
1752307 Members
5143 Online
108786 Solutions
New Discussion юеВ

Re: How can I delete a given flow in the RSdoc API ?

 
Yuanxiance
Occasional Contributor

How can I delete a given flow in the RSdoc API ?

I use the RSdoc API  2.0,when I want to delete the flows I write .It's unable to edit in the FlowJson box(in the "Delete the given flows"options).Is it I have no authority so I can't edit?

2 REPLIES 2
sdnindia
Trusted Contributor

Re: How can I delete a given flow in the RSdoc API ?

Hello Yuanxiance,

Thanks for your query,We will get back to you shortly..
However to delete a flow you can also try curl command as below-


To delete a flow-

Format is curl -sk -H "X-Auth-Token:$token" -X DELETE -H 'Content-Type:application/json' https://Controller_IP:8443/sdn/v2.0/of/datapaths/$dpid/flows -d '{"flow":{"priority":30000,"table_id":0,"idle_timeout":0,"match":[{"eth_src":"00:10:94:00:00:01"},{"eth_dst":"00:10:94:00:00:09"},{"eth_type":"ipv6"}],"instructions":[]}}'

e.g.

$curl -sk -H "X-Auth-Token:$token" -X DELETE -H 'Content-Type:application/json' https://Controller_IP:8443/sdn/v2.0/of/datapaths/0bb8d07e283eb7d0 /flows -d @flow.json

Here flow.json is the json file used to create the flow.

Thanks,
HP SDN Team

sdnindia
Trusted Contributor

Re: How can I delete a given flow in the RSdoc API ?

Hello Yuanxiance,

Delete Flow is not supported in RSDOC UI.

However this can be achieved by sending curl command to delete flow.

Thanks,
HP SDN Team