blob: 6b4d7badc99307965de856f34924546ce85ccf76 [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";
Matteo Scandoload0c1752018-08-09 15:47:16 -070014
Scott Baker776120a2019-01-23 14:59:46 -080015 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 Scandoload0c1752018-08-09 15:47:16 -070063}
64
65message AttWorkflowDriverWhiteListEntry (XOSBase) {
Matteo Scandolo53da44c2018-08-14 16:04:18 -070066 option verbose_name = "ONU Whitelist";
Matteo Scandoload0c1752018-08-09 15:47:16 -070067 option plural = "attworkflowdriverwhitelistentries";
Scott Baker776120a2019-01-23 14:59:46 -080068 option description = "White list entry that permits an ONU with a particular serial number on a particular OLT and PON";
Matteo Scandoload0c1752018-08-09 15:47:16 -070069
Scott Baker776120a2019-01-23 14:59:46 -080070 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 Scandoload0c1752018-08-09 15:47:16 -070087}