of1.3: fix OFPQueueProp

File "/Users/fujita/git/ryu/ryu/ofproto/ofproto_v1_3_parser.py", line 1398, in register_queue_property
  return _register_queue_property
NameError: global name '_register_queue_property' is not defined

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
FUJITA Tomonori 2012-11-22 16:33:18 +09:00
parent cdf42180a6
commit 569756639b

View File

@ -1390,7 +1390,7 @@ class OFPQueueProp(OFPQueuePropHeader):
@staticmethod
def register_queue_property(property_, len_):
def _register_property(cls):
def _register_queue_property(cls):
cls.cls_property = property_
cls.cls_len = len_
OFPQueueProp._QUEUE_PROP_PROPERTIES[cls.cls_property] = cls