blob: 038d45816fe3bd359dbd526b45ddb382d145f383 [file] [log] [blame]
Brian O'Connor58a73e32015-05-28 11:51:27 -07001#version 4
2
3struct of_calient_stats_request : of_experimenter_stats_request {
4 uint8_t version;
5 uint8_t type == 18;
6 uint16_t length;
7 uint32_t xid;
8 uint16_t stats_type == 0xffff;
9 enum ofp_stats_request_flags flags;
10 pad(4);
11 uint32_t experimenter == 0x0080F958;
12 uint32_t subtype == ?;
13};
14
15struct of_calient_stats_reply : of_experimenter_stats_reply {
16 uint8_t version;
17 uint8_t type == 19;
18 uint16_t length;
19 uint32_t xid;
20 uint16_t stats_type == 0xffff;
21 enum ofp_stats_reply_flags flags;
22 pad(4);
23 uint32_t experimenter == 0x0080F958;
24 uint32_t subtype == ?;
25};
26
27enum ofp_calient_ocs_alarm(wire_type=uint8_t, bitmask=True){
Aneesha Pailla682a8212016-02-03 11:30:55 -080028 OFPOCSALM_UNKNOWN=0, /* level is not relevant, or s/w bug */
29 OFPOCSALM_NORMAL = 1, /* Clear- no alarm */
30 OFPOCSALM_MINOR = 2, /* loss is greater than 5.25 */
31 OFPOCSALM_MAJOR = 3, /* loss is greater than 7.25 */
32 OFPOCSALM_CRITICAL = 4, /* loss is greater than 10.25 */
Brian O'Connor58a73e32015-05-28 11:51:27 -070033};