Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 1 | option name = "volt"; |
Matteo Scandolo | bfc3133 | 2018-03-29 09:06:52 -0700 | [diff] [blame] | 2 | option app_label = "volt"; |
Matteo Scandolo | e2cb8a4 | 2018-05-18 16:30:06 -0700 | [diff] [blame] | 3 | option legacy="True"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 4 | |
| 5 | message VOLTService (Service){ |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 6 | option verbose_name = "vOLT Service"; |
| 7 | option kind = "vOLT"; |
Scott Baker | 2108e75 | 2019-01-17 07:00:32 -0800 | [diff] [blame] | 8 | option description = "OLT Access Service"; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 9 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 10 | required string voltha_url = 1 [ |
| 11 | help_text = "The Voltha API address. By default voltha.voltha.svc.cluster.local", |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 12 | default = "voltha.voltha.svc.cluster.local", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 13 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 14 | required int32 voltha_port = 2 [ |
| 15 | help_text = "The Voltha API port. By default 8882", |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 16 | default = 8882]; |
| 17 | required string voltha_user = 3 [ |
| 18 | help_text = "The Voltha username. By default voltha", |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 19 | default = "voltha", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 20 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 21 | required string voltha_pass = 4 [ |
| 22 | help_text = "The Voltha password. By default admin", |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 23 | default = "admin", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 24 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 25 | required string onos_voltha_url = 5 [ |
| 26 | help_text = "The ONOS Voltha address. By default onos-voltha-ui.voltha.svc.cluster.local", |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 27 | default = "onos-voltha-ui.voltha.svc.cluster.local", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 28 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 29 | required int32 onos_voltha_port = 6 [ |
| 30 | help_text = "The Voltha API port. By default 8181", |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 31 | default = 8181]; |
| 32 | required string onos_voltha_user = 7 [ |
| 33 | help_text = "The ONOS Voltha username. By default sdn", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 34 | max_length = 256, |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 35 | default = "onos"]; |
| 36 | required string onos_voltha_pass = 8 [ |
| 37 | help_text = "The ONOS Voltha password. By default rocks", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 38 | max_length = 256, |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 39 | default = "rocks"]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 40 | } |
| 41 | |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 42 | message OLTDevice (XOSBase){ |
| 43 | option verbose_name = "OLT Device"; |
| 44 | option description="Represents a physical OLT device"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 45 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 46 | required manytoone volt_service->VOLTService:volt_devices = 1:1001 [ |
| 47 | help_text = "VOLTService that owns this OLT", |
| 48 | db_index = True]; |
| 49 | optional string name = 2 [ |
| 50 | help_text = "Human-readable name of device", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 51 | max_length = 256, |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 52 | unique = True]; |
| 53 | required string device_type = 3 [ |
| 54 | help_text = "Phyiscal Device Type", |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 55 | default = "openolt", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 56 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 57 | optional string host = 4 [ |
| 58 | help_text = "IP Address of physical OLT Device", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 59 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 60 | optional int32 port = 5 [ |
| 61 | help_text = "Port Number of physical OLT Device", |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 62 | unique_with = "host"]; |
| 63 | optional string mac_address = 6 [ |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 64 | help_text = "MAC address of physical OLT Device", |
| 65 | max_length = 17]; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 66 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 67 | optional string serial_number = 9 [ |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 68 | help_text = "Serial Number", |
| 69 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 70 | optional string device_id = 10 [ |
| 71 | help_text = "Voltha Device ID", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 72 | feedback_state = True, |
| 73 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 74 | optional string admin_state = 11 [ |
| 75 | help_text = "admin state, whether OLT should be enabled", |
| 76 | choices = "(('DISABLED', 'DISABLED'), ('ENABLED', 'ENABLED'))", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 77 | default = "ENABLED", |
| 78 | max_length = 32]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 79 | optional string oper_status = 12 [ |
| 80 | help_text = "operational status, whether OLT is active", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 81 | feedback_state = True, |
| 82 | max_length = 256]; |
Scott Baker | 1268773 | 2019-03-19 15:40:57 -0700 | [diff] [blame] | 83 | optional string link_status = 21 [ |
| 84 | help_text = "connectivity status, whether OLT has connectivity to agg switch", |
| 85 | choices = "(('up', 'up'), ('down', 'down'))", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 86 | feedback_state = True, |
| 87 | max_length = 32]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 88 | optional string of_id = 13 [ |
| 89 | help_text = "Logical device openflow id", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 90 | feedback_state = True, |
| 91 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 92 | optional string dp_id = 14 [ |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 93 | help_text = "Logical device datapath id", |
| 94 | max_length = 256]; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 95 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 96 | required string uplink = 15 [ |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 97 | help_text = "uplink port, exposed via sadis", |
| 98 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 99 | required string driver = 16 [ |
| 100 | help_text = "DEPRECATED", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 101 | default = "voltha", |
| 102 | max_length = 32]; // Used to be sent to ONOS, now unused. |
Matteo Scandolo | d3c768d | 2018-04-11 13:38:49 -0700 | [diff] [blame] | 103 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 104 | optional string switch_datapath_id = 17 [ |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 105 | help_text = "Fabric switch to which the OLT is connected", |
| 106 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 107 | optional string switch_port = 18 [ |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 108 | help_text = "Fabric port to which the OLT is connected", |
| 109 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 110 | optional string outer_tpid = 19 [ |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 111 | help_text = "Outer VLAN id field EtherType", |
| 112 | max_length = 256]; |
Matteo Scandolo | 610c11d | 2018-08-31 07:33:43 -0700 | [diff] [blame] | 113 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 114 | optional string nas_id = 20 [ |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 115 | help_text = "Authentication ID (propagated to the free-radius server via sadis)", |
| 116 | max_length = 256]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 117 | } |
| 118 | |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 119 | message PortBase (XOSBase){ |
| 120 | option gui_hidden = True; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 121 | option description = "Base class for Port objects"; |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 122 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 123 | required string name = 1 [ |
| 124 | help_text = "Human-readable name of port", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 125 | db_index = True, |
| 126 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 127 | required int32 port_no = 3 [ |
Scott Baker | 3f4816f | 2019-03-12 15:06:01 -0700 | [diff] [blame] | 128 | help_text = "Port Number"]; |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 129 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 130 | optional string admin_state = 4 [ |
| 131 | help_text = "admin state, whether port should be enabled", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 132 | // TODO: Should specify "choices" |
| 133 | feedback_state = True, |
| 134 | max_length = 32]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 135 | optional string oper_status = 5 [ |
| 136 | help_text = "operational status, whether port is active", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 137 | // TODO: Should specify "choices" |
| 138 | feedback_state = True, |
| 139 | max_length = 32]; |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 140 | } |
| 141 | |
| 142 | message PONPort (PortBase){ |
Matteo Scandolo | 8091294 | 2018-07-25 20:51:30 -0700 | [diff] [blame] | 143 | option verbose_name = "PON Port"; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 144 | option description = "PON Port"; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 145 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 146 | required manytoone olt_device->OLTDevice:pon_ports = 1:1001 [ |
| 147 | help_text = "OLTDevice that owns this PONPort", |
| 148 | db_index = True]; |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 149 | } |
| 150 | |
| 151 | message NNIPort (PortBase) { |
| 152 | option verbose_name = "NNI Port"; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 153 | option description = "NNI Port"; |
| 154 | |
| 155 | required manytoone olt_device->OLTDevice:nni_ports = 1:1002 [ |
| 156 | help_text = "OLTDevice that owns this NNIPort", |
| 157 | db_index = True]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 158 | } |
Matteo Scandolo | e2cb8a4 | 2018-05-18 16:30:06 -0700 | [diff] [blame] | 159 | |
| 160 | message ONUDevice (XOSBase){ |
| 161 | option verbose_name = "ONU Device"; |
| 162 | option description = "Represents a physical ONU device"; |
| 163 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 164 | required manytoone pon_port->PONPort:onu_devices = 1:1001 [ |
| 165 | help_text = "PONPort that connects this ONUDevice to an OLTDevice", |
| 166 | db_index = True]; |
| 167 | required string serial_number = 2 [ |
| 168 | help_text = "Serial number of ONU Device", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 169 | max_length = 256, |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 170 | tosca_key=True, |
| 171 | unique = True]; |
| 172 | required string vendor = 3 [ |
| 173 | help_text = "Vendor of ONU Device", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 174 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 175 | required string device_type = 4 [ |
| 176 | help_text = "Device Type", |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 177 | default = "asfvolt16_olt", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 178 | max_length = 256]; |
Matteo Scandolo | e2cb8a4 | 2018-05-18 16:30:06 -0700 | [diff] [blame] | 179 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 180 | optional string device_id = 5 [ |
| 181 | help_text = "Voltha Device ID", |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 182 | feedback_state = True, |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 183 | max_length = 256]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 184 | optional string admin_state = 6 [ |
| 185 | help_text = "admin state, whether port should be enabled", |
Andy Bavier | cd94019 | 2019-05-15 12:59:35 -0700 | [diff] [blame^] | 186 | choices = "(('DISABLED', 'DISABLED'), ('ENABLED', 'ENABLED'), ('ADMIN_DISABLED', 'ADMIN_DISABLED'))", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 187 | default = "ENABLED", |
| 188 | max_length = 32]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 189 | optional string oper_status = 7 [ |
| 190 | help_text = "oper_status", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 191 | // TODO: Should add "choices" |
| 192 | feedback_state = True, |
| 193 | max_length = 32]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 194 | optional string connect_status = 8 [ |
| 195 | help_text = "operational status, whether port is active", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 196 | feedback_state = True, |
| 197 | max_length = 32]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 198 | optional string reason = 9 [ |
| 199 | help_text = "ONU device configuration state machine status message", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 200 | feedback_state = True, |
| 201 | text = True]; |
Matteo Scandolo | 2360fd9 | 2018-05-29 17:27:51 -0700 | [diff] [blame] | 202 | } |
| 203 | |
Matteo Scandolo | d8ed60e | 2018-06-18 17:00:57 -0700 | [diff] [blame] | 204 | message PONONUPort (PortBase) { |
Matteo Scandolo | 8091294 | 2018-07-25 20:51:30 -0700 | [diff] [blame] | 205 | option verbose_name = "ANI Port"; |
Scott Baker | 2108e75 | 2019-01-17 07:00:32 -0800 | [diff] [blame] | 206 | option description="Access Node Interface Port"; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 207 | required manytoone onu_device->ONUDevice:pononu_ports = 1:1001 [ |
| 208 | help_text = "ONUDevice that owns this PONONUPort", |
| 209 | db_index = True]; |
Matteo Scandolo | d8ed60e | 2018-06-18 17:00:57 -0700 | [diff] [blame] | 210 | } |
| 211 | |
| 212 | message UNIPort (PortBase) { |
| 213 | option verbose_name = "UNI Port"; |
Scott Baker | 2108e75 | 2019-01-17 07:00:32 -0800 | [diff] [blame] | 214 | option description = "User Network Interface Port"; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 215 | required manytoone onu_device->ONUDevice:uni_ports = 1:1002 [ |
| 216 | help_text = "ONUDevice that owns this UNIPort", |
| 217 | db_index = True]; |
Matteo Scandolo | d8ed60e | 2018-06-18 17:00:57 -0700 | [diff] [blame] | 218 | } |
| 219 | |
Matteo Scandolo | 2360fd9 | 2018-05-29 17:27:51 -0700 | [diff] [blame] | 220 | message VOLTServiceInstance (ServiceInstance){ |
| 221 | option kind = "vOLT"; |
| 222 | option owner_class_name = "VOLTService"; |
| 223 | option verbose_name = "vOLT Service Instance"; |
Scott Baker | 2108e75 | 2019-01-17 07:00:32 -0800 | [diff] [blame] | 224 | option description = "Represents subscriber tenancy in the VOLT Service"; |
Matteo Scandolo | 2360fd9 | 2018-05-29 17:27:51 -0700 | [diff] [blame] | 225 | |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 226 | optional string description = 1 [ |
| 227 | help_text = "Human-readable description", |
Scott Baker | a108b9c | 2019-04-09 14:13:44 -0700 | [diff] [blame] | 228 | text = True]; |
Scott Baker | 1e04327 | 2019-01-24 08:33:15 -0800 | [diff] [blame] | 229 | optional manytoone onu_device->ONUDevice:volt_service_instances = 2:1003 [ |
| 230 | help_text = "ONUDevice that belongs to this Subscriber chain", |
| 231 | db_index = True]; |
Scott Baker | 6ff7a4a | 2018-10-01 12:19:49 -0700 | [diff] [blame] | 232 | } |
Hardik Windlass | da0d6c4 | 2019-05-13 16:00:01 +0000 | [diff] [blame] | 233 | |
| 234 | message TechnologyProfile (XOSBase) { |
| 235 | option verbose_name = "Technology Profile"; |
| 236 | option description = "The Technology Profile that is utilized by VOLTHA"; |
| 237 | |
| 238 | required string technology = 1 [ |
| 239 | help_text = "The technology being utilized by the adaptor", |
| 240 | db_index = True, |
| 241 | max_length = 16]; |
| 242 | required int32 profile_id = 2 [ |
| 243 | help_text = "The numeric id of the profile", |
| 244 | db_index = True, |
| 245 | min_value = 64, |
| 246 | max_value = 255]; |
| 247 | required string profile_value = 3 [ |
| 248 | help_text = "The technology profile value in JSON format", |
| 249 | max_length = 4096]; |
| 250 | } |