<?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: CURL with an drop &amp;quot;apply_actions&amp;quot; in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6778743#M856</link>
    <description>&lt;P&gt;OK, I worked it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add or remove a drop action for specific IP or IP range&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl --header "X-Auth-Token:$AUTH_TOKEN" -H "Content-Type:application/json" -ksS --url "https://$CONTROLER_IP:8443/sdn/v2.0/of/datapaths/$SW_DPID/flows" -d "{\"flow\": {\"priority\": 20100,\"table_id\":100,\"idle_timeout\": 60000,\"match\": [{\"ipv4_dst\":\"10.0.0.120\",\"mask\":\"255.255.255.255\"},{\"eth_type\": \"ipv4\"}]}}" --request POST&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;curl --header "X-Auth-Token:$AUTH_TOKEN" -H "Content-Type:application/json" -ksS --url "https://$CONTROLER_IP:8443/sdn/v2.0/of/datapaths/$SW_DPID0/flows" -d "{\"flow\": {\"priority\": 20100,\"table_id\":100,\"idle_timeout\": 60000,\"match\": [{\"ipv4_dst\":\"10.1.0.120\",\"mask\":\"255.255.255.255\"},{\"eth_type\": \"ipv4\"}]}}" --request DELETE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2015 12:36:08 GMT</pubDate>
    <dc:creator>Dave-B</dc:creator>
    <dc:date>2015-08-27T12:36:08Z</dc:date>
    <item>
      <title>CURL with an drop "apply_actions"</title>
      <link>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6424438#M208</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know how to add "drop" as an apply_actions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl --noproxy 130.223.16.128 --header 'X-Auth-Token: a97daad3ea18489eb38c8c6a7ae5236e' --header "Accept: application/json" --header "Content-type: application/json" --fail -ksSfL -X POST -d '{"flow":{"priority":20,"table_id":100,"idle_timeout":60,"match":[{"eth_type":"arp"}],"instructions":[{"apply_actions":[{"drop"}]}]}}' --url &lt;A target="_blank" href="https://130.223.16.128:8443/sdn/v2.0/of/datapaths/00:14:f0:92:1c:21:fa:c0/flows"&gt;https://130.223.16.128:8443/sdn/v2.0/of/datapaths/00:14:f0:92:1c:21:fa:c0/flows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I obtained: &amp;nbsp;curl: (22) The requested URL returned error: 400 Bad Request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to do that ?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 14:43:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6424438#M208</guid>
      <dc:creator>sbotkine</dc:creator>
      <dc:date>2014-03-25T14:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: CURL with an drop "apply_actions"</title>
      <link>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6425064#M209</link>
      <description>&lt;P&gt;Hi sbotkine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way to accomplish a drop is with an empty list of actions. That's the way it's accomplished in the OpenFlow spec, so that's how it's accomplished through the controller's REST API as well.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2014 21:14:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6425064#M209</guid>
      <dc:creator>ShaunWackerly</dc:creator>
      <dc:date>2014-03-25T21:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: CURL with an drop "apply_actions"</title>
      <link>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6429310#M219</link>
      <description>&lt;P&gt;Hello sbotkine,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We hope the response from Shaun answers your query.&lt;/P&gt;&lt;P&gt;Please feel free to reply incase you have more questions around the same topic or open a new thread if new topic.&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>Fri, 28 Mar 2014 20:56:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6429310#M219</guid>
      <dc:creator>sdnindia</dc:creator>
      <dc:date>2014-03-28T20:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: CURL with an drop "apply_actions"</title>
      <link>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6778655#M854</link>
      <description>&lt;P&gt;Please can you give an example of the curl command for this.&lt;/P&gt;&lt;P&gt;I keep getting ivaliud json format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Dave.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 10:24:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6778655#M854</guid>
      <dc:creator>Dave-B</dc:creator>
      <dc:date>2015-08-27T10:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: CURL with an drop "apply_actions"</title>
      <link>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6778691#M855</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as per the answer already marked as the solution of this thread, please just leave the apply_action section empty.&lt;/P&gt;&lt;P&gt;This will drop packets:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl --noproxy 130.223.16.128 --header 'X-Auth-Token: a97daad3ea18489eb38c8c6a7ae5236e' --header "Accept: application/json" --header "Content-type: application/json" --fail -ksSfL -X POST -d '{"flow":{"priority":20,"table_id":100,"idle_timeo​ut":60,"match":[{"eth_type":"arp"}],"instructions"​:[{"apply_actions":[{""}]}]}}'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;P&gt;SDN Team&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:23:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6778691#M855</guid>
      <dc:creator>piricchio72</dc:creator>
      <dc:date>2015-08-27T11:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: CURL with an drop "apply_actions"</title>
      <link>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6778743#M856</link>
      <description>&lt;P&gt;OK, I worked it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To add or remove a drop action for specific IP or IP range&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl --header "X-Auth-Token:$AUTH_TOKEN" -H "Content-Type:application/json" -ksS --url "https://$CONTROLER_IP:8443/sdn/v2.0/of/datapaths/$SW_DPID/flows" -d "{\"flow\": {\"priority\": 20100,\"table_id\":100,\"idle_timeout\": 60000,\"match\": [{\"ipv4_dst\":\"10.0.0.120\",\"mask\":\"255.255.255.255\"},{\"eth_type\": \"ipv4\"}]}}" --request POST&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;curl --header "X-Auth-Token:$AUTH_TOKEN" -H "Content-Type:application/json" -ksS --url "https://$CONTROLER_IP:8443/sdn/v2.0/of/datapaths/$SW_DPID0/flows" -d "{\"flow\": {\"priority\": 20100,\"table_id\":100,\"idle_timeout\": 60000,\"match\": [{\"ipv4_dst\":\"10.1.0.120\",\"mask\":\"255.255.255.255\"},{\"eth_type\": \"ipv4\"}]}}" --request DELETE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 12:36:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/curl-with-an-drop-quot-apply-actions-quot/m-p/6778743#M856</guid>
      <dc:creator>Dave-B</dc:creator>
      <dc:date>2015-08-27T12:36:08Z</dc:date>
    </item>
  </channel>
</rss>

