blob: f1a161a1d734891f237a0ecf281f25971a59e5ea [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";
6 option kind = "OSS";
7
Matteo Scandolo53da44c2018-08-14 16:04:18 -07008 required bool create_on_discovery = 2 [help_text = "Whether to create the subscriber when an ONU is discovered", db_index = False, default = True];
Matteo Scandoload0c1752018-08-09 15:47:16 -07009}
10
11message AttWorkflowDriverServiceInstance (ServiceInstance){
12 option owner_class_name = "AttWorkflowDriverService";
13 option verbose_name = "AttWorkflowDriver Service Instance";
14
Matteo Scandolo53da44c2018-08-14 16:04:18 -070015 required string valid = 1 [default = "awaiting", choices = "(('awaiting', 'Awaiting Validation'), ('valid', 'Valid'), ('invalid', 'Invalid'))", help_text = "Wether this ONU has been validated by the external OSS"];
16 required string serial_number = 2 [max_length = 254, db_index = False, tosca_key=True, unique = True];
17 required string authentication_state = 3 [default = "AWAITING", choices = "(('AWAITING', 'Awaiting'), ('STARTED', 'Started'), ('REQUESTED', 'Requested'), ('APPROVED', 'Approved'), ('DENIED', 'Denied'), )", max_length = 50, db_index = False];
18 required string of_dpid = 4 [max_length = 254, db_index = False];
19 required int32 uni_port_id = 5 [db_index = False];
Matteo Scandoload0c1752018-08-09 15:47:16 -070020}
21
22message AttWorkflowDriverWhiteListEntry (XOSBase) {
Matteo Scandolo53da44c2018-08-14 16:04:18 -070023 option verbose_name = "ONU Whitelist";
Matteo Scandoload0c1752018-08-09 15:47:16 -070024 option plural = "attworkflowdriverwhitelistentries";
25
Matteo Scandolo53da44c2018-08-14 16:04:18 -070026 required manytoone owner->AttWorkflowDriverService:whitelist_entries = 1 [db_index = True, tosca_key=True];
27 required string serial_number = 2 [max_length = 254, db_index = False, tosca_key=True, unique_with = "owner"];
28 required int32 pon_port_id = 3 [db_index = False, help_text = "PON Port on which this ONU is expected to show up"];
29 required string device_id = 3 [max_length = 54, db_index = False, help_text = "OLT Device (logical device id) on which this ONU is expected to show up"];
Matteo Scandoload0c1752018-08-09 15:47:16 -070030}