blob: 046e7f5259da798d0f1065d06134b7570162a059 [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
8 required bool create_on_discovery = 2 [help_text = "Whether to create the subscriber when an ONU is discovered", null = False, db_index = False, blank = False, default = True];
9}
10
11message AttWorkflowDriverServiceInstance (ServiceInstance){
12 option owner_class_name = "AttWorkflowDriverService";
13 option verbose_name = "AttWorkflowDriver Service Instance";
14
15 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", null = False, blank = False];
16 required string serial_number = 2 [max_length = 254, null = False, db_index = False, blank = 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, null = False, db_index = False, blank = False];
18 required string of_dpid = 4 [max_length = 254, null = False, db_index = False, blank = False];
19 optional int32 c_tag = 5 [null = True, db_index = False, blank = False, unique = True, feedback_state = True];
20}
21
22message AttWorkflowDriverWhiteListEntry (XOSBase) {
23 option verbose_name = "Whitelist";
24 option plural = "attworkflowdriverwhitelistentries";
25
26 required manytoone owner->AttWorkflowDriverService:whitelist_entries = 1 [db_index = True, null = False, blank = False, tosca_key=True];
27 required string serial_number = 2 [max_length = 254, null = False, db_index = False, blank = False, tosca_key=True, unique_with = "owner"];
28}