clearing flow table via code

  • 1 Replies
  • 1255 Views
*

M.Ibrahem

  • Newbie
  • *
  • 26
    • View Profile
clearing flow table via code
« on: January 09, 2017, 07:53:22 AM »
Hello,
i am working on RYU openflow 1.3 and i want to make a code to clear the flow table after each 50 packets.
how can i do that with Zodiac?
thanks in advance

*

siniar1990

  • Newbie
  • *
  • 5
    • View Profile
Re: clearing flow table via code
« Reply #1 on: February 18, 2017, 09:45:14 AM »
I'm not an expert in the SDN, but it sound's like it is something you can do with Ryu API. You need to remember that OpenFlow controllers/switches including Zodiac FX keep track of a packet count for per flow. The statistics of every flow can be accessed via API, so you can take action - in your case clear flow table, when packet number > 50.

There may be an easier way to do it, but API seems like the way to go.