blob: 2818e64423741125b2b468e4545f2d8df1b8812d [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){
28 OFPOCSALM_CLEAR = 1, /* Clear- no alarm */
29 OFPOCSALM_Minor = 2, /* loss is greater than 5.25 */
30 OFPOCSALM_Major = 3, /* loss is greater than 7.25 */
31 OFPOCSALM_Critical = 4, /* loss is greater than 10.25 */
32};
33