Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | package org.onosproject.net; |
| 18 | |
| 19 | public 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 25 | public static final String USE_REGION_FOR_BALANCE_ROLES = "useRegionForBalanceRoles"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 26 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 31 | public static final String REBALANCE_ROLES_ON_UPGRADE = "rebalanceRolesOnUpgrade"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 32 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 36 | public static final String SHARED_THREAD_POOL_SIZE = "sharedThreadPoolSize"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 37 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 41 | public static final String MAX_EVENT_TIME_LIMIT = "maxEventTimeLimit"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 42 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 46 | public static final String CALCULATE_PERFORMANCE_CHECK = "calculatePoolPerformance"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 47 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 51 | public static final String ALLOW_EXTRANEOUS_RULES = "allowExtraneousRules"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 52 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 56 | public static final String PURGE_ON_DISCONNECTION = "purgeOnDisconnection"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 57 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 61 | public static final String POLL_FREQUENCY = "fallbackFlowPollFrequency"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 62 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 67 | public static final String FOM_NUM_THREADS = "FOMNumThreads"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 68 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 72 | public static final String GM_POLL_FREQUENCY = "fallbackGroupPollFrequency"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 73 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 77 | public static final String GM_PURGE_ON_DISCONNECTION = "purgeOnDisconnection"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 78 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 82 | public static final String HM_ALLOW_DUPLICATE_IPS = "allowDuplicateIps"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 83 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 87 | public static final String HM_MONITOR_HOSTS = "monitorHosts"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 88 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 92 | public static final String HM_PROBE_RATE = "probeRate"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 93 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 97 | public static final String HM_GREEDY_LEARNING_IPV6 = "greedyLearningIpv6"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 98 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 103 | public static final String ICR_USE_FLOW_OBJECTIVES = "useFlowObjectives"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 104 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 121 | public static final String ICR_FLOW_OPTIMIZATION = "optimizeInstructions"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 122 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 127 | public static final String ICR_COPY_TTL = "useCopyTtl"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 128 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 132 | public static final String ICU_ENABLED = "enabled"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 133 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 137 | public static final String ICU_PERIOD = "period"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 138 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 142 | public static final String ICU_RETRY_THRESHOLD = "retryThreshold"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 143 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 149 | "nonDisruptiveInstallationWaitingTime"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 150 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 155 | public static final String IM_SKIP_RELEASE_RESOURCES_ON_WITHDRAWAL = "skipReleaseResourcesOnWithdrawal"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 156 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 161 | public static final String IM_NUM_THREADS = "IMNumThreads"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 162 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 167 | public static final String MM_NUM_THREADS = "NMNumThreads"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 168 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 172 | public static final String MM_FALLBACK_METER_POLL_FREQUENCY = "fallbackMeterPollFrequency"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 173 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 177 | public static final String NRM_ARP_ENABLED = "arpEnabled"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 178 | public static final boolean NRM_ARP_ENABLED_DEFAULT = true; |
| 179 | |
| 180 | //@Property(name = "ndpEnabled", boolValue = false, |
| 181 | // label = "Enable IPv6 neighbour discovery") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 182 | public static final String NRM_NDP_ENABLED = "ndpEnabled"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 183 | public static final boolean NRM_NDP_ENABLED_DEFAULT = false; |
| 184 | |
| 185 | //@Property(name = "requestInterceptsEnabled", boolValue = true, |
| 186 | // label = "Enable requesting packet intercepts") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 187 | public static final String NRM_REQUEST_INTERCEPTS_ENABLED = "requestInterceptsEnabled"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 188 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 192 | public static final String PWM_PROBE_INTERVAL = "probeInterval"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 193 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 197 | public static final String DTP_MAX_EVENTS = "maxEvents"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 198 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 202 | public static final String DTP_MAX_IDLE_MS = "maxIdleMs"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 203 | 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 Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 207 | public static final String DTP_MAX_BATCH_MS = "maxBatchMs"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 208 | public static final int DTP_MAX_BATCH_MS_DEFAULT = 50; |
| 209 | } |