blob: 6a951b80ffb60ff960c880d652d3097c87ed1cb7 [file] [log] [blame]
Brian O'Connor58a73e32015-05-28 11:51:27 -07001#version 4
2
3struct of_calient_port_stats_request : of_calient_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 == 3;
13 of_port_no_t port_no;
14 pad(4);
15};
16
17
Marc De Leenheer88c0bcb2015-07-24 15:49:19 -070018/* in_admin_status,in_oper_status,in_oper_capability,in_alarm,in_circuit_id not present in the backkend */
Brian O'Connor58a73e32015-05-28 11:51:27 -070019struct of_calient_port_stats_entry {
20 uint16_t length;
21 pad(2);
22 of_port_no_t port_no;
23 enum ofp_calient_optical_port_admin_state in_admin_status; /* Input port admin status */
24 enum ofp_calient_optical_port_oper_state in_oper_status; /* Input port operational status */
25 enum ofp_calient_optical_port_oper_capability in_oper_capability; /* Input port operational capability */
26 enum ofp_calient_ocs_alarm in_alarm;/* Alarm on Input port */
Marc De Leenheer88c0bcb2015-07-24 15:49:19 -070027 pad(4);
Brian O'Connor58a73e32015-05-28 11:51:27 -070028 of_str6_t inport_power; /* Input port power */
29 pad(2);
30 of_str6_t outport_power; /* Output port power */
31 pad(2);
32 enum ofp_calient_optical_port_admin_state out_admin_status; /* Output port Admin status */
33 enum ofp_calient_optical_port_oper_state out_oper_status; /* Output port operational status */
34 enum ofp_calient_optical_port_oper_capability out_oper_capability;/* Output port operational capability */
35 enum ofp_calient_ocs_alarm out_alarm;/* Alarm on Output port */
36 pad(4);
37 of_str32_t in_circuit_id; /* Circuit id associated with the input port */
38 of_str32_t out_circuit_id; /* Circuit id associated with the output port */
39};
40
41struct of_calient_port_stats_reply : of_calient_stats_reply {
42 uint8_t version;
43 uint8_t type == 19;
44 uint16_t length;
45 uint32_t xid;
46 uint16_t stats_type == 0xffff;
47 enum ofp_stats_reply_flags flags;
48 pad(4);
49 uint32_t experimenter == 0x0080F958;
50 uint32_t subtype == 3;
Brian O'Connor58a73e32015-05-28 11:51:27 -070051 list(of_calient_port_stats_entry_t) entries;
52};
53
54