openflow_input: fix naming of group type in group desc stats entry
The C backend blacklists the name "type" so accessors aren't generated.
"group_type" works and is consistent with the other classes.
diff --git a/openflow_input/standard-1.1 b/openflow_input/standard-1.1
index 85f696f..f985b6d 100644
--- a/openflow_input/standard-1.1
+++ b/openflow_input/standard-1.1
@@ -1202,7 +1202,7 @@
struct of_group_desc_stats_entry {
uint16_t length;
- uint8_t type;
+ uint8_t group_type;
pad(1);
uint32_t group_id;
list(of_bucket_t) buckets;
diff --git a/openflow_input/standard-1.2 b/openflow_input/standard-1.2
index 72568fb..9032458 100644
--- a/openflow_input/standard-1.2
+++ b/openflow_input/standard-1.2
@@ -1171,7 +1171,7 @@
struct of_group_desc_stats_entry {
uint16_t length;
- uint8_t type;
+ uint8_t group_type;
pad(1);
uint32_t group_id;
list(of_bucket_t) buckets;
diff --git a/openflow_input/standard-1.3 b/openflow_input/standard-1.3
index 767594a..0d21443 100644
--- a/openflow_input/standard-1.3
+++ b/openflow_input/standard-1.3
@@ -1382,7 +1382,7 @@
struct of_group_desc_stats_entry {
uint16_t length;
- uint8_t type;
+ uint8_t group_type;
pad(1);
uint32_t group_id;
list(of_bucket_t) buckets;
diff --git a/test_data/of13/group_desc_stats_reply.data b/test_data/of13/group_desc_stats_reply.data
index 34c0d50..5e95a67 100644
--- a/test_data/of13/group_desc_stats_reply.data
+++ b/test_data/of13/group_desc_stats_reply.data
@@ -49,7 +49,7 @@
flags=0,
entries=[
ofp.group_desc_stats_entry(
- type=ofp.OFPGT_FF,
+ group_type=ofp.OFPGT_FF,
group_id=1,
buckets=[
ofp.bucket(
@@ -66,4 +66,4 @@
actions=[
ofp.action.output(port=5, max_len=0),
ofp.action.output(port=6, max_len=0)])]),
- ofp.group_desc_stats_entry(type=ofp.OFPGT_FF, group_id=2, buckets=[])])
+ ofp.group_desc_stats_entry(group_type=ofp.OFPGT_FF, group_id=2, buckets=[])])