blob: ae479abf8cdd2411b9079826e22ad96f04a5e2f5 [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",
Scott Bakeree4c2a02019-01-22 15:15:41 -080013 max_length = 256];
14 optional string dependencies = 2 [
15 help_text="Comma separated list of required application application ids",
16 content_type = "stripped",
Scott Bakeree4c2a02019-01-22 15:15:41 -080017 max_length = 1024];
18 optional string url = 3 [
19 help_text="URL at which the application is available, if it needs to be downloaded",
20 content_type = "stripped",
Scott Bakeree4c2a02019-01-22 15:15:41 -080021 max_length = 1024];
22 optional string version = 4 [
23 help_text="Application version number",
24 content_type = "stripped",
Scott Bakeree4c2a02019-01-22 15:15:41 -080025 max_length = 256];
Sapan Bhatiaa46cc4d2017-04-21 14:57:54 +020026}
27
Sapan Bhatiaa46cc4d2017-04-21 14:57:54 +020028message ONOSService (Service){
Matteo Scandolo6a19ffe2017-08-17 12:22:15 -070029 option verbose_name="ONOS Service";
Scott Bakeree4c2a02019-01-22 15:15:41 -080030 option description = "Manages ONOS Applications contained within the ONOS Service";
Matteo Scandolo6a19ffe2017-08-17 12:22:15 -070031
Scott Bakeree4c2a02019-01-22 15:15:41 -080032 required string rest_hostname = 1 [
33 help_text = "Hostname of ONOS Service REST endpoint",
34 content_type = "stripped",
Scott Baker294d8382019-04-09 16:12:11 -070035 max_length = 256];
Scott Bakeree4c2a02019-01-22 15:15:41 -080036 required int32 rest_port = 2 [
37 help_text = "Port numnber of ONOS Service REST endpoint",
Scott Bakeree4c2a02019-01-22 15:15:41 -080038 default = 8181];
39 required string rest_username = 3 [
40 help_text = "Username to use when authenticating to ONOS",
Scott Baker5840a932019-03-12 15:28:52 -070041 content_type = "stripped",
Scott Bakeree4c2a02019-01-22 15:15:41 -080042 default="karaf",
Scott Baker294d8382019-04-09 16:12:11 -070043 max_length = 256];
Scott Bakeree4c2a02019-01-22 15:15:41 -080044 required string rest_password = 4 [
45 help_text = "Password to use when authenticating to ONOS",
46 content_type = "stripped",
Scott Bakeree4c2a02019-01-22 15:15:41 -080047 default="karaf",
Scott Baker294d8382019-04-09 16:12:11 -070048 max_length = 256];
Sapan Bhatiaa46cc4d2017-04-21 14:57:54 +020049}