diff options
author | YAMAMOTO Takashi <yamamoto@valinux.co.jp> | 2013-09-02 15:05:53 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2013-09-02 19:41:36 +0900 |
commit | 6cd20b2739069da948ac452cb706564509cf4a96 (patch) | |
tree | e7b62ae4763b6f33411fdee358de1798ac623bb5 | |
parent | 9b221f1eaaf56ce4f56b5a2b8b5e06d7cb7f8195 (diff) |
of12: make OFPQueuePropHeader.property visible to user
Signed-off-by: YAMAMOTO Takashi <yamamoto@valinux.co.jp>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r-- | ryu/ofproto/ofproto_v1_2_parser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ryu/ofproto/ofproto_v1_2_parser.py b/ryu/ofproto/ofproto_v1_2_parser.py index c217681c..a893b6a2 100644 --- a/ryu/ofproto/ofproto_v1_2_parser.py +++ b/ryu/ofproto/ofproto_v1_2_parser.py @@ -2843,12 +2843,12 @@ class OFPQueueGetConfigRequest(MsgBase): class OFPQueuePropHeader(StringifyMixin): def __init__(self, property_, len_=None): - self._property = property_ + self.property = property_ self.len = len_ def serialize(self, buf, offset): msg_pack_into(ofproto_v1_2.OFP_QUEUE_PROP_HEADER_PACK_STR, - buf, offset, self._property, self.len) + buf, offset, self.property, self.len) class OFPQueueProp(OFPQueuePropHeader): @@ -2906,7 +2906,7 @@ class OFPPacketQueue(StringifyMixin): @OFPQueueProp.register_property(ofproto_v1_2.OFPQT_MIN_RATE, ofproto_v1_2.OFP_QUEUE_PROP_MIN_RATE_SIZE) class OFPQueuePropMinRate(OFPQueueProp): - def __init__(self, rate, len_=None): + def __init__(self, rate, property_=None, len_=None): super(OFPQueuePropMinRate, self).__init__() self.rate = rate @@ -2920,7 +2920,7 @@ class OFPQueuePropMinRate(OFPQueueProp): @OFPQueueProp.register_property(ofproto_v1_2.OFPQT_MAX_RATE, ofproto_v1_2.OFP_QUEUE_PROP_MAX_RATE_SIZE) class OFPQueuePropMaxRate(OFPQueueProp): - def __init__(self, rate, len_=None): + def __init__(self, rate, property_=None, len_=None): super(OFPQueuePropMaxRate, self).__init__() self.rate = rate |