Quantcast
Channel: Software Defined Networking topics
Viewing all articles
Browse latest Browse all 611

Add a Flow with "Write-Action" Instruction via REST-API of HPE-SDN-Controller V 2.7.18

$
0
0

Hello,

I added some Flows via the REST API. There i can use the "apply_action" or the "meter"-Field in the Instruction. For example:

{

"flow":{

"priority":50100,

"table_id":100,

"match":[

{"eth_type": "ipv4"},

{"ipv4_src": "192.168.59.10", "mask": "255.255.255.255"},

{"ipv4_dst": "192.168.58.10", "mask": "255.255.255.255"}],

"instructions":[{"apply_actions":[{"output":"NORMAL"}]},

{"meter":1}]

}

}

With this Flow I can use one of my meters for the given Match. My Switches (HPE 2920) support OpenFlow 1.3.0. OpenFlow 1.3.0 supports the Write_action order and according to the documentation of the REST-API I can use the "write_action" order too. So I tried to add some information to an action-set of a given data paket:

{

"flow":{

"priority":50100,

"table_id":100,

"match":[

{"eth_type": "ipv4"},

{"ipv4_src": "192.168.59.10", "mask": "255.255.255.255"},

{"ipv4_dst": "192.168.58.10", "mask": "255.255.255.255"}],

"instructions":[{"write_actions":[{"output":"NORMAL"}]},

{"meter":1}]

}

}

But this doesn't work. I get this error message:

{
"error": "java.lang.IllegalArgumentException",
"message": "Failed to validate flowmod: {ofm:[V_1_3,FLOW_MOD,120,1717169],cmd=ADD,match={Match(V_1_3):[type=OXM,len=34],fields=ETH_TYPE,IPV4_SRC,IPV4_DST},...}"
}

Tanks to ShaunWackerly I know that I can use the debug mode on the given switch to gather further information. The debugger told me that the "Write-Action" instruction is not supportet for Flow Table 100.  So I tried other Flow-tables, even no Flow-table, but nothing helped me to solve this issue. Here the official switch debug output: 

0002:21:31:50.16 OPFL eOFNetTask:{ "error_code":"OFPBIC_UNSUP_INST","error_reaso
n":"Instruction 'write_actions' is not a supported instruction for table
100","process_time":"0.069 ms","command":"OFPFC_ADD","table_id":100,"

I hope someone can help me or tell me that the 2920 Switch with software release WB.16.04.0008 (latest release) is not able to use write-action.

Regards Tobias

 


Viewing all articles
Browse latest Browse all 611


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>