Signed-off-by: FUJITA Tomonori <[email protected]>
---
ryu/ofproto/ofproto_v1_0_parser.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ryu/ofproto/ofproto_v1_0_parser.py
b/ryu/ofproto/ofproto_v1_0_parser.py
index a04479c..b3a7cb4 100644
--- a/ryu/ofproto/ofproto_v1_0_parser.py
+++ b/ryu/ofproto/ofproto_v1_0_parser.py
@@ -1062,6 +1062,18 @@ class NXTFlowMod(NXTRequest):
offset += a.len
+class NXTRoleRequest(NXTRequest):
+ def __init__(self, datapath, role):
+ super(NXTRoleRequest, self).__init__(
+ datapath, ofproto_v1_0.NXT_ROLE_REQUEST)
+ self.role = role
+
+ def _serialize_body(self):
+ self.serialize_header()
+ msg_pack_into(ofproto_v1_0.NX_ROLE_PACK_STR,
+ self.buf, ofproto_v1_0.NICIRA_HEADER_SIZE, self.role)
+
+
class NXTFlowModTableId(NXTRequest):
def __init__(self, datapath, set_):
super(NXTFlowModTableId, self).__init__(
--
1.7.4.4
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel