Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 1 | option name = "att-workflow-driver"; |
| 2 | option app_label = "att-workflow-driver"; |
| 3 | |
| 4 | message AttWorkflowDriverService (Service){ |
| 5 | option verbose_name = "AttWorkflowDriver Service"; |
Matteo Scandolo | ea52909 | 2018-09-11 16:36:39 -0700 | [diff] [blame] | 6 | option kind = "control"; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 7 | } |
| 8 | |
| 9 | message AttWorkflowDriverServiceInstance (ServiceInstance){ |
| 10 | option owner_class_name = "AttWorkflowDriverService"; |
| 11 | option verbose_name = "AttWorkflowDriver Service Instance"; |
| 12 | |
Matteo Scandolo | 53da44c | 2018-08-14 16:04:18 -0700 | [diff] [blame] | 13 | required string serial_number = 2 [max_length = 254, db_index = False, tosca_key=True, unique = True]; |
| 14 | required string authentication_state = 3 [default = "AWAITING", choices = "(('AWAITING', 'Awaiting'), ('STARTED', 'Started'), ('REQUESTED', 'Requested'), ('APPROVED', 'Approved'), ('DENIED', 'Denied'), )", max_length = 50, db_index = False]; |
| 15 | required string of_dpid = 4 [max_length = 254, db_index = False]; |
| 16 | required int32 uni_port_id = 5 [db_index = False]; |
Matteo Scandolo | e8c33d6 | 2018-08-16 14:37:24 -0700 | [diff] [blame] | 17 | required string onu_state = 6 [max_length = 254, db_index = False, default = "AWAITING", choices = "(('AWAITING', 'Awaiting'), ('ENABLED', 'Enabled'), ('DISABLED', 'Disabled'))"]; |
Matteo Scandolo | ea52909 | 2018-09-11 16:36:39 -0700 | [diff] [blame] | 18 | optional string status_message = 7 [max_length = 254, db_index = False, default = ""]; |
Andy Bavier | 15310cf | 2018-12-13 14:16:49 -0700 | [diff] [blame] | 19 | required string dhcp_state = 8 [max_length = 254, db_index = False, default = "AWAITING", choices = "(('AWAITING', 'Awaiting'), ('DHCPDISCOVER', 'DHCPDISCOVER'), ('DHCPACK', 'DHCPACK'), ('DHCPREQUEST', 'DHCPREQUEST'))"]; |
Matteo Scandolo | de8cfa8 | 2018-10-16 13:49:05 -0700 | [diff] [blame] | 20 | optional string ip_address = 9 [max_length = 20, db_index = False]; |
| 21 | optional string mac_address = 10 [max_length = 20, db_index = False]; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | message AttWorkflowDriverWhiteListEntry (XOSBase) { |
Matteo Scandolo | 53da44c | 2018-08-14 16:04:18 -0700 | [diff] [blame] | 25 | option verbose_name = "ONU Whitelist"; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 26 | option plural = "attworkflowdriverwhitelistentries"; |
| 27 | |
Scott Baker | 3e7380c | 2018-10-26 16:22:38 -0700 | [diff] [blame] | 28 | required manytoone owner->AttWorkflowDriverService:whitelist_entries = 1:1001 [db_index = True, tosca_key=True]; |
Matteo Scandolo | 53da44c | 2018-08-14 16:04:18 -0700 | [diff] [blame] | 29 | required string serial_number = 2 [max_length = 254, db_index = False, tosca_key=True, unique_with = "owner"]; |
| 30 | required int32 pon_port_id = 3 [db_index = False, help_text = "PON Port on which this ONU is expected to show up"]; |
Scott Baker | 9015e3f | 2018-10-01 11:33:03 -0700 | [diff] [blame] | 31 | required string device_id = 4 [max_length = 54, db_index = False, help_text = "OLT Device (logical device id) on which this ONU is expected to show up"]; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 32 | } |