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