Brian O'Connor | 58a73e3 | 2015-05-28 11:51:27 -0700 | [diff] [blame] | 1 | #version 4 |
| 2 | |
| 3 | struct of_calient_port_desc_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 == 1; |
| 13 | }; |
| 14 | |
| 15 | |
| 16 | struct of_calient_port_desc_prop { |
| 17 | uint16_t type == ?; /* One of OFPPDPT_*. */ |
| 18 | uint16_t length; /* Length in bytes of this property. */ |
| 19 | }; |
| 20 | |
| 21 | |
| 22 | enum ofp_calient_optical_port_admin_state(wire_type=uint8_t, bitmask=True){ |
| 23 | OFPAS_IN_SERVICE = 1, /*Circuit Port in Service*/ |
| 24 | OFPAS_OUT_OF_SERVICE = 2, /*Circuit Port out of Service*/ |
| 25 | OFPAS_OOS_NP = 3 /*Circuit Port out of Service, not provisioned*/ |
| 26 | }; |
| 27 | |
| 28 | enum ofp_calient_optical_port_oper_state(wire_type=uint8_t, bitmask=True){ |
| 29 | OFPOS_IN_SERVICE = 8, /*Circuit Port in Service*/ |
| 30 | OFPOS_OUT_OF_SERVICE = 16 /*Circuit Port out of Service*/ |
| 31 | }; |
| 32 | |
| 33 | enum ofp_calient_optical_port_oper_capability(wire_type=uint8_t, bitmask=True){ |
| 34 | OFPCS_NoHardware = 1, /* when port is not in connection */ |
| 35 | OFPCS_Ok = 2, /* port is in Connection which is made successfully */ |
| 36 | OFPCS_Failed = 3, /* when port is in Connection which is Failed */ |
| 37 | OFPCS_Initializing = 4,/* when port is in Connection which is being made */ |
| 38 | }; |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | struct of_calient_port_desc_prop_optical : of_calient_port_desc_prop{ |
| 45 | uint16_t type == 2; /* OFPPDPT_OPTICAL_CIRCUIT */ |
| 46 | uint16_t length; /* Length in bytes of this property. */ |
| 47 | enum ofp_calient_optical_port_admin_state in_admin_status; |
| 48 | enum ofp_calient_optical_port_oper_state in_oper_status; |
Marc De Leenheer | 88c0bcb | 2015-07-24 15:49:19 -0700 | [diff] [blame^] | 49 | enum ofp_calient_optical_port_oper_capability in_oper_capability;/* currently not present in backend */ |
Brian O'Connor | 58a73e3 | 2015-05-28 11:51:27 -0700 | [diff] [blame] | 50 | enum ofp_calient_optical_port_admin_state out_admin_status; |
| 51 | enum ofp_calient_optical_port_oper_state out_oper_status; |
| 52 | enum ofp_calient_optical_port_oper_capability out_oper_capability; |
| 53 | of_str6_t inport_power; /* Input Port Power */ |
| 54 | of_str6_t outport_power; /* Output Port Power */ |
| 55 | pad(2); |
| 56 | uint64_t in_peer_node; /* Peer node datapath id connected to the input optical port */ |
| 57 | uint64_t out_peer_node; /* Peer node datapath id connected to the output optical port */ |
| 58 | uint16_t in_peer_port; /* Peer port number connected to the input optical port */ |
| 59 | uint16_t out_peer_port; /* Peer port number connected to the output optical port */ |
| 60 | pad(4); |
| 61 | of_str32_t in_circuit_id; /* Circuit Id associated with the input port */ |
| 62 | of_str32_t out_circuit_id; /* Circuit id associated with the output port */ |
| 63 | of_str64_t in_alias; /* Alias(name) for the input port */ |
| 64 | of_str64_t out_alias; /* Alias(name) for the output port */ |
| 65 | }; |
| 66 | |
| 67 | struct of_calient_port_desc_stats_entry { |
| 68 | uint16_t length; |
| 69 | pad(2); |
| 70 | of_port_no_t port_no; |
| 71 | of_mac_addr_t hw_addr; |
| 72 | pad(2); |
| 73 | of_port_name_t name; /* Not used.NULL */ |
| 74 | uint32_t config; /* Not used. Always 0. */ |
| 75 | uint32_t state; /* Not used. Always 0. */ |
| 76 | list(of_calient_port_desc_prop_t) properties; |
| 77 | }; |
| 78 | |
| 79 | struct of_calient_port_desc_stats_reply : of_calient_stats_reply { |
| 80 | uint8_t version; |
| 81 | uint8_t type == 19; |
| 82 | uint16_t length; |
| 83 | uint32_t xid; |
| 84 | uint16_t stats_type == 0xffff; |
| 85 | enum ofp_stats_reply_flags flags; |
| 86 | pad(4); |
| 87 | uint32_t experimenter == 0x0080F958; |
| 88 | uint32_t subtype == 1; |
| 89 | list(of_calient_port_desc_stats_entry_t)port_desc; |
| 90 | }; |
| 91 | |
| 92 | |
Marc De Leenheer | 88c0bcb | 2015-07-24 15:49:19 -0700 | [diff] [blame^] | 93 | struct of_calient_port_status : of_experimenter{ |
| 94 | uint8_t version; |
| 95 | uint8_t type == 4; |
| 96 | uint16_t length; |
| 97 | uint32_t xid; |
| 98 | uint32_t experimenter == 0x0080F958; |
| 99 | uint32_t subtype == 1; |
| 100 | enum ofp_port_reason reason; |
| 101 | pad(7); |
| 102 | of_calient_port_desc_stats_entry_t desc; |
| 103 | }; |
| 104 | |