mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-08 13:56:09 +02:00
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:
parent
52540f27da
commit
5ac517ab36
@ -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.')
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user