Matteo Scandolo | 7529882 | 2018-05-22 11:25:42 -0700 | [diff] [blame] | 1 | option name = "hippie-oss"; |
| 2 | option app_label = "hippie-oss"; |
| 3 | |
| 4 | message HippieOSSService (Service){ |
| 5 | option verbose_name = "HippieOSS Service"; |
| 6 | option kind = "OSS"; |
Matteo Scandolo | 5a0eed2 | 2018-06-01 14:42:43 -0700 | [diff] [blame] | 7 | |
Scott Baker | 26437eb | 2018-07-31 16:46:31 -0700 | [diff] [blame] | 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]; |
Matteo Scandolo | 7529882 | 2018-05-22 11:25:42 -0700 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | message HippieOSSServiceInstance (ServiceInstance){ |
| 12 | option owner_class_name = "HippieOSSService"; |
| 13 | option verbose_name = "HippieOSS Service Instance"; |
| 14 | |
Matteo Scandolo | 5a0eed2 | 2018-06-01 14:42:43 -0700 | [diff] [blame] | 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]; |
Matteo Scandolo | 7529882 | 2018-05-22 11:25:42 -0700 | [diff] [blame] | 16 | required string serial_number = 2 [max_length = 254, null = False, db_index = False, blank = False, tosca_key=True, unique = True]; |
Matteo Scandolo | a14bf65 | 2018-07-26 16:26:21 -0700 | [diff] [blame] | 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]; |
Matteo Scandolo | 7529882 | 2018-05-22 11:25:42 -0700 | [diff] [blame] | 18 | required string of_dpid = 4 [max_length = 254, null = False, db_index = False, blank = False]; |
Zack Williams | 99edbc9 | 2018-09-25 17:15:12 -0700 | [diff] [blame] | 19 | optional int32 c_tag = 5 [null = True, db_index = False, blank = True, unique = True, feedback_state = True]; |
Scott Baker | 26437eb | 2018-07-31 16:46:31 -0700 | [diff] [blame] | 20 | } |
| 21 | |
| 22 | message HippieOSSWhiteListEntry (XOSBase) { |
| 23 | option verbose_name = "Whitelist"; |
| 24 | option plural = "hippieosswhitelistentries"; |
| 25 | |
| 26 | required manytoone owner->HippieOSSService: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 | } |