summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ryu/ofproto/ofproto_v1_5_parser.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/ryu/ofproto/ofproto_v1_5_parser.py b/ryu/ofproto/ofproto_v1_5_parser.py
index ba593b8e..defbe8eb 100644
--- a/ryu/ofproto/ofproto_v1_5_parser.py
+++ b/ryu/ofproto/ofproto_v1_5_parser.py
@@ -5228,6 +5228,35 @@ class OFPRequestForward(MsgInMsgBase):
self.buf += self.request.buf
+class OFPControllerStatusProp(OFPPropBase):
+ _TYPES = {}
+
+
+@OFPControllerStatusProp.register_type(ofproto.OFPCSPT_URI)
+class OFPControllerStatusPropUri(OFPControllerStatusProp):
+ _TYPE = {
+ 'ascii': [
+ 'uri',
+ ]
+ }
+
+ def __init__(self, type_=None, length=None, uri=None):
+ super(OFPControllerStatusPropUri, self).__init__(type_, length)
+ self.uri = uri
+
+ @classmethod
+ def parser(cls, buf):
+ rest = cls.get_rest(buf)
+ pack_str = '!%ds' % len(rest)
+ (uri, ) = struct.unpack_from(pack_str, rest, 0)
+ return cls(uri=uri)
+
+
+@OFPControllerStatusProp.register_type(ofproto.OFPCSPT_EXPERIMENTER)
+class OFPControllerStatusPropExperimenter(OFPPropCommonExperimenter4ByteData):
+ pass
+
+
@_set_msg_type(ofproto.OFPT_PACKET_OUT)
class OFPPacketOut(MsgBase):
"""