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