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"; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 8 | |
Luca Prete | ca974c8 | 2018-05-01 18:06:16 -0700 | [diff] [blame] | 9 | 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]; |
| 10 | required int32 voltha_port = 2 [help_text = "The Voltha API port. By default 8882", default=8882, null = False, db_index = False, blank = False]; |
| 11 | 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]; |
| 12 | 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]; |
| 13 | 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]; |
| 14 | required int32 onos_voltha_port = 6 [help_text = "The Voltha API port. By default 8181", default=8181, null = False, db_index = False, blank = False]; |
| 15 | 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]; |
| 16 | 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]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 17 | } |
| 18 | |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 19 | message OLTDevice (XOSBase){ |
| 20 | option verbose_name = "OLT Device"; |
| 21 | option description="Represents a physical OLT device"; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 22 | |
Matteo Scandolo | 4347381 | 2018-03-02 10:55:54 -0800 | [diff] [blame] | 23 | 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] | 24 | optional string name = 2 [help_text = "name of device", max_length = 254, null = True, db_index = False, blank = True, unique = True]; |
Matteo Scandolo | 88709c4 | 2018-06-20 16:59:38 -0700 | [diff] [blame^] | 25 | required string device_type = 3 [help_text = "Device Type", default = "openolt", max_length = 254, null = False, db_index = False, blank = False]; |
Matteo Scandolo | 2ed64b9 | 2018-06-18 10:32:56 -0700 | [diff] [blame] | 26 | optional string host = 4 [help_text = "Device IP", max_length = 254, null = True, db_index = False, blank = True]; |
Matteo Scandolo | 88709c4 | 2018-06-20 16:59:38 -0700 | [diff] [blame^] | 27 | optional int32 port = 5 [help_text = "Device port", null = True, db_index = False, blank = True]; |
| 28 | optional string mac_address = 6 [help_text = "Device mac address", null = True, db_index = False, blank = True]; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 29 | |
| 30 | optional string device_id = 10 [help_text = "Device ID", null = True, db_index = False, blank = False, feedback_state = True]; |
| 31 | optional string admin_state = 11 [help_text = "admin_state", null = True, db_index = False, blank = False, feedback_state = True]; |
| 32 | optional string oper_status = 12 [help_text = "oper_status", null = True, db_index = False, blank = False, feedback_state = True]; |
| 33 | 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] | 34 | 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] | 35 | |
Matteo Scandolo | 88709c4 | 2018-06-20 16:59:38 -0700 | [diff] [blame^] | 36 | required string uplink = 15 [help_text = "uplink port", null = False, db_index = False, blank = False]; |
Matteo Scandolo | 19466a0 | 2018-05-16 17:43:39 -0700 | [diff] [blame] | 37 | 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] | 38 | |
| 39 | optional string switch_datapath_id = 17 [help_text = "Fabric switch to which the OLT is connected", null = False, db_index = False, blank = False]; |
| 40 | optional string switch_port = 18 [help_text = "Fabric port to which the OLT is connected", null = False, db_index = False, blank = False]; |
| 41 | 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] | 42 | } |
| 43 | |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 44 | message PortBase (XOSBase){ |
| 45 | option gui_hidden = True; |
| 46 | |
| 47 | required string name = 1 [db_index = True, null = False, blank = False]; |
| 48 | required int32 port_no = 3 [help_text = "Port ID", null = False, db_index = False, blank = False]; |
| 49 | |
| 50 | optional string admin_state = 4 [help_text = "admin_state", null = True, db_index = False, blank = False, feedback_state = True]; |
| 51 | optional string oper_status = 5 [help_text = "oper_status", null = True, db_index = False, blank = False, feedback_state = True]; |
| 52 | } |
| 53 | |
| 54 | message PONPort (PortBase){ |
Matteo Scandolo | d8ed60e | 2018-06-18 17:00:57 -0700 | [diff] [blame] | 55 | option verbose_name = "OLT PON Port"; |
| 56 | option description="OLT Side PON Port"; |
Matteo Scandolo | 4a8b4d6 | 2018-03-06 17:18:46 -0800 | [diff] [blame] | 57 | |
Matteo Scandolo | 6be6ee9 | 2018-05-24 15:07:51 -0700 | [diff] [blame] | 58 | required manytoone olt_device->OLTDevice:pon_ports = 1 [db_index = True, null = False, blank = False]; |
| 59 | required int32 s_tag = 2 [help_text = "S Tag", null = False, db_index = False, blank = False]; |
| 60 | } |
| 61 | |
| 62 | message NNIPort (PortBase) { |
| 63 | option verbose_name = "NNI Port"; |
| 64 | required manytoone olt_device->OLTDevice:nni_ports = 1 [db_index = True, null = False, blank = False]; |
Andy Bavier | 03df22b | 2017-08-30 14:46:02 -0700 | [diff] [blame] | 65 | } |
Matteo Scandolo | e2cb8a4 | 2018-05-18 16:30:06 -0700 | [diff] [blame] | 66 | |
| 67 | message ONUDevice (XOSBase){ |
| 68 | option verbose_name = "ONU Device"; |
| 69 | option description = "Represents a physical ONU device"; |
| 70 | |
| 71 | required manytoone pon_port->PONPort:onu_devices = 1 [db_index = True, null = False, blank = False]; |
| 72 | required string serial_number = 2 [max_length = 254, null = False, db_index = False, blank = False, tosca_key=True, unique = True]; |
| 73 | required string vendor = 3 [max_length = 254, null = False, db_index = False, blank = False]; |
| 74 | required string device_type = 4 [help_text = "Device Type", default = "asfvolt16_olt", max_length = 254, null = False, db_index = False, blank = False]; |
| 75 | |
| 76 | optional string device_id = 5 [max_length = 254, null = True, db_index = False, blank = False, feedback_state = True]; |
Matteo Scandolo | e3daaa2 | 2018-06-19 14:36:31 -0700 | [diff] [blame] | 77 | optional string admin_state = 6 [choices = "(('DISABLED', 'DISABLED'), ('ENABLED', 'ENABLED'))", default="ENABLED", help_text = "admin_state", null = True, db_index = False, blank = False]; |
Matteo Scandolo | e2cb8a4 | 2018-05-18 16:30:06 -0700 | [diff] [blame] | 78 | optional string oper_status = 7 [help_text = "oper_status", null = True, db_index = False, blank = False, feedback_state = True]; |
| 79 | optional string connect_status = 8 [help_text = "connect_status", null = True, db_index = False, blank = False, feedback_state = True]; |
Matteo Scandolo | 2360fd9 | 2018-05-29 17:27:51 -0700 | [diff] [blame] | 80 | } |
| 81 | |
Matteo Scandolo | d8ed60e | 2018-06-18 17:00:57 -0700 | [diff] [blame] | 82 | message PONONUPort (PortBase) { |
| 83 | option verbose_name = "ONU PON Port"; |
| 84 | option description="ONU Side PON Port"; |
| 85 | required manytoone onu_device->ONUDevice:pononu_ports = 1 [db_index = True, null = False, blank = False]; |
| 86 | } |
| 87 | |
| 88 | message UNIPort (PortBase) { |
| 89 | option verbose_name = "UNI Port"; |
| 90 | required manytoone onu_device->ONUDevice:uni_ports = 1 [db_index = True, null = False, blank = False]; |
| 91 | } |
| 92 | |
Matteo Scandolo | 2360fd9 | 2018-05-29 17:27:51 -0700 | [diff] [blame] | 93 | message VOLTServiceInstance (ServiceInstance){ |
| 94 | option kind = "vOLT"; |
| 95 | option owner_class_name = "VOLTService"; |
| 96 | option verbose_name = "vOLT Service Instance"; |
| 97 | |
| 98 | optional string description = 1 [max_length = 254, null = True, db_index = False, blank = True]; |
| 99 | optional manytoone onu_device->ONUDevice:volt_service_instances = 1 [db_index = True, null = True, blank = False]; |
Matteo Scandolo | e2cb8a4 | 2018-05-18 16:30:06 -0700 | [diff] [blame] | 100 | } |