blob: 3064b6b0a3dedb7609573c1678cbc6184099ff1e [file] [log] [blame]
Matteo Scandoload0c1752018-08-09 15:47:16 -07001option name = "att-workflow-driver";
2option app_label = "att-workflow-driver";
3
4message AttWorkflowDriverService (Service){
5 option verbose_name = "AttWorkflowDriver Service";
Matteo Scandoloea529092018-09-11 16:36:39 -07006 option kind = "control";
Scott Baker776120a2019-01-23 14:59:46 -08007 option description = "Service that manages the AT&T Subscriber workflow";
Matteo Scandoload0c1752018-08-09 15:47:16 -07008}
9
10message AttWorkflowDriverServiceInstance (ServiceInstance){
11 option owner_class_name = "AttWorkflowDriverService";
12 option verbose_name = "AttWorkflowDriver Service Instance";
Scott Baker776120a2019-01-23 14:59:46 -080013 option description = "Workflow settings for a particular ONU Device";
vigneshethiraje18b6712019-06-04 18:45:18 +053014 option policy_implemented = "True";
Matteo Scandoload0c1752018-08-09 15:47:16 -070015
Scott Baker776120a2019-01-23 14:59:46 -080016 required string serial_number = 2 [
17 help_text = "Serial number of ONU",
Scott Baker7fc09ed2019-04-09 14:25:00 -070018 max_length = 256,
Scott Baker776120a2019-01-23 14:59:46 -080019 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 Baker776120a2019-01-23 14:59:46 -080025 feedback_state = True,
26 max_length = 50];
27 required string of_dpid = 4 [
28 help_text = "OLT Openflow ID",
Scott Baker7fc09ed2019-04-09 14:25:00 -070029 max_length = 256];
Scott Baker776120a2019-01-23 14:59:46 -080030 required int32 uni_port_id = 5 [
Scott Baker345de302019-03-12 15:35:01 -070031 help_text = "ONU UNI port ID"];
Matteo Scandolo2d9f40d2019-04-19 08:38:10 -070032 required string admin_onu_state = 6 [
Scott Baker776120a2019-01-23 14:59:46 -080033 help_text = "ONU administrative state",
34 choices = "(('AWAITING', 'Awaiting'), ('ENABLED', 'Enabled'), ('DISABLED', 'Disabled'))",
Scott Baker776120a2019-01-23 14:59:46 -080035 default = "AWAITING",
36 feedback_state = True,
Scott Baker7fc09ed2019-04-09 14:25:00 -070037 max_length = 256];
Scott Baker776120a2019-01-23 14:59:46 -080038 optional string status_message = 7 [
39 help_text = "Status text of current state machine state",
Scott Baker776120a2019-01-23 14:59:46 -080040 default = "",
Scott Baker7fc09ed2019-04-09 14:25:00 -070041 max_length = 256];
Scott Baker776120a2019-01-23 14:59:46 -080042 required string dhcp_state = 8 [
Scott Baker7fc09ed2019-04-09 14:25:00 -070043 max_length = 256,
Scott Baker776120a2019-01-23 14:59:46 -080044 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 Baker776120a2019-01-23 14:59:46 -080049 feedback_state = True,
50 max_length = 20];
51 optional string mac_address = 10 [
52 help_text = "Subscriber MAC address, leanred from DHCP",
Scott Baker776120a2019-01-23 14:59:46 -080053 feedback_state = True,
54 max_length = 20];
Matteo Scandolo2d9f40d2019-04-19 08:38:10 -070055 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 Scandoload0c1752018-08-09 15:47:16 -070061}
62
63message AttWorkflowDriverWhiteListEntry (XOSBase) {
Matteo Scandolo53da44c2018-08-14 16:04:18 -070064 option verbose_name = "ONU Whitelist";
Matteo Scandoload0c1752018-08-09 15:47:16 -070065 option plural = "attworkflowdriverwhitelistentries";
Scott Baker776120a2019-01-23 14:59:46 -080066 option description = "White list entry that permits an ONU with a particular serial number on a particular OLT and PON";
vigneshethiraje18b6712019-06-04 18:45:18 +053067 option policy_implemented = "True";
Matteo Scandoload0c1752018-08-09 15:47:16 -070068
Scott Baker776120a2019-01-23 14:59:46 -080069 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 Baker7fc09ed2019-04-09 14:25:00 -070075 max_length = 256,
Scott Baker776120a2019-01-23 14:59:46 -080076 tosca_key = True,
77 unique_with = "owner"];
78 required int32 pon_port_id = 3 [
Scott Baker345de302019-03-12 15:35:01 -070079 help_text = "PON Port on which this ONU is expected to show up"];
Scott Baker776120a2019-01-23 14:59:46 -080080 required string device_id = 4 [
81 help_text = "OLT Device (logical device id) on which this ONU is expected to show up",
Scott Baker776120a2019-01-23 14:59:46 -080082 max_length = 54];
Matteo Scandoload0c1752018-08-09 15:47:16 -070083}