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"; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 7 | |
Luca Prete | ca974c8 | 2018-05-01 18:06:16 -0700 | [diff] [blame] | 8 | required string voltha_url = 1 [help_text = "The Voltha API address. By default voltha.voltha.svc.cluster.local", default = "voltha.voltha.svc.cluster.local", max_length = 254, null = False, db_index = False, blank = False]; |
| 9 | required int32 voltha_port = 2 [help_text = "The Voltha API port. By default 8882", default=8882, null = False, db_index = False, blank = False]; |
| 10 | required string voltha_user = 3 [help_text = "The Voltha username. By default voltha", default="voltha", max_length = 254, null = False, db_index = False, blank = False]; |
| 11 | required string voltha_pass = 4 [help_text = "The Voltha password. By default admin", default="admin", max_length = 254, null = False, db_index = False, blank = False]; |
| 12 | required string onos_voltha_url = 5 [help_text = "The ONOS Voltha address. By default onos-voltha-ui.voltha.svc.cluster.local", default="onos-voltha-ui.voltha.svc.cluster.local", max_length = 254, null = False, db_index = False, blank = False]; |
| 13 | required int32 onos_voltha_port = 6 [help_text = "The Voltha API port. By default 8181", default=8181, null = False, db_index = False, blank = False]; |
| 14 | required string onos_voltha_user = 7 [help_text = "The ONOS Voltha username. By default sdn", max_length = 254, default="onos", null = True, db_index = False, blank = False]; |
| 15 | required string onos_voltha_pass = 8 [help_text = "The ONOS Voltha password. By default rocks", max_length = 254, default="rocks", null = True, db_index = False, blank = False]; |
| 16 | required string onu_provisioning = 9 [help_text = "If to automatically discover and provision the ONU or not", default = "allow_all", choices = "(('allow_all', 'Allow All'), ('pre_provisioned', 'Pre-provisione'), ('oss', 'OSS'))", null = False, db_index = False, blank = False]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 17 | } |
| 18 | |
Matteo Scandolo | d245801 | 2018-03-01 13:40:36 -0800 | [diff] [blame] | 19 | message VOLTServiceInstance (ServiceInstance){ |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 20 | option kind = "vOLT"; |
| 21 | option owner_class_name = "VOLTService"; |
| 22 | option verbose_name = "vOLT Service Instance"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 23 | |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 24 | optional string description = 1 [max_length = 254, null = True, db_index = False, blank = True]; |
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"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 30 | |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 31 | required manytoone volt_service->VOLTService:volt_devices = 1 [db_index = True, null = False, blank = False]; |
Matteo Scandolo | 2c14493 | 2018-05-04 14:06:24 -0700 | [diff] [blame] | 32 | optional string name = 2 [help_text = "name of device", max_length = 254, null = True, db_index = False, blank = True, unique = True]; |
Matteo Scandolo | 3352341 | 2018-04-12 15:21:13 -0700 | [diff] [blame] | 33 | required string device_type = 3 [help_text = "Device Type", default = "asfvolt16_olt", max_length = 254, null = False, db_index = False, blank = False, tosca_key=True]; |
| 34 | required string host = 4 [help_text = "Host", max_length = 254, null = False, db_index = False, blank = False, tosca_key=True]; |
| 35 | required int32 port = 5 [help_text = "Fabric port", null = False, db_index = False, blank = False, tosca_key=True]; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 36 | |
| 37 | optional string device_id = 10 [help_text = "Device ID", null = True, db_index = False, blank = False, feedback_state = True]; |
| 38 | optional string admin_state = 11 [help_text = "admin_state", null = True, db_index = False, blank = False, feedback_state = True]; |
| 39 | optional string oper_status = 12 [help_text = "oper_status", null = True, db_index = False, blank = False, feedback_state = True]; |
| 40 | optional string of_id = 13 [help_text = "openflow id", null = True, db_index = False, blank = False, feedback_state = True]; |
Matteo Scandolo | f6337eb | 2018-04-05 15:58:37 -0700 | [diff] [blame] | 41 | optional string dp_id = 14 [help_text = "datapath id", null = True, db_index = False, blank = False, feedback_state = True]; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 42 | |
Matteo Scandolo | f6337eb | 2018-04-05 15:58:37 -0700 | [diff] [blame] | 43 | required string uplink = 15 [default="129", help_text = "uplink port", null = False, db_index = False, blank = False]; |
Matteo Scandolo | 19466a0 | 2018-05-16 17:43:39 -0700 | [diff] [blame] | 44 | required string driver = 16 [default="voltha", help_text = "Olt driver", null = True, db_index = False, blank = False]; |
Matteo Scandolo | d3c768d | 2018-04-11 13:38:49 -0700 | [diff] [blame] | 45 | |
| 46 | optional string switch_datapath_id = 17 [help_text = "Fabric switch to which the OLT is connected", null = False, db_index = False, blank = False]; |
| 47 | optional string switch_port = 18 [help_text = "Fabric port to which the OLT is connected", null = False, db_index = False, blank = False]; |
| 48 | optional string outer_tpid = 19 [help_text = "Outer VLAN id field EtherType", null = False, db_index = False, blank = False]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 49 | } |
| 50 | |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 51 | message ONUDevice (XOSBase){ |
| 52 | option verbose_name = "ONU Device"; |
| 53 | option description = "Represents a physical ONU device"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 54 | |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 55 | required manytoone volt_device->OLTDevice:onu_devices = 1 [db_index = True, null = False, blank = False]; |
| 56 | required string serial_number = 1 [max_length = 254, null = False, db_index = False, blank = False]; |
| 57 | } |
| 58 | |
| 59 | message PONPort (XOSBase){ |
| 60 | option verbose_name = "PON Port"; |
| 61 | |
Scott Baker | 01b0621 | 2018-04-27 13:23:38 -0700 | [diff] [blame] | 62 | required string name = 1 [db_index = True, null = False, blank = False, unique_with="olt_device"]; |
Matteo Scandolo | b8621cd | 2018-04-04 17:12:37 -0700 | [diff] [blame] | 63 | required manytoone olt_device->OLTDevice:ports = 2 [db_index = True, null = False, blank = False]; |
| 64 | required string port_id = 3 [help_text = "Port ID", max_length = 254, null = False, db_index = False, blank = False]; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 65 | required int32 s_tag = 4 [help_text = "S Tag", null = False, db_index = False, blank = False]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 66 | } |