<?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: HP Aruba 2920, HP SDN Controller,  Curl, Failed to validate flowmod in Software Defined Networking</title>
    <link>https://community.hpe.com/t5/software-defined-networking/hp-aruba-2920-hp-sdn-controller-curl-failed-to-validate-flowmod/m-p/6949066#M1941</link>
    <description>&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;One other possibility would be to omit the "table_id" parameter entirely. The HPE SDN controller has table auto-selection which will automatically select the best table in the switch to fit a particular flow. That way, you don't need to know which table supports the flow you're pushing.&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2017 14:18:38 GMT</pubDate>
    <dc:creator>ShaunWackerly</dc:creator>
    <dc:date>2017-03-17T14:18:38Z</dc:date>
    <item>
      <title>HP Aruba 2920, HP SDN Controller,  Curl, Failed to validate flowmod</title>
      <link>https://community.hpe.com/t5/software-defined-networking/hp-aruba-2920-hp-sdn-controller-curl-failed-to-validate-flowmod/m-p/6947476#M1925</link>
      <description>&lt;P&gt;Hello. I have physical HP-2920-24G Aruba switch and I'm using the HP SDN Controller (trial version). I've just started with SDN. I wanted to add a flow, using curl:&lt;/P&gt;&lt;PRE&gt;curl -ski -X POST \
     -H "X-Auth-Token: b83786a25be841e29e99b0cc079dc972" \
     -H "Content-Type:application/json" \
     -d '{
         "flow": {
                "cookie": "0x2031987",
                "table_id": 0,
                "priority": 30000,
                "idle_timeout": 300,
                "hard_timeout": 300,
                "match": [
                        {"ipv4_src": "10.0.2.101"},
                        {"ipv4_dst": "10.0.2.102"},
                        {"eth_type": "ipv4"}
                ],
                "instructions": [{"apply_actions": [{"output": 2}]}]
                }
          }' \
      https://10.0.1.103:8443/sdn/v2.0/of/datapaths/00:01:94:18:82:25:bc:80/flows&lt;/PRE&gt;&lt;P&gt;But it showed me the following error:&lt;/P&gt;&lt;PRE&gt;HTTP/1.1 400 Bad Request
Server: Apache-Coyote/1.1
X-FRAME-OPTIONS: deny
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: GET, POST, PUT, HEAD, PATCH
Access-Control-Allow-Headers: Content-Type, Accept, X-Auth-Token
Content-Type: application/json
Transfer-Encoding: chunked
Date: Sun, 12 Mar 2017 12:14:54 GMT
Connection: close

{"error":"java.lang.IllegalArgumentException","message":"Failed to validate flowmod: {ofm:[V_1_3,FLOW_MOD,104,300784],cmd=ADD,match={Match(V_1_3):[type=OXM,len=26],fields=ETH_TYPE,IPV4_SRC,IPV4_DST},...}"}&lt;/PRE&gt;&lt;P&gt;I double-checked the syntax, it seems to me that it's OK.&lt;/P&gt;&lt;P&gt;What is the problem, what am I doing wrong here? Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2017 22:51:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/hp-aruba-2920-hp-sdn-controller-curl-failed-to-validate-flowmod/m-p/6947476#M1925</guid>
      <dc:creator>roger_murphy</dc:creator>
      <dc:date>2017-03-12T22:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: HP Aruba 2920, HP SDN Controller,  Curl, Failed to validate flowmod</title>
      <link>https://community.hpe.com/t5/software-defined-networking/hp-aruba-2920-hp-sdn-controller-curl-failed-to-validate-flowmod/m-p/6947639#M1928</link>
      <description>&lt;P&gt;Hello Roger,&lt;/P&gt;&lt;P&gt;I have assuming you are using OpenFlow version 1.3 here.&lt;/P&gt;&lt;P&gt;Table 0 of standard-match pipeline on Aruba switches is read-only. Any flow-mods to add a flow to that table is rejected by the switch. It is possible that the VAN controller is doing that validation at the controller layer because of its knowledge of the Aruba behavior.&lt;/P&gt;&lt;P&gt;Can you change the Table ID in the flow to 100 and retry the same flow. It should work. If it doesn't work, can you please share the switch's running configuration.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Abhay&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 12:47:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/hp-aruba-2920-hp-sdn-controller-curl-failed-to-validate-flowmod/m-p/6947639#M1928</guid>
      <dc:creator>Abhay_B</dc:creator>
      <dc:date>2017-03-13T12:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: HP Aruba 2920, HP SDN Controller,  Curl, Failed to validate flowmod</title>
      <link>https://community.hpe.com/t5/software-defined-networking/hp-aruba-2920-hp-sdn-controller-curl-failed-to-validate-flowmod/m-p/6948304#M1933</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for the information. I changed the syntax a little bit, and also changed the table ID:&lt;/P&gt;&lt;PRE&gt;curl --header ’X-Auth-Token:
88fd25c12e4c455ca3f7e56c5c3a4689’ --header "Accept:
application/json" --header "Content-type:
application/json" --fail -ksSfL
-X POST -d
’{"flow":
{"priority":100,
"table_id":100,
"idle_timeout":60,
"match":[
{"in_port":1},
{"ipv4_src":"10.0.2.101"},
{"ipv4_dst":"10.0.2.102"},
{"eth_type":"ipv4"},
{"ip_proto":"udp"}],
"instructions":[
{"apply_actions":""}]
}
}’
--url
https://10.0.1.103:8443/sdn/v2.0/of/datapaths/00:01:94:18:82:25:bc:80/flows&lt;/PRE&gt;&lt;P&gt;Now it works great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2017 10:32:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/hp-aruba-2920-hp-sdn-controller-curl-failed-to-validate-flowmod/m-p/6948304#M1933</guid>
      <dc:creator>roger_murphy</dc:creator>
      <dc:date>2017-03-15T10:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: HP Aruba 2920, HP SDN Controller,  Curl, Failed to validate flowmod</title>
      <link>https://community.hpe.com/t5/software-defined-networking/hp-aruba-2920-hp-sdn-controller-curl-failed-to-validate-flowmod/m-p/6949066#M1941</link>
      <description>&lt;P&gt;Hi Roger,&lt;/P&gt;&lt;P&gt;One other possibility would be to omit the "table_id" parameter entirely. The HPE SDN controller has table auto-selection which will automatically select the best table in the switch to fit a particular flow. That way, you don't need to know which table supports the flow you're pushing.&lt;/P&gt;&lt;P&gt;Shaun&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 14:18:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/software-defined-networking/hp-aruba-2920-hp-sdn-controller-curl-failed-to-validate-flowmod/m-p/6949066#M1941</guid>
      <dc:creator>ShaunWackerly</dc:creator>
      <dc:date>2017-03-17T14:18:38Z</dc:date>
    </item>
  </channel>
</rss>

