Signed-off-by: Yuichi Ito <[email protected]>
---
ryu/ofproto/ofproto_v1_3_parser.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/ryu/ofproto/ofproto_v1_3_parser.py
b/ryu/ofproto/ofproto_v1_3_parser.py
index 38eeb1f..13bf385 100644
--- a/ryu/ofproto/ofproto_v1_3_parser.py
+++ b/ryu/ofproto/ofproto_v1_3_parser.py
@@ -2687,7 +2687,7 @@ class OFPActionGroup(OFPAction):
group_id Group identifier
================ ======================================================
"""
- def __init__(self, group_id, type_=None, len_=None):
+ def __init__(self, group_id=0, type_=None, len_=None):
super(OFPActionGroup, self).__init__()
self.group_id = group_id
@@ -3178,7 +3178,8 @@ class OFPActionExperimenter(OFPAction):
class OFPBucket(StringifyMixin):
- def __init__(self, weight, watch_port, watch_group, actions, len_=None):
+ def __init__(self, weight=0, watch_port=ofproto.OFPP_ANY,
+ watch_group=ofproto.OFPG_ANY, actions=None, len_=None):
super(OFPBucket, self).__init__()
self.weight = weight
self.watch_port = watch_port
@@ -3262,7 +3263,8 @@ class OFPGroupMod(MsgBase):
ofp.OFPGT_SELECT, group_id, buckets)
datapath.send_msg(req)
"""
- def __init__(self, datapath, command, type_, group_id, buckets):
+ def __init__(self, datapath, command=ofproto.OFPGC_ADD,
+ type_=ofproto.OFPGT_ALL, group_id=0, buckets=[]):
super(OFPGroupMod, self).__init__(datapath)
self.command = command
self.type = type_
--
1.7.10.4
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel