Ask Your Question
0

Delete a flow

asked 2016-07-15 02:24:56 -0700

mann8352 gravatar image

How to delete any specific flow from a switch using flow-id using Rest api call?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-07-16 10:40:52 -0700

Lets say flow id is 111

Invoke the following rest call with method DELETE to delete the flow:

http://<ODL IP>:8181/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/flow/111
edit flag offensive delete publish link more

Comments

Thanks @subhash, but I couldn't delete the flow using the above mentioned method. Are you sure that it works? Because in my case I am not able to open the url itself(using the flow ids which are present).

mann8352 ( 2016-07-16 16:31:01 -0700 )edit

Could you share the version of ODL you are using. In that url you have to change the method. That should work.

subhash ( 2016-07-17 02:48:40 -0700 )edit

Thanks @subhash a lot, actually it works. I was making some mistakes in url.

mann8352 ( 2016-07-18 00:22:56 -0700 )edit
0

answered 2016-07-17 17:46:25 -0700

ljyfree gravatar image

@mann8352 Did you open the uri directly in web browser or some rest client such like Chrome postman?

edit flag offensive delete publish link more

Comments

I opened url directly in browser.

mann8352 ( 2016-07-17 19:53:41 -0700 )edit

@ljyfree the method suggested by @subhash is working fine. Thanks guys

mann8352 ( 2016-07-18 00:24:13 -0700 )edit

You are welcome

subhash ( 2016-07-19 11:11:03 -0700 )edit
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2016-07-15 02:24:56 -0700

Seen: 117 times

Last updated: Jul 17 '16