blob: e40bcbefa6486ff3530d654d3fc1512af425f8ff [file] [log] [blame]
Ray Milkeyd04e2272018-10-16 18:20:18 -07001/*
2 * Copyright 2018-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package org.onosproject.net;
18
19public final class OsgiPropertyConstants {
20 private OsgiPropertyConstants() {
21 }
22
23 //@Property(name = "useRegionForBalanceRoles", boolValue = DEFAULT_USE_REGION_FOR_BALANCE_ROLES,
24 // label = "Use Regions for balancing roles")
Ray Milkey2d7bca12018-10-17 14:51:52 -070025 public static final String USE_REGION_FOR_BALANCE_ROLES = "useRegionForBalanceRoles";
Ray Milkeyd04e2272018-10-16 18:20:18 -070026 public static final boolean USE_REGION_FOR_BALANCE_ROLES_DEFAULT = false;
27
28 //@Property(name = "rebalanceRolesOnUpgrade",
29 // boolValue = DEFAULT_REBALANCE_ROLES_ON_UPGRADE,
30 // label = "Automatically rebalance roles following an upgrade")
Ray Milkey2d7bca12018-10-17 14:51:52 -070031 public static final String REBALANCE_ROLES_ON_UPGRADE = "rebalanceRolesOnUpgrade";
Ray Milkeyd04e2272018-10-16 18:20:18 -070032 public static final boolean REBALANCE_ROLES_ON_UPGRADE_DEFAULT = true;
33
34 //@Property(name = "sharedThreadPoolSize", intValue = DEFAULT_POOL_SIZE,
35 // label = "Configure shared pool maximum size ")
Ray Milkey2d7bca12018-10-17 14:51:52 -070036 public static final String SHARED_THREAD_POOL_SIZE = "sharedThreadPoolSize";
Ray Milkeyd04e2272018-10-16 18:20:18 -070037 public static final int SHARED_THREAD_POOL_SIZE_DEFAULT = 30;
38
39 //@Property(name = "maxEventTimeLimit", intValue = DEFAULT_EVENT_TIME,
40 // label = "Maximum number of millis an event sink has to process an event")
Ray Milkey2d7bca12018-10-17 14:51:52 -070041 public static final String MAX_EVENT_TIME_LIMIT = "maxEventTimeLimit";
Ray Milkeyd04e2272018-10-16 18:20:18 -070042 public static final int MAX_EVENT_TIME_LIMIT_DEFAULT = 2000;
43
44 //@Property(name = "sharedThreadPerformanceCheck", boolValue = DEFAULT_PERFORMANCE_CHECK,
45 // label = "Enable queue performance check on shared pool")
Ray Milkey2d7bca12018-10-17 14:51:52 -070046 public static final String CALCULATE_PERFORMANCE_CHECK = "calculatePoolPerformance";
Ray Milkeyd04e2272018-10-16 18:20:18 -070047 public static final boolean CALCULATE_PERFORMANCE_CHECK_DEFAULT = false;
48
49 //@Property(name = "allowExtraneousRules", boolValue = ALLOW_EXTRANEOUS_RULES,
50 // label = "Allow flow rules in switch not installed by ONOS")
Ray Milkey2d7bca12018-10-17 14:51:52 -070051 public static final String ALLOW_EXTRANEOUS_RULES = "allowExtraneousRules";
Ray Milkeyd04e2272018-10-16 18:20:18 -070052 public static final boolean ALLOW_EXTRANEOUS_RULES_DEFAULT = false;
53
54 //@Property(name = "purgeOnDisconnection", boolValue = false,
55 // label = "Purge entries associated with a device when the device goes offline")
Ray Milkey2d7bca12018-10-17 14:51:52 -070056 public static final String PURGE_ON_DISCONNECTION = "purgeOnDisconnection";
Ray Milkeyd04e2272018-10-16 18:20:18 -070057 public static final boolean PURGE_ON_DISCONNECTION_DEFAULT = false;
58
59 //@Property(name = "fallbackFlowPollFrequency", intValue = DEFAULT_POLL_FREQUENCY,
60 // label = "Frequency (in seconds) for polling flow statistics via fallback provider")
Ray Milkey2d7bca12018-10-17 14:51:52 -070061 public static final String POLL_FREQUENCY = "fallbackFlowPollFrequency";
Ray Milkeyd04e2272018-10-16 18:20:18 -070062 public static final int POLL_FREQUENCY_DEFAULT = 30;
63
64 //@Property(name = NUM_THREAD,
65 // intValue = DEFAULT_NUM_THREADS,
66 // label = "Number of worker threads")
Ray Milkey2d7bca12018-10-17 14:51:52 -070067 public static final String FOM_NUM_THREADS = "FOMNumThreads";
Ray Milkeyd04e2272018-10-16 18:20:18 -070068 public static final int FOM_NUM_THREADS_DEFAULT = 4;
69
70 //@Property(name = "fallbackGroupPollFrequency", intValue = DEFAULT_POLL_FREQUENCY,
71 // label = "Frequency (in seconds) for polling groups via fallback provider")
Ray Milkey2d7bca12018-10-17 14:51:52 -070072 public static final String GM_POLL_FREQUENCY = "fallbackGroupPollFrequency";
Ray Milkeyd04e2272018-10-16 18:20:18 -070073 public static final int GM_POLL_FREQUENCY_DEFAULT = 30;
74
75 //@Property(name = "purgeOnDisconnection", boolValue = false,
76 // label = "Purge entries associated with a device when the device goes offline")
Ray Milkey2d7bca12018-10-17 14:51:52 -070077 public static final String GM_PURGE_ON_DISCONNECTION = "purgeOnDisconnection";
Ray Milkeyd04e2272018-10-16 18:20:18 -070078 public static final boolean GM_PURGE_ON_DISCONNECTION_DEFAULT = false;
79
80 //@Property(name = "allowDuplicateIps", boolValue = true,
81 // label = "Enable removal of duplicate ip address")
Ray Milkey2d7bca12018-10-17 14:51:52 -070082 public static final String HM_ALLOW_DUPLICATE_IPS = "allowDuplicateIps";
Ray Milkeyd04e2272018-10-16 18:20:18 -070083 public static final boolean HM_ALLOW_DUPLICATE_IPS_DEFAULT = true;
84
85 //@Property(name = "monitorHosts", boolValue = false,
86 // label = "Enable/Disable monitoring of hosts")
Ray Milkey2d7bca12018-10-17 14:51:52 -070087 public static final String HM_MONITOR_HOSTS = "monitorHosts";
Ray Milkeyd04e2272018-10-16 18:20:18 -070088 public static final boolean HM_MONITOR_HOSTS_DEFAULT = false;
89
90 //@Property(name = "probeRate", longValue = 30000,
91 // label = "Set the probe Rate in milli seconds")
Ray Milkey2d7bca12018-10-17 14:51:52 -070092 public static final String HM_PROBE_RATE = "probeRate";
Ray Milkeyd04e2272018-10-16 18:20:18 -070093 public static final long HM_PROBE_RATE_DEFAULT = 30000;
94
95 //@Property(name = "greedyLearningIpv6", boolValue = false,
96 // label = "Enable/Disable greedy learning of IPv6 link local address")
Ray Milkey2d7bca12018-10-17 14:51:52 -070097 public static final String HM_GREEDY_LEARNING_IPV6 = "greedyLearningIpv6";
Ray Milkeyd04e2272018-10-16 18:20:18 -070098 public static final boolean HM_GREEDY_LEARNING_IPV6_DEFAULT = false;
99
100 //@Property(name = "useFlowObjectives",
101 // boolValue = DEFAULT_FLOW_OBJECTIVES,
102 // label = "Indicates whether or not to use flow objective-based compilers")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700103 public static final String ICR_USE_FLOW_OBJECTIVES = "useFlowObjectives";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700104 public static final boolean ICR_USE_FLOW_OBJECTIVES_DEFAULT = false;
105
106 //@Property(name = "labelSelection",
107 // value = DEFAULT_LABEL_SELECTION,
108 // label = "Defines the label selection algorithm - RANDOM or FIRST_FIT")
109 public static final String ICR_LABEL_SELECTION = "labelSelection";
110 public static final String ICR_LABEL_SELECTION_DEFAULT = "RANDOM";
111
112 //@Property(name = "optLabelSelection",
113 // value = DEFAULT_OPT_LABEL_SELECTION,
114 // label = "Defines the optimization for label selection algorithm - NONE, NO_SWAP, MIN_SWAP")
115 public static final String ICR_OPT_LABEL_SELECTION = "optLabelSelection";
116 public static final String ICR_OPT_LABEL_SELECTION_DEFAULT = "NONE";
117
118 //@Property(name = "optimizeInstructions",
119 // boolValue = DEFAULT_FLOW_OPTIMIZATION,
120 // label = "Indicates whether or not to optimize the flows in the link collection compiler")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700121 public static final String ICR_FLOW_OPTIMIZATION = "optimizeInstructions";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700122 public static final boolean ICR_FLOW_OPTIMIZATION_DEFAULT = false;
123
124 //@Property(name = "useCopyTtl",
125 // boolValue = DEFAULT_COPY_TTL,
126 // label = "Indicates whether or not to use copy ttl in the link collection compiler")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700127 public static final String ICR_COPY_TTL = "useCopyTtl";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700128 public static final boolean ICR_COPY_TTL_DEFAULT = false;
129
130 //@Property(name = "enabled", boolValue = true,
131 // label = "Enables/disables the intent cleanup component")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700132 public static final String ICU_ENABLED = "enabled";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700133 public static final boolean ICU_ENABLED_DEFAULT = true;
134
135 //@Property(name = "period", intValue = DEFAULT_PERIOD,
136 // label = "Frequency in ms between cleanup runs")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700137 public static final String ICU_PERIOD = "period";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700138 public static final int ICU_PERIOD_DEFAULT = 5; //seconds
139
140 //@Property(name = "retryThreshold", intValue = DEFAULT_THRESHOLD,
141 // label = "Number of times to retry CORRUPT intent without delay")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700142 public static final String ICU_RETRY_THRESHOLD = "retryThreshold";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700143 public static final int ICU_RETRY_THRESHOLD_DEFAULT = 5; //tries
144
145 //@Property(name = "nonDisruptiveInstallationWaitingTime",
146 // intValue = DEFAULT_NON_DISRUPTIVE_INSTALLATION_WAITING_TIME,
147 // label = "Number of seconds to wait during the non-disruptive installation phases")
148 public static final String NON_DISRUPTIVE_INSTALLATION_WAITING_TIME =
Ray Milkey2d7bca12018-10-17 14:51:52 -0700149 "nonDisruptiveInstallationWaitingTime";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700150 public static final int NON_DISRUPTIVE_INSTALLATION_WAITING_TIME_DEFAULT = 1;
151
152 //@Property(name = "skipReleaseResourcesOnWithdrawal",
153 // boolValue = DEFAULT_SKIP_RELEASE_RESOURCES_ON_WITHDRAWAL,
154 // label = "Indicates whether skipping resource releases on withdrawal is enabled or not")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700155 public static final String IM_SKIP_RELEASE_RESOURCES_ON_WITHDRAWAL = "skipReleaseResourcesOnWithdrawal";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700156 public static final boolean IM_SKIP_RELEASE_RESOURCES_ON_WITHDRAWAL_DEFAULT = false;
157
158 //@Property(name = "numThreads",
159 // intValue = DEFAULT_NUM_THREADS,
160 // label = "Number of worker threads")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700161 public static final String IM_NUM_THREADS = "IMNumThreads";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700162 public static final int IM_NUM_THREADS_DEFAULT = 12;
163
164 //@Property(name = NUM_THREAD,
165 // intValue = DEFAULT_NUM_THREADS,
166 // label = "Number of worker threads")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700167 public static final String MM_NUM_THREADS = "NMNumThreads";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700168 public static final int MM_NUM_THREADS_DEFAULT = 12;
169
170 //@Property(name = "fallbackMeterPollFrequency", intValue = DEFAULT_POLL_FREQUENCY,
171 // label = "Frequency (in seconds) for polling meters via fallback provider")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700172 public static final String MM_FALLBACK_METER_POLL_FREQUENCY = "fallbackMeterPollFrequency";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700173 public static final int MM_FALLBACK_METER_POLL_FREQUENCY_DEFAULT = 30;
174
175 //@Property(name = "arpEnabled", boolValue = true,
176 // label = "Enable Address resolution protocol")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700177 public static final String NRM_ARP_ENABLED = "arpEnabled";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700178 public static final boolean NRM_ARP_ENABLED_DEFAULT = true;
179
180 //@Property(name = "ndpEnabled", boolValue = false,
181 // label = "Enable IPv6 neighbour discovery")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700182 public static final String NRM_NDP_ENABLED = "ndpEnabled";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700183 public static final boolean NRM_NDP_ENABLED_DEFAULT = false;
184
185 //@Property(name = "requestInterceptsEnabled", boolValue = true,
186 // label = "Enable requesting packet intercepts")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700187 public static final String NRM_REQUEST_INTERCEPTS_ENABLED = "requestInterceptsEnabled";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700188 public static final boolean NRM_REQUEST_INTERCEPTS_ENABLED_DEFAULT = true;
189
190 //@Property(name = PROBE_INTERVAL, intValue = DEFAULT_PROBE_INTERVAL,
191 // label = "Configure interval in seconds for device pipeconf probing")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700192 public static final String PWM_PROBE_INTERVAL = "probeInterval";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700193 public static final int PWM_PROBE_INTERVAL_DEFAULT = 15;
194
195 //@Property(name = "maxEvents", intValue = DEFAULT_MAX_EVENTS,
196 // label = "Maximum number of events to accumulate")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700197 public static final String DTP_MAX_EVENTS = "maxEvents";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700198 public static final int DTP_MAX_EVENTS_DEFAULT = 1000;
199
200 //@Property(name = "maxIdleMs", intValue = DEFAULT_MAX_IDLE_MS,
201 // label = "Maximum number of millis between events")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700202 public static final String DTP_MAX_IDLE_MS = "maxIdleMs";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700203 public static final int DTP_MAX_IDLE_MS_DEFAULT = 10;
204
205 //@Property(name = "maxBatchMs", intValue = DEFAULT_MAX_BATCH_MS,
206 // label = "Maximum number of millis for whole batch")
Ray Milkey2d7bca12018-10-17 14:51:52 -0700207 public static final String DTP_MAX_BATCH_MS = "maxBatchMs";
Ray Milkeyd04e2272018-10-16 18:20:18 -0700208 public static final int DTP_MAX_BATCH_MS_DEFAULT = 50;
209}