<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to delete specific flows(openflow version-1.3) in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6514754#M326</link>
    <description>&lt;P&gt;HI HP-SDN Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im not able to delete a specific flow from HP_VAN controller.&lt;/P&gt;&lt;P&gt;COntroller version used is:2.0.0.4253( Trial Version)&lt;/P&gt;&lt;P&gt;Curl Command used is: curl -Lk -v -DELETE --header "X-Auth-Token: bf9ad321555f41e4852e2ce7fa31a450 " --header Content-Type:application/json &amp;nbsp;-d '{"flow": {"priority": 7779,"table_id": 0,"idle_timeout": 60,"hard_timeout": 60,"cookie": "0xf","out_port" :12","flow_mod_cmd": "delete","match": [{"eth_type": "ipv4"}]}}' --url " https:// 127.0.0.1:8443/sdn/v2.0/of/datapaths/$dpid/flows"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Switch used: Openflow reference switch(v1.3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Controller Logs:&lt;/P&gt;&lt;P&gt;* upload completely sent off: 153out of 153 bytes&lt;BR /&gt;&amp;lt; HTTP/1.1 400 Bad Request&lt;BR /&gt;&amp;lt; Server: Apache-Coyote/1.1&lt;BR /&gt;&amp;lt; X-FRAME-OPTIONS: deny&lt;BR /&gt;&amp;lt; Access-Control-Allow-Origin: *&lt;BR /&gt;&amp;lt; Access-Control-Allow-Methods: GET, POST, PUT, HEAD, PATCH&lt;BR /&gt;&amp;lt; Access-Control-Allow-Headers: Content-Type, Accept, X-Auth-Token&lt;BR /&gt;&amp;lt; Content-Type: application/json&lt;BR /&gt;&amp;lt; Transfer-Encoding: chunked&lt;BR /&gt;&amp;lt; Date: Thu, 19 Jun 2014 05:03:45 GMT&lt;BR /&gt;&amp;lt; Connection: close&lt;BR /&gt;&amp;lt;&lt;BR /&gt;* Closing connection #0&lt;BR /&gt;* SSLv3, TLS alert, Client hello (1):&lt;BR /&gt;{"error":"java.lang.IllegalArgumentException","message":"Bad command"}=== Flow Tables for each = 00:00:00:00:00:00:01:11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i missing something here, Kindly help us to know. Your response would help me out in my observation.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jun 2014 08:34:01 GMT</pubDate>
    <dc:creator>Richie_SDN</dc:creator>
    <dc:date>2014-06-19T08:34:01Z</dc:date>
    <item>
      <title>Unable to delete specific flows(openflow version-1.3)</title>
      <link>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6503834#M316</link>
      <description>&lt;P&gt;I am using hp 2920-24G(J9726A) switch with oft controller, i am able to write the flows on the switch successfully but when i want to delete the flow with specific out_port and table_id it is not getting deleted. Although all the flows get deleted when i specify table_id only.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The software for openflow 1.3 installed on the switch is WB 15.14.0002.&lt;BR /&gt;&lt;BR /&gt;i have also tried with "dpctl" to add and delete flow.&lt;BR /&gt;&lt;BR /&gt;Command to add the flow given was "dpctl tcp:192.168.3.140:6635 flow-mod table=200,cmd=add in_port=5actions=output:9". This adds the flow on switch.&lt;BR /&gt;&lt;BR /&gt;But when try to delete the flow with specific parameters like table_id and output port then it is not getting deleted. Although all flows are deleted with that table_id.&lt;BR /&gt;&lt;BR /&gt;dpctl tcp:192.168.3.140:6635 flow-mod table=200,cmd=del&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is there any command to delete the flow from switch's cli?&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks and regards&lt;BR /&gt;Chhavi Kant&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2014 10:45:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6503834#M316</guid>
      <dc:creator>Chhavi_Kant</dc:creator>
      <dc:date>2014-06-10T10:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete specific flows(openflow version-1.3)</title>
      <link>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6508702#M320</link>
      <description>&lt;P&gt;As for deleting flows from the switch, there doesn't appear a way to delete a specific flow.&lt;/P&gt;&lt;P&gt;There are only configuration commands to disable/enable openflow instances.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Disabling and then enabling an instance would delete all of the flows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case you wanted to pursue deleting just one flow at a time, have you tried the CURL command(s).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -sk -H "X-Auth-Token:$token" -X DELETE -H 'Content-Type:application/json' &lt;A target="_blank" href="https://15.234.166.46:8443/sdn/v2.0/of/datapaths/$dpid/flows"&gt;https://15.234.166.46:8443/sdn/v2.0/of/datapaths/$dpid/flows&lt;/A&gt; -d @flow.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;flow.json has the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{"flow": {&lt;BR /&gt;"byte_count": 0,&lt;BR /&gt;"cookie": "0x0",&lt;BR /&gt;"duration_nsec": 845000000,&lt;BR /&gt;"duration_sec": 323,&lt;BR /&gt;"flow_mod_flags": [],&lt;BR /&gt;"hard_timeout": 0,&lt;BR /&gt;"idle_timeout": 0,&lt;BR /&gt;"instructions": [&lt;BR /&gt;{&lt;BR /&gt;"write_actions": [&lt;BR /&gt;{&lt;BR /&gt;"output": 25&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"match": [&lt;BR /&gt;{&lt;BR /&gt;"eth_type": "arp"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"packet_count": 0,&lt;BR /&gt;"priority": 30000,&lt;BR /&gt;"table_id": 200&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which is the exact same JSON script used for creating the flow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need a full example of creation/deletion using CURL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2014 12:53:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6508702#M320</guid>
      <dc:creator>ScottReeve</dc:creator>
      <dc:date>2014-06-13T12:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete specific flows(openflow version-1.3)</title>
      <link>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6512696#M325</link>
      <description>&lt;P&gt;Hello Chhavi Kant,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doing a follow up to check if you need any further assistance with respect to the query posted.&lt;/P&gt;&lt;P&gt;Did you try curl command as suggested in earlier post?&lt;/P&gt;&lt;P&gt;Please do let us know&amp;nbsp; if your problem is solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have more questions on the same topic please do reply on the same thread or open a new post if new topic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jun 2014 17:54:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6512696#M325</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-06-17T17:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete specific flows(openflow version-1.3)</title>
      <link>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6514754#M326</link>
      <description>&lt;P&gt;HI HP-SDN Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im not able to delete a specific flow from HP_VAN controller.&lt;/P&gt;&lt;P&gt;COntroller version used is:2.0.0.4253( Trial Version)&lt;/P&gt;&lt;P&gt;Curl Command used is: curl -Lk -v -DELETE --header "X-Auth-Token: bf9ad321555f41e4852e2ce7fa31a450 " --header Content-Type:application/json &amp;nbsp;-d '{"flow": {"priority": 7779,"table_id": 0,"idle_timeout": 60,"hard_timeout": 60,"cookie": "0xf","out_port" :12","flow_mod_cmd": "delete","match": [{"eth_type": "ipv4"}]}}' --url " https:// 127.0.0.1:8443/sdn/v2.0/of/datapaths/$dpid/flows"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Switch used: Openflow reference switch(v1.3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Controller Logs:&lt;/P&gt;&lt;P&gt;* upload completely sent off: 153out of 153 bytes&lt;BR /&gt;&amp;lt; HTTP/1.1 400 Bad Request&lt;BR /&gt;&amp;lt; Server: Apache-Coyote/1.1&lt;BR /&gt;&amp;lt; X-FRAME-OPTIONS: deny&lt;BR /&gt;&amp;lt; Access-Control-Allow-Origin: *&lt;BR /&gt;&amp;lt; Access-Control-Allow-Methods: GET, POST, PUT, HEAD, PATCH&lt;BR /&gt;&amp;lt; Access-Control-Allow-Headers: Content-Type, Accept, X-Auth-Token&lt;BR /&gt;&amp;lt; Content-Type: application/json&lt;BR /&gt;&amp;lt; Transfer-Encoding: chunked&lt;BR /&gt;&amp;lt; Date: Thu, 19 Jun 2014 05:03:45 GMT&lt;BR /&gt;&amp;lt; Connection: close&lt;BR /&gt;&amp;lt;&lt;BR /&gt;* Closing connection #0&lt;BR /&gt;* SSLv3, TLS alert, Client hello (1):&lt;BR /&gt;{"error":"java.lang.IllegalArgumentException","message":"Bad command"}=== Flow Tables for each = 00:00:00:00:00:00:01:11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i missing something here, Kindly help us to know. Your response would help me out in my observation.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jun 2014 08:34:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6514754#M326</guid>
      <dc:creator>Richie_SDN</dc:creator>
      <dc:date>2014-06-19T08:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete specific flows(openflow version-1.3)</title>
      <link>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6517822#M329</link>
      <description>&lt;P&gt;Hi , Can you provide me with the complete script for the same to test the flow deletion on the switch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 10:48:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6517822#M329</guid>
      <dc:creator>yogeshmpandey</dc:creator>
      <dc:date>2014-06-23T10:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete specific flows(openflow version-1.3)</title>
      <link>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6518962#M330</link>
      <description>&lt;P&gt;Hi ScottReeve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response, but i am new to curl commands for inserting and deleting flows on switch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please show the commands to install a particular flow and then delete the same.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jun 2014 09:20:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6518962#M330</guid>
      <dc:creator>Chhavi_Kant</dc:creator>
      <dc:date>2014-06-24T09:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to delete specific flows(openflow version-1.3)</title>
      <link>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6531490#M340</link>
      <description>&lt;P&gt;Hello Chhavi Kant,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add a flow you can also use REST API [REST API document page 62]&lt;/P&gt;&lt;P&gt;However below are the commands – here token is already exported&lt;/P&gt;&lt;P&gt;To add a flow-&amp;nbsp;&lt;/P&gt;&lt;P&gt;Format is &amp;nbsp;curl -sk -H "X-Auth-Token:$token" -X POST -H ‘Content-Type:application/json’ -d @flow.json &amp;nbsp;&lt;A target="_blank" href="https://Controller_IP:8443/sdn/v2.0/of/datapaths/$dpid/flows"&gt;https://Controller_IP:8443/sdn/v2.0/of/datapaths/$dpid/flows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To delete the flow-&lt;/P&gt;&lt;P&gt;Format is curl -sk -H "X-Auth-Token:$token" -X DELETE -H 'Content-Type:application/json' &lt;A target="_blank" href="https://Controller_IP:8443/sdn/v2.0/of/datapaths/$dpid/flows"&gt;https://Controller_IP:8443/sdn/v2.0/of/datapaths/$dpid/flows&lt;/A&gt; -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":[]}}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;$curl -sk -H "X-Auth-Token:$token" -X DELETE -H 'Content-Type:application/json' &lt;A target="_blank" href="https://Controller_IP:8443/sdn/v2.0/of/datapaths/0bb8d07e283eb7d0"&gt;https://Controller_IP:8443/sdn/v2.0/of/datapaths/0bb8d07e283eb7d0&lt;/A&gt; /flows -d @flow.json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here flow.json is the json file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;HP SDN Team&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jul 2014 18:33:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/unable-to-delete-specific-flows-openflow-version-1-3/m-p/6531490#M340</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-07-07T18:33:49Z</dc:date>
    </item>
  </channel>
</rss>

