blob: b9b0a335a7e50b68686492b721acd636fd1bd92b [file] [log] [blame]
Matteo Scandolo2e8d6f52017-09-07 09:53:00 -07001option app_label = "onos";
Sapan Bhatiaa46cc4d2017-04-21 14:57:54 +02002option name="onos";
Matteo Scandolo3b672572018-06-25 14:28:36 -07003option legacy="True";
Sapan Bhatiaa46cc4d2017-04-21 14:57:54 +02004
Scott Baker8d8f9922017-07-17 17:30:42 -07005message ONOSApp (ServiceInstance){
Matteo Scandolo6a19ffe2017-08-17 12:22:15 -07006 option verbose_name="ONOS Application";
Scott Bakera2db56d2018-02-20 11:04:58 -08007 option owner_class_name="ONOSService";
Scott Bakeree4c2a02019-01-22 15:15:41 -08008 option description = "An individual application within the ONOS Service";
Matteo Scandolo6a19ffe2017-08-17 12:22:15 -07009
Scott Bakeree4c2a02019-01-22 15:15:41 -080010 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 Bhatiaa46cc4d2017-04-21 14:57:54 +020030}
31
Sapan Bhatiaa46cc4d2017-04-21 14:57:54 +020032message ONOSService (Service){
Matteo Scandolo6a19ffe2017-08-17 12:22:15 -070033 option verbose_name="ONOS Service";
Scott Bakeree4c2a02019-01-22 15:15:41 -080034 option description = "Manages ONOS Applications contained within the ONOS Service";
Matteo Scandolo6a19ffe2017-08-17 12:22:15 -070035
Scott Bakeree4c2a02019-01-22 15:15:41 -080036 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 Bhatiaa46cc4d2017-04-21 14:57:54 +020056}