Matteo Scandolo | 2e8d6f5 | 2017-09-07 09:53:00 -0700 | [diff] [blame] | 1 | option app_label = "onos"; |
Sapan Bhatia | a46cc4d | 2017-04-21 14:57:54 +0200 | [diff] [blame] | 2 | option name="onos"; |
Matteo Scandolo | 3b67257 | 2018-06-25 14:28:36 -0700 | [diff] [blame] | 3 | option legacy="True"; |
Sapan Bhatia | a46cc4d | 2017-04-21 14:57:54 +0200 | [diff] [blame] | 4 | |
Scott Baker | 8d8f992 | 2017-07-17 17:30:42 -0700 | [diff] [blame] | 5 | message ONOSApp (ServiceInstance){ |
Matteo Scandolo | 6a19ffe | 2017-08-17 12:22:15 -0700 | [diff] [blame] | 6 | option verbose_name="ONOS Application"; |
Scott Baker | a2db56d | 2018-02-20 11:04:58 -0800 | [diff] [blame] | 7 | option owner_class_name="ONOSService"; |
Scott Baker | ee4c2a0 | 2019-01-22 15:15:41 -0800 | [diff] [blame] | 8 | option description = "An individual application within the ONOS Service"; |
Matteo Scandolo | 6a19ffe | 2017-08-17 12:22:15 -0700 | [diff] [blame] | 9 | |
Scott Baker | ee4c2a0 | 2019-01-22 15:15:41 -0800 | [diff] [blame] | 10 | required string app_id = 1 [ |
| 11 | help_text="Application identifier", |
| 12 | content_type = "stripped", |
| 13 | db_index = False, |
| 14 | max_length = 256]; |
| 15 | optional string dependencies = 2 [ |
| 16 | help_text="Comma separated list of required application application ids", |
| 17 | content_type = "stripped", |
| 18 | db_index = False, |
| 19 | max_length = 1024]; |
| 20 | optional string url = 3 [ |
| 21 | help_text="URL at which the application is available, if it needs to be downloaded", |
| 22 | content_type = "stripped", |
| 23 | db_index = False, |
| 24 | max_length = 1024]; |
| 25 | optional string version = 4 [ |
| 26 | help_text="Application version number", |
| 27 | content_type = "stripped", |
| 28 | db_index = False, |
| 29 | max_length = 256]; |
Sapan Bhatia | a46cc4d | 2017-04-21 14:57:54 +0200 | [diff] [blame] | 30 | } |
| 31 | |
Sapan Bhatia | a46cc4d | 2017-04-21 14:57:54 +0200 | [diff] [blame] | 32 | message ONOSService (Service){ |
Matteo Scandolo | 6a19ffe | 2017-08-17 12:22:15 -0700 | [diff] [blame] | 33 | option verbose_name="ONOS Service"; |
Scott Baker | ee4c2a0 | 2019-01-22 15:15:41 -0800 | [diff] [blame] | 34 | option description = "Manages ONOS Applications contained within the ONOS Service"; |
Matteo Scandolo | 6a19ffe | 2017-08-17 12:22:15 -0700 | [diff] [blame] | 35 | |
Scott Baker | ee4c2a0 | 2019-01-22 15:15:41 -0800 | [diff] [blame] | 36 | required string rest_hostname = 1 [ |
| 37 | help_text = "Hostname of ONOS Service REST endpoint", |
| 38 | content_type = "stripped", |
| 39 | db_index = False, |
| 40 | max_length = 255]; |
| 41 | required int32 rest_port = 2 [ |
| 42 | help_text = "Port numnber of ONOS Service REST endpoint", |
| 43 | db_index = False, |
| 44 | default = 8181]; |
| 45 | required string rest_username = 3 [ |
| 46 | help_text = "Username to use when authenticating to ONOS", |
| 47 | content_type = "stripped", db_index = False, |
| 48 | default="karaf", |
| 49 | max_length = 255]; |
| 50 | required string rest_password = 4 [ |
| 51 | help_text = "Password to use when authenticating to ONOS", |
| 52 | content_type = "stripped", |
| 53 | db_index = False, |
| 54 | default="karaf", |
| 55 | max_length = 255]; |
Sapan Bhatia | a46cc4d | 2017-04-21 14:57:54 +0200 | [diff] [blame] | 56 | } |