blob: 7ebc39027965ee1a43a96eb3f4b5991a06827719 [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";
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 serial_number = 2 [max_length = 254, db_index = False, tosca_key=True, unique = True];
Andy Bavierafaf1762019-01-16 09:41:43 -070014 required string authentication_state = 3 [default = "AWAITING", choices = "(('AWAITING', 'Awaiting'), ('STARTED', 'Started'), ('REQUESTED', 'Requested'), ('APPROVED', 'Approved'), ('DENIED', 'Denied'), )", max_length = 50, db_index = False, feedback_state = True];
Matteo Scandolo53da44c2018-08-14 16:04:18 -070015 required string of_dpid = 4 [max_length = 254, db_index = False];
16 required int32 uni_port_id = 5 [db_index = False];
Andy Bavierafaf1762019-01-16 09:41:43 -070017 required string onu_state = 6 [max_length = 254, db_index = False, default = "AWAITING", choices = "(('AWAITING', 'Awaiting'), ('ENABLED', 'Enabled'), ('DISABLED', 'Disabled'))", feedback_state = True];
Matteo Scandoloea529092018-09-11 16:36:39 -070018 optional string status_message = 7 [max_length = 254, db_index = False, default = ""];
Andy Bavierafaf1762019-01-16 09:41:43 -070019 required string dhcp_state = 8 [max_length = 254, db_index = False, default = "AWAITING", choices = "(('AWAITING', 'Awaiting'), ('DHCPDISCOVER', 'DHCPDISCOVER'), ('DHCPACK', 'DHCPACK'), ('DHCPREQUEST', 'DHCPREQUEST'))", feedback_state = True];
20 optional string ip_address = 9 [max_length = 20, db_index = False, feedback_state = True];
21 optional string mac_address = 10 [max_length = 20, db_index = False, feedback_state = True];
Matteo Scandoload0c1752018-08-09 15:47:16 -070022}
23
24message AttWorkflowDriverWhiteListEntry (XOSBase) {
Matteo Scandolo53da44c2018-08-14 16:04:18 -070025 option verbose_name = "ONU Whitelist";
Matteo Scandoload0c1752018-08-09 15:47:16 -070026 option plural = "attworkflowdriverwhitelistentries";
27
Scott Baker3e7380c2018-10-26 16:22:38 -070028 required manytoone owner->AttWorkflowDriverService:whitelist_entries = 1:1001 [db_index = True, tosca_key=True];
Matteo Scandolo53da44c2018-08-14 16:04:18 -070029 required string serial_number = 2 [max_length = 254, db_index = False, tosca_key=True, unique_with = "owner"];
30 required int32 pon_port_id = 3 [db_index = False, help_text = "PON Port on which this ONU is expected to show up"];
Scott Baker9015e3f2018-10-01 11:33:03 -070031 required string device_id = 4 [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 -070032}