Merge into master from pull request #251:
BSN Image Desc Stats Req, Reply (https://github.com/floodlight/loxigen/pull/251)
diff --git a/c_gen/templates/loci_show.h b/c_gen/templates/loci_show.h
index 88fd029..909df71 100644
--- a/c_gen/templates/loci_show.h
+++ b/c_gen/templates/loci_show.h
@@ -407,5 +407,7 @@
#define LOCI_SHOW_u8_ttl(writer, cookie, val) LOCI_SHOW_u8(writer, cookie, val)
#define LOCI_SHOW_u32_vpn(writer, cookie, val) LOCI_SHOW_u32(writer, cookie, val)
#define LOCI_SHOW_u32_flags(writer, cookie, val) LOCI_SHOW_u32(writer, cookie, val)
+#define LOCI_SHOW_desc_str_image_checksum(write, cookie, val) LOCI_SHOW_desc_str(writer, cookie, val)
+#define LOCI_SHOW_desc_str_startup_config_checksum(write, cookie, val) LOCI_SHOW_desc_str(writer, cookie, val)
#endif /* _LOCI_SHOW_H_ */
diff --git a/c_gen/templates/of_type_maps.c b/c_gen/templates/of_type_maps.c
index 0b0bf15..13b879a 100644
--- a/c_gen/templates/of_type_maps.c
+++ b/c_gen/templates/of_type_maps.c
@@ -328,6 +328,7 @@
case 11: return OF_BSN_TABLE_CHECKSUM_STATS_REQUEST;
case 12: return OF_BSN_DEBUG_COUNTER_STATS_REQUEST;
case 13: return OF_BSN_DEBUG_COUNTER_DESC_STATS_REQUEST;
+ case 14: return OF_BSN_IMAGE_DESC_STATS_REQUEST;
}
}
return OF_OBJECT_INVALID;
@@ -352,6 +353,7 @@
case 11: return OF_BSN_TABLE_CHECKSUM_STATS_REPLY;
case 12: return OF_BSN_DEBUG_COUNTER_STATS_REPLY;
case 13: return OF_BSN_DEBUG_COUNTER_DESC_STATS_REPLY;
+ case 14: return OF_BSN_IMAGE_DESC_STATS_REPLY;
}
}
return OF_OBJECT_INVALID;
diff --git a/openflow_input/bsn_image b/openflow_input/bsn_image
new file mode 100644
index 0000000..05a1a97
--- /dev/null
+++ b/openflow_input/bsn_image
@@ -0,0 +1,57 @@
+// Copyright 2013, Big Switch Networks, Inc.
+//
+// LoxiGen is licensed under the Eclipse Public License,
+// version 1.0 (EPL), with the following special exception:
+//
+// LOXI Exception
+//
+// As a special exception to the terms of the EPL, you may
+// distribute libraries generated by LoxiGen (LoxiGen Libraries)
+// under the terms of your choice, provided that copyright and
+// licensing notices generated by LoxiGen are not altered or removed
+// from the LoxiGen Libraries and the notice provided below is (i)
+// included in the LoxiGen Libraries, if distributed in source code
+// form and (ii) included in any documentation for the LoxiGen
+// Libraries, if distributed in binary form.
+//
+// Notice: "Copyright 2013, Big Switch Networks, Inc.
+// This library was generated by the LoxiGen Compiler."
+//
+// You may not use this file except in compliance with the EPL or
+// LOXI Exception. You may obtain a copy of the EPL at:
+//
+// http://www.eclipse.org/legal/epl-v10.html
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an "AS
+// IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
+// express or implied. See the EPL for the specific language
+// governing permissions and limitations under the EPL.
+
+#version 4
+
+struct of_bsn_image_desc_stats_request : of_bsn_stats_request {
+ uint8_t version;
+ uint8_t type == 18;
+ uint16_t length;
+ uint32_t xid;
+ uint16_t stats_type == 0xffff;
+ enum ofp_stats_request_flags flags;
+ pad(4);
+ uint32_t experimenter == 0x5c16c7;
+ uint32_t subtype == 14;
+};
+
+struct of_bsn_image_desc_stats_reply : of_bsn_stats_reply {
+ uint8_t version;
+ uint8_t type == 19;
+ uint16_t length;
+ uint32_t xid;
+ uint16_t stats_type == 0xffff;
+ enum ofp_stats_reply_flags flags;
+ pad(4);
+ uint32_t experimenter == 0x5c16c7;
+ uint32_t subtype == 14;
+ of_desc_str_t image_checksum;
+ of_desc_str_t startup_config_checksum;
+};