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"; |
vigneshethiraj | e18b671 | 2019-06-04 18:45:18 +0530 | [diff] [blame^] | 14 | option policy_implemented = "True"; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 15 | |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 16 | required string serial_number = 2 [ |
| 17 | help_text = "Serial number of ONU", |
Scott Baker | 7fc09ed | 2019-04-09 14:25:00 -0700 | [diff] [blame] | 18 | max_length = 256, |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 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", |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 25 | feedback_state = True, |
| 26 | max_length = 50]; |
| 27 | required string of_dpid = 4 [ |
| 28 | help_text = "OLT Openflow ID", |
Scott Baker | 7fc09ed | 2019-04-09 14:25:00 -0700 | [diff] [blame] | 29 | max_length = 256]; |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 30 | required int32 uni_port_id = 5 [ |
Scott Baker | 345de30 | 2019-03-12 15:35:01 -0700 | [diff] [blame] | 31 | help_text = "ONU UNI port ID"]; |
Matteo Scandolo | 2d9f40d | 2019-04-19 08:38:10 -0700 | [diff] [blame] | 32 | required string admin_onu_state = 6 [ |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 33 | help_text = "ONU administrative state", |
| 34 | choices = "(('AWAITING', 'Awaiting'), ('ENABLED', 'Enabled'), ('DISABLED', 'Disabled'))", |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 35 | default = "AWAITING", |
| 36 | feedback_state = True, |
Scott Baker | 7fc09ed | 2019-04-09 14:25:00 -0700 | [diff] [blame] | 37 | max_length = 256]; |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 38 | optional string status_message = 7 [ |
| 39 | help_text = "Status text of current state machine state", |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 40 | default = "", |
Scott Baker | 7fc09ed | 2019-04-09 14:25:00 -0700 | [diff] [blame] | 41 | max_length = 256]; |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 42 | required string dhcp_state = 8 [ |
Scott Baker | 7fc09ed | 2019-04-09 14:25:00 -0700 | [diff] [blame] | 43 | max_length = 256, |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 44 | default = "AWAITING", |
| 45 | choices = "(('AWAITING', 'Awaiting'), ('DHCPDISCOVER', 'DHCPDISCOVER'), ('DHCPACK', 'DHCPACK'), ('DHCPREQUEST', 'DHCPREQUEST'))", |
| 46 | feedback_state = True]; |
| 47 | optional string ip_address = 9 [ |
| 48 | help_text = "Subcriber IP address, learned from DHCP", |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 49 | feedback_state = True, |
| 50 | max_length = 20]; |
| 51 | optional string mac_address = 10 [ |
| 52 | help_text = "Subscriber MAC address, leanred from DHCP", |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 53 | feedback_state = True, |
| 54 | max_length = 20]; |
Matteo Scandolo | 2d9f40d | 2019-04-19 08:38:10 -0700 | [diff] [blame] | 55 | required string oper_onu_status = 11 [ |
| 56 | help_text = "ONU operational state", |
| 57 | choices = "(('AWAITING', 'Awaiting'), ('ENABLED', 'Enabled'), ('DISABLED', 'Disabled'))", |
| 58 | default = "AWAITING", |
| 59 | feedback_state = True, |
| 60 | max_length = 256]; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | message AttWorkflowDriverWhiteListEntry (XOSBase) { |
Matteo Scandolo | 53da44c | 2018-08-14 16:04:18 -0700 | [diff] [blame] | 64 | option verbose_name = "ONU Whitelist"; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 65 | option plural = "attworkflowdriverwhitelistentries"; |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 66 | option description = "White list entry that permits an ONU with a particular serial number on a particular OLT and PON"; |
vigneshethiraj | e18b671 | 2019-06-04 18:45:18 +0530 | [diff] [blame^] | 67 | option policy_implemented = "True"; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 68 | |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 69 | required manytoone owner->AttWorkflowDriverService:whitelist_entries = 1:1001 [ |
| 70 | help_text = "AttWorkflowDriverService that owns this white list entry", |
| 71 | db_index = True, |
| 72 | tosca_key = True]; |
| 73 | required string serial_number = 2 [ |
| 74 | help_text = "ONU Serial Number", |
Scott Baker | 7fc09ed | 2019-04-09 14:25:00 -0700 | [diff] [blame] | 75 | max_length = 256, |
Scott Baker | 776120a | 2019-01-23 14:59:46 -0800 | [diff] [blame] | 76 | tosca_key = True, |
| 77 | unique_with = "owner"]; |
| 78 | required int32 pon_port_id = 3 [ |
Scott Baker | 345de30 | 2019-03-12 15:35:01 -0700 | [diff] [blame] | 79 | 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] | 80 | required string device_id = 4 [ |
| 81 | 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] | 82 | max_length = 54]; |
Matteo Scandolo | ad0c175 | 2018-08-09 15:47:16 -0700 | [diff] [blame] | 83 | } |