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