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"; |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 7 | option description = "Service that manages the AT&T Subscriber workflow"; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 8 | } |
| 9 | |
| 10 | message AttWorkflowDriverServiceInstance (ServiceInstance){ |
| 11 | option owner_class_name = "AttWorkflowDriverService"; |
| 12 | option verbose_name = "AttWorkflowDriver Service Instance"; |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 13 | option description = "Workflow settings for a particular ONU Device"; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 14 | |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 15 | required string serial_number = 2 [ |
| 16 | help_text = "Serial number of ONU", |
| 17 | db_index = False, |
| 18 | max_length = 254, |
| 19 | tosca_key=True, |
| 20 | unique = True]; |
| 21 | required string authentication_state = 3 [ |
| 22 | help_text = "Subscriber authentication state", |
| 23 | choices = "(('AWAITING', 'Awaiting'), ('STARTED', 'Started'), ('REQUESTED', 'Requested'), ('APPROVED', 'Approved'), ('DENIED', 'Denied'), )", |
| 24 | default = "AWAITING", |
| 25 | db_index = False, |
| 26 | feedback_state = True, |
| 27 | max_length = 50]; |
| 28 | required string of_dpid = 4 [ |
| 29 | help_text = "OLT Openflow ID", |
| 30 | db_index = False, |
| 31 | max_length = 254]; |
| 32 | required int32 uni_port_id = 5 [ |
| 33 | help_text = "ONU UNI port ID", |
| 34 | db_index = False]; |
| 35 | required string onu_state = 6 [ |
| 36 | help_text = "ONU administrative state", |
| 37 | choices = "(('AWAITING', 'Awaiting'), ('ENABLED', 'Enabled'), ('DISABLED', 'Disabled'))", |
| 38 | db_index = False, |
| 39 | default = "AWAITING", |
| 40 | feedback_state = True, |
| 41 | max_length = 254]; |
| 42 | optional string status_message = 7 [ |
| 43 | help_text = "Status text of current state machine state", |
| 44 | db_index = False, |
| 45 | default = "", |
| 46 | max_length = 254]; |
| 47 | required string dhcp_state = 8 [ |
| 48 | max_length = 254, |
| 49 | db_index = False, |
| 50 | default = "AWAITING", |
| 51 | choices = "(('AWAITING', 'Awaiting'), ('DHCPDISCOVER', 'DHCPDISCOVER'), ('DHCPACK', 'DHCPACK'), ('DHCPREQUEST', 'DHCPREQUEST'))", |
| 52 | feedback_state = True]; |
| 53 | optional string ip_address = 9 [ |
| 54 | help_text = "Subcriber IP address, learned from DHCP", |
| 55 | db_index = False, |
| 56 | feedback_state = True, |
| 57 | max_length = 20]; |
| 58 | optional string mac_address = 10 [ |
| 59 | help_text = "Subscriber MAC address, leanred from DHCP", |
| 60 | db_index = False, |
| 61 | feedback_state = True, |
| 62 | max_length = 20]; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | message AttWorkflowDriverWhiteListEntry (XOSBase) { |
Matteo Scandolo | 53da44c | 2018-08-14 16:04:18 -0700 | [diff] [blame] | 66 | option verbose_name = "ONU Whitelist"; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 67 | option plural = "attworkflowdriverwhitelistentries"; |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 68 | option description = "White list entry that permits an ONU with a particular serial number on a particular OLT and PON"; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 69 | |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 70 | required manytoone owner->AttWorkflowDriverService:whitelist_entries = 1:1001 [ |
| 71 | help_text = "AttWorkflowDriverService that owns this white list entry", |
| 72 | db_index = True, |
| 73 | tosca_key = True]; |
| 74 | required string serial_number = 2 [ |
| 75 | help_text = "ONU Serial Number", |
| 76 | db_index = False, |
| 77 | max_length = 254, |
| 78 | tosca_key = True, |
| 79 | unique_with = "owner"]; |
| 80 | required int32 pon_port_id = 3 [ |
| 81 | help_text = "PON Port on which this ONU is expected to show up", |
| 82 | db_index = False]; |
| 83 | required string device_id = 4 [ |
| 84 | help_text = "OLT Device (logical device id) on which this ONU is expected to show up", |
| 85 | db_index = False, |
| 86 | max_length = 54]; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 87 | } |