blob: 0ca920163de0036657ed06c85a97678a8e158fa3 [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";
Matteo Scandoload0c1752018-08-09 15:47:16 -07007}
8
9message AttWorkflowDriverServiceInstance (ServiceInstance){
10 option owner_class_name = "AttWorkflowDriverService";
11 option verbose_name = "AttWorkflowDriver Service Instance";
12
Matteo Scandolo53da44c2018-08-14 16:04:18 -070013 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"];
14 required string serial_number = 2 [max_length = 254, db_index = False, tosca_key=True, unique = True];
15 required string authentication_state = 3 [default = "AWAITING", choices = "(('AWAITING', 'Awaiting'), ('STARTED', 'Started'), ('REQUESTED', 'Requested'), ('APPROVED', 'Approved'), ('DENIED', 'Denied'), )", max_length = 50, db_index = False];
16 required string of_dpid = 4 [max_length = 254, db_index = False];
17 required int32 uni_port_id = 5 [db_index = False];
Matteo Scandoloe8c33d62018-08-16 14:37:24 -070018 required string onu_state = 6 [max_length = 254, db_index = False, default = "AWAITING", choices = "(('AWAITING', 'Awaiting'), ('ENABLED', 'Enabled'), ('DISABLED', 'Disabled'))"];
Matteo Scandoload0c1752018-08-09 15:47:16 -070019}
20
21message AttWorkflowDriverWhiteListEntry (XOSBase) {
Matteo Scandolo53da44c2018-08-14 16:04:18 -070022 option verbose_name = "ONU Whitelist";
Matteo Scandoload0c1752018-08-09 15:47:16 -070023 option plural = "attworkflowdriverwhitelistentries";
24
Matteo Scandolo53da44c2018-08-14 16:04:18 -070025 required manytoone owner->AttWorkflowDriverService:whitelist_entries = 1 [db_index = True, tosca_key=True];
26 required string serial_number = 2 [max_length = 254, db_index = False, tosca_key=True, unique_with = "owner"];
27 required int32 pon_port_id = 3 [db_index = False, help_text = "PON Port on which this ONU is expected to show up"];
28 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 -070029}