summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-02-07 21:56:17 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2014-02-10 11:03:35 +0900
commitf3c7dcbc006b7f73aa9bc6f60211f19747335c37 (patch)
tree257e9f92f480734974acd2003552a3e6f26f565f
parentba348e8058489ac67e71b74fc0d527057baa42f3 (diff)
of14: set default attributes for OFPMeterMod
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/ofproto/ofproto_v1_4_parser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ryu/ofproto/ofproto_v1_4_parser.py b/ryu/ofproto/ofproto_v1_4_parser.py
index 9a58d6c3..c8a63433 100644
--- a/ryu/ofproto/ofproto_v1_4_parser.py
+++ b/ryu/ofproto/ofproto_v1_4_parser.py
@@ -1646,7 +1646,8 @@ class OFPMeterMod(MsgBase):
OFPMeterBandExperimenter
================ ======================================================
"""
- def __init__(self, datapath, command, flags, meter_id, bands):
+ def __init__(self, datapath, command=ofproto.OFPMC_ADD,
+ flags=ofproto.OFPMF_KBPS, meter_id=1, bands=[]):
super(OFPMeterMod, self).__init__(datapath)
self.command = command
self.flags = flags