Brian O'Connor | 58a73e3 | 2015-05-28 11:51:27 -0700 | [diff] [blame] | 1 | #version 4 |
| 2 | |
| 3 | struct 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 Leenheer | 88c0bcb | 2015-07-24 15:49:19 -0700 | [diff] [blame] | 18 | /* in_admin_status,in_oper_status,in_oper_capability,in_alarm,in_circuit_id not present in the backkend */ |
Brian O'Connor | 58a73e3 | 2015-05-28 11:51:27 -0700 | [diff] [blame] | 19 | struct 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 Leenheer | 88c0bcb | 2015-07-24 15:49:19 -0700 | [diff] [blame] | 27 | pad(4); |
Brian O'Connor | 58a73e3 | 2015-05-28 11:51:27 -0700 | [diff] [blame] | 28 | 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 | |
| 41 | struct 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'Connor | 58a73e3 | 2015-05-28 11:51:27 -0700 | [diff] [blame] | 51 | list(of_calient_port_stats_entry_t) entries; |
| 52 | }; |
| 53 | |
| 54 | |