Signed-off-by: Yuichi Ito <[email protected]>
---
ryu/lib/ofctl_v1_3.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/ryu/lib/ofctl_v1_3.py b/ryu/lib/ofctl_v1_3.py
index 57eb059..4a61b9c 100644
--- a/ryu/lib/ofctl_v1_3.py
+++ b/ryu/lib/ofctl_v1_3.py
@@ -43,9 +43,9 @@ def to_actions(dp, acts):
actions.append((parser.OFPActionOutput(out_port,
max_len)))
elif action_type == 'COPY_TTL_OUT':
- pass
+ actions.append(parser.OFPActionCopyTtlOut())
elif action_type == 'COPY_TTL_IN':
- pass
+ actions.append(parser.OFPActionCopyTtlIn())
elif action_type == 'SET_MPLS_TTL':
mpls_ttl = int(a.get('mpls_ttl'))
actions.append((parser.OFPActionSetMplsTtl(mpls_ttl)))
@@ -93,9 +93,10 @@ def to_actions(dp, acts):
f = parser.OFPMatchField.make(field, value)
actions.append(parser.OFPActionSetField(f))
elif action_type == 'PUSH_PBB':
- pass
+ ethertype = int(a.get('ethertype'))
+ actions.append(parser.OFPActionPushPbb(ethertype))
elif action_type == 'POP_PBB':
- pass
+ actions.append(parser.OFPActionPopPbb())
elif action_type == 'GOTO_TABLE':
table_id = int(a.get('table_id'))
inst.append(parser.OFPInstructionGotoTable(table_id))
--
1.7.10.4
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel