commit | e3a5972ae4dc86966f6ffce998cdd25ac02bfb02 | [log] [tgz] |
---|---|---|
author | Rich Lane <rich.lane@bigswitch.com> | Fri Jan 11 12:50:25 2013 -0800 |
committer | Rich Lane <rich.lane@bigswitch.com> | Fri Jan 11 12:50:25 2013 -0800 |
tree | 7722d40dace1507cc5af3a50ec6c3c2f963e73f0 | |
parent | 5de2d94348b08b05f3ea510cc73b97886700bc89 [diff] [blame] |
of12: support actions keyword argument in packet_out message
diff --git a/src/python/of12/action_list.py b/src/python/of12/action_list.py index f3c0723..78341e2 100644 --- a/src/python/of12/action_list.py +++ b/src/python/of12/action_list.py
@@ -41,9 +41,11 @@ """ - def __init__(self): + def __init__(self, actions=None): ofp_base_list.__init__(self) self.actions = self.items + if actions: + self.actions.extend(actions) self.name = "action" self.class_list = action_class_list