Ask Your Question
0

delete flows

asked 2016-01-01 07:37:13 -0700

pameligo gravatar image

hi how can i delete flows which odl-l2switch-switch feature is pushing to my mininet switch? thanks

edit retag flag offensive close merge delete

Comments

HI ,Could you please let me know how you pushed the flow? . send me the URL with json data format which you used to push . Thanks in advance

karthik330 ( 2016-01-04 04:05:08 -0700 )edit

I didnt push the flows the odl-l2switch-switch pushed them.

pameligo ( 2016-01-09 07:39:04 -0700 )edit

3 answers

Sort by ยป oldest newest most voted
0

answered 2016-01-04 10:01:59 -0700

jamoluhrsen gravatar image

the flows created by l2switch are created internally (i.e., not via restconf). So, they will not exist in the config datastore thus sending a DELETE to restconf/config/... will not work.

you can trigger an RPC delete with restconf though. this should let you delete those flows that you see:

Also, if you don't need any of the l2switch functionality, then you can skip installing it and just bring in openflow (e.g. odl-openflowplugin-flow-services)

edit flag offensive delete publish link more
0

answered 2016-01-04 17:52:20 -0700

kevin5476 gravatar image

updated 2016-01-04 17:52:57 -0700

If you want to disable the flows of l2switch that you can config xml file under "etc/opendaylight/karaf"

for example,

disable drop flow rule

in 58-l2switchmain.xml

<is-install-dropall-flow>false</is-install-dropall-flow>

disable lldp flow rule

in 52-loopremover.xml

<is-install-lldp-flow>false</is-install-lldp-flow>

If you need more config detail you can refer to l2switch user guide

edit flag offensive delete publish link more

Comments

Thank you a lot! May I ask why do you disable is-install-lldp-flow? Also, why doesn't controller delete flows after link goes down?

charlag ( 2016-04-11 15:21:44 -0700 )edit
0

answered 2016-01-05 20:31:14 -0700

pameligo gravatar image

thanks for the answers. I tried to delete flows with salflowservice and it didnt work.So i decided to hear the changes in operational datastore through datachangelistener.So i hear the flows that l2switch is pushing and then iam trying to delete them.But that didnt work either.So can anyone explain to me the procedure that salflowservice adds/deletes/updates flows because i cant find any information about this.

Thanks a lot!

edit flag offensive delete publish link more
Login/Signup to Answer

Stats

Asked: 2016-01-01 07:37:13 -0700

Seen: 378 times

Last updated: Jan 05 '16