rest_firewall: use the explicit max_len of flow_mod

rest_firewall had used the max_len value of flow_mod message which ofctl_v1_x specified.
in response to change ofctl_v1_x, rest_firewall gets to use the specified max_len explicitly.

Signed-off-by: Yuichi Ito <ito.yuichi0@gmail.com>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Yuichi Ito 2013-12-16 14:15:00 +09:00 committed by FUJITA Tomonori
parent 52540f27da
commit 5ac517ab36

View File

@ -953,7 +953,8 @@ class Action(object):
elif value == REST_ACTION_PACKETIN:
out_port = dp.ofproto.OFPP_CONTROLLER
action = [{'type': 'OUTPUT',
'port': out_port}]
'port': out_port,
'max_len': 128}]
else:
raise ValueError('Invalid action type.')