blob: 099c8162d6d1e961efd30f30c6fdec9e8763fe94 [file] [log] [blame]
Matteo Scandolo75298822018-05-22 11:25:42 -07001option name = "hippie-oss";
2option app_label = "hippie-oss";
3
4message HippieOSSService (Service){
5 option verbose_name = "HippieOSS Service";
6 option kind = "OSS";
Matteo Scandolo5a0eed22018-06-01 14:42:43 -07007
Scott Baker3685b042018-07-09 12:43:46 -07008 optional string whitelist = 1 [help_text = "A comma separated list of ONUs that are deemed to be valid ONUs", null = True, db_index = False, blank = False];
Matteo Scandolob8dec872018-07-17 16:56:23 -04009 required bool create_on_discovery = 2 [help_text = "Wether to create the subscriber when an ONU is discovered", null = False, db_index = False, blank = False, default = True];
Matteo Scandolo75298822018-05-22 11:25:42 -070010}
11
12message HippieOSSServiceInstance (ServiceInstance){
13 option owner_class_name = "HippieOSSService";
14 option verbose_name = "HippieOSS Service Instance";
15
Matteo Scandolo5a0eed22018-06-01 14:42:43 -070016 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];
Matteo Scandolo75298822018-05-22 11:25:42 -070017 required string serial_number = 2 [max_length = 254, null = False, db_index = False, blank = False, tosca_key=True, unique = True];
Matteo Scandolobe7c31d2018-07-23 17:31:59 -070018 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, unique = True];
Matteo Scandolo75298822018-05-22 11:25:42 -070019 required string of_dpid = 4 [max_length = 254, null = False, db_index = False, blank = False];
Matteo Scandolo3c842ef2018-06-19 15:46:06 -070020 optional int32 c_tag = 5 [null = True, db_index = False, blank = False, unique = True, feedback_state = True];
Matteo Scandolo75298822018-05-22 11:25:42 -070021}