From 7f5bd07a8caf637bdd90974ff97a9a6c60b8c016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eder=20Le=C3=A3o=20Fernandes?= Date: Sat, 13 Apr 2013 04:34:51 +0900 Subject: [PATCH] of1.3: Add special group identifier values defined on OpenFlow 1.3.1 This patch add missing group special values of OpenFlow 1.3, added to the 1.3.1 version. It is useful to create a flow_mod message with an out_group with no > group restrictions and for flow_stats messages. Signed-off-by: FUJITA Tomonori --- ryu/ofproto/ofproto_v1_3.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ryu/ofproto/ofproto_v1_3.py b/ryu/ofproto/ofproto_v1_3.py index 4699aefd..04925ee6 100644 --- a/ryu/ofproto/ofproto_v1_3.py +++ b/ryu/ofproto/ofproto_v1_3.py @@ -416,6 +416,14 @@ OFPGC_ADD = 0 # New group. OFPGC_MODIFY = 1 # Modify all matching groups. OFPGC_DELETE = 2 # Delete all matching groups. +# enum ofp_group +OFPG_MAX = 0xffffff00 # Last usable group number. +#Fake groups +OFPG_ALL = 0xfffffffc # Represents all groups for group delete commands. +OFPG_ANY = 0xffffffff # Wildcard group used only for flow stats requests. + # Selects all flows regardless of group + # (including flows with no group). + # enum ofp_group_type OFPGT_ALL = 0 # All (multicast/broadcast) group. OFPGT_SELECT = 1 # Select group.