mirror of
https://github.com/faucetsdn/ryu.git
synced 2026-05-13 00:28:39 +02:00
ofctl_v1_2/3: fix unsuitable log
when using action type below, the log unsuitable is outputted: Unknown action type: [action type] * GOTO_TABLE, WRITE_METADATA, METER(only ofctl_v1_3.py) this patch fixes this problem. Reported-by: jalee <jalee@inno-tech.com.tw> Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
883a2aacf9
commit
312eee129f
@ -47,7 +47,6 @@ def to_action(dp, dic):
|
||||
ofp = dp.ofproto
|
||||
parser = dp.ofproto_parser
|
||||
|
||||
result = None
|
||||
action_type = dic.get('type')
|
||||
if action_type == 'OUTPUT':
|
||||
out_port = int(dic.get('port', ofp.OFPP_ANY))
|
||||
@ -89,7 +88,7 @@ def to_action(dp, dic):
|
||||
value = dic.get('value')
|
||||
result = parser.OFPActionSetField(**{field: value})
|
||||
else:
|
||||
LOG.debug('Unknown action type: %s' % action_type)
|
||||
result = None
|
||||
|
||||
return result
|
||||
|
||||
|
||||
@ -47,7 +47,6 @@ def to_action(dp, dic):
|
||||
ofp = dp.ofproto
|
||||
parser = dp.ofproto_parser
|
||||
|
||||
result = None
|
||||
action_type = dic.get('type')
|
||||
if action_type == 'OUTPUT':
|
||||
out_port = int(dic.get('port', ofp.OFPP_ANY))
|
||||
@ -94,7 +93,7 @@ def to_action(dp, dic):
|
||||
elif action_type == 'POP_PBB':
|
||||
result = parser.OFPActionPopPbb()
|
||||
else:
|
||||
LOG.debug('Unknown action type: %s' % action_type)
|
||||
result = None
|
||||
|
||||
return result
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user