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 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 23 | public static final String USE_REGION_FOR_BALANCE_ROLES = "useRegionForBalanceRoles"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 24 | public static final boolean USE_REGION_FOR_BALANCE_ROLES_DEFAULT = false; |
| 25 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 26 | public static final String REBALANCE_ROLES_ON_UPGRADE = "rebalanceRolesOnUpgrade"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 27 | public static final boolean REBALANCE_ROLES_ON_UPGRADE_DEFAULT = true; |
| 28 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 29 | public static final String SHARED_THREAD_POOL_SIZE = "sharedThreadPoolSize"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 30 | public static final int SHARED_THREAD_POOL_SIZE_DEFAULT = 30; |
| 31 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 32 | public static final String MAX_EVENT_TIME_LIMIT = "maxEventTimeLimit"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 33 | public static final int MAX_EVENT_TIME_LIMIT_DEFAULT = 2000; |
| 34 | |
Thomas Vachuska | f566fa2 | 2018-10-30 14:03:36 -0700 | [diff] [blame] | 35 | public static final String CALCULATE_PERFORMANCE_CHECK = "sharedThreadPerformanceCheck"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 36 | public static final boolean CALCULATE_PERFORMANCE_CHECK_DEFAULT = false; |
| 37 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 38 | public static final String ALLOW_EXTRANEOUS_RULES = "allowExtraneousRules"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 39 | public static final boolean ALLOW_EXTRANEOUS_RULES_DEFAULT = false; |
| 40 | |
Ivan Eroshkin | c0a950d | 2019-11-25 10:38:56 +0100 | [diff] [blame] | 41 | public static final String IMPORT_EXTRANEOUS_RULES = "importExtraneousRules"; |
| 42 | public static final boolean IMPORT_EXTRANEOUS_RULES_DEFAULT = false; |
| 43 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 44 | public static final String PURGE_ON_DISCONNECTION = "purgeOnDisconnection"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 45 | public static final boolean PURGE_ON_DISCONNECTION_DEFAULT = false; |
| 46 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 47 | public static final String POLL_FREQUENCY = "fallbackFlowPollFrequency"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 48 | public static final int POLL_FREQUENCY_DEFAULT = 30; |
| 49 | |
Thomas Vachuska | f566fa2 | 2018-10-30 14:03:36 -0700 | [diff] [blame] | 50 | public static final String FOM_NUM_THREADS = "numThreads"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 51 | public static final int FOM_NUM_THREADS_DEFAULT = 4; |
| 52 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 53 | public static final String GM_POLL_FREQUENCY = "fallbackGroupPollFrequency"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 54 | public static final int GM_POLL_FREQUENCY_DEFAULT = 30; |
| 55 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 56 | public static final String GM_PURGE_ON_DISCONNECTION = "purgeOnDisconnection"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 57 | public static final boolean GM_PURGE_ON_DISCONNECTION_DEFAULT = false; |
| 58 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 59 | public static final String HM_ALLOW_DUPLICATE_IPS = "allowDuplicateIps"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 60 | public static final boolean HM_ALLOW_DUPLICATE_IPS_DEFAULT = true; |
| 61 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 62 | public static final String HM_MONITOR_HOSTS = "monitorHosts"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 63 | public static final boolean HM_MONITOR_HOSTS_DEFAULT = false; |
| 64 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 65 | public static final String HM_PROBE_RATE = "probeRate"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 66 | public static final long HM_PROBE_RATE_DEFAULT = 30000; |
| 67 | |
jobin | d19b714 | 2019-05-17 09:46:52 -0400 | [diff] [blame] | 68 | public static final String HM_HOST_MOVE_TRACKER_ENABLE = "hostMoveTrackerEnabled"; |
| 69 | public static final boolean HM_HOST_MOVE_TRACKER_ENABLE_DEFAULT = false; |
| 70 | |
| 71 | public static final String HM_HOST_MOVED_THRESHOLD_IN_MILLIS = "hostMoveThresholdInMillis"; |
| 72 | public static final int HM_HOST_MOVED_THRESHOLD_IN_MILLIS_DEFAULT = 200000; |
| 73 | |
| 74 | public static final String HM_HOST_MOVE_COUNTER = "hostMoveCounter"; |
| 75 | public static final int HM_HOST_MOVE_COUNTER_DEFAULT = 3; |
| 76 | |
| 77 | public static final String HM_OFFENDING_HOST_EXPIRY_IN_MINS = "offendingHostExpiryInMins"; |
| 78 | public static final long HM_OFFENDING_HOST_EXPIRY_IN_MINS_DEFAULT = 1; |
| 79 | |
| 80 | public static final String HM_OFFENDING_HOST_THREADS_POOL_SIZE = "offendingHostClearThreadPool"; |
| 81 | public static final int HM_OFFENDING_HOST_THREADS_POOL_SIZE_DEFAULT = 10; |
| 82 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 83 | public static final String HM_GREEDY_LEARNING_IPV6 = "greedyLearningIpv6"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 84 | public static final boolean HM_GREEDY_LEARNING_IPV6_DEFAULT = false; |
| 85 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 86 | public static final String ICR_USE_FLOW_OBJECTIVES = "useFlowObjectives"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 87 | public static final boolean ICR_USE_FLOW_OBJECTIVES_DEFAULT = false; |
| 88 | |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 89 | public static final String ICR_LABEL_SELECTION = "labelSelection"; |
| 90 | public static final String ICR_LABEL_SELECTION_DEFAULT = "RANDOM"; |
| 91 | |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 92 | public static final String ICR_OPT_LABEL_SELECTION = "optLabelSelection"; |
| 93 | public static final String ICR_OPT_LABEL_SELECTION_DEFAULT = "NONE"; |
| 94 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 95 | public static final String ICR_FLOW_OPTIMIZATION = "optimizeInstructions"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 96 | public static final boolean ICR_FLOW_OPTIMIZATION_DEFAULT = false; |
| 97 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 98 | public static final String ICR_COPY_TTL = "useCopyTtl"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 99 | public static final boolean ICR_COPY_TTL_DEFAULT = false; |
| 100 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 101 | public static final String ICU_ENABLED = "enabled"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 102 | public static final boolean ICU_ENABLED_DEFAULT = true; |
| 103 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 104 | public static final String ICU_PERIOD = "period"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 105 | public static final int ICU_PERIOD_DEFAULT = 5; //seconds |
| 106 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 107 | public static final String ICU_RETRY_THRESHOLD = "retryThreshold"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 108 | public static final int ICU_RETRY_THRESHOLD_DEFAULT = 5; //tries |
| 109 | |
Thomas Vachuska | f566fa2 | 2018-10-30 14:03:36 -0700 | [diff] [blame] | 110 | public static final String NON_DISRUPTIVE_INSTALLATION_WAITING_TIME = "nonDisruptiveInstallationWaitingTime"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 111 | public static final int NON_DISRUPTIVE_INSTALLATION_WAITING_TIME_DEFAULT = 1; |
| 112 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 113 | public static final String IM_SKIP_RELEASE_RESOURCES_ON_WITHDRAWAL = "skipReleaseResourcesOnWithdrawal"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 114 | public static final boolean IM_SKIP_RELEASE_RESOURCES_ON_WITHDRAWAL_DEFAULT = false; |
| 115 | |
Thomas Vachuska | f566fa2 | 2018-10-30 14:03:36 -0700 | [diff] [blame] | 116 | public static final String IM_NUM_THREADS = "numThreads"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 117 | public static final int IM_NUM_THREADS_DEFAULT = 12; |
| 118 | |
Thomas Vachuska | f566fa2 | 2018-10-30 14:03:36 -0700 | [diff] [blame] | 119 | public static final String MM_NUM_THREADS = "numThreads"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 120 | public static final int MM_NUM_THREADS_DEFAULT = 12; |
| 121 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 122 | public static final String MM_FALLBACK_METER_POLL_FREQUENCY = "fallbackMeterPollFrequency"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 123 | public static final int MM_FALLBACK_METER_POLL_FREQUENCY_DEFAULT = 30; |
| 124 | |
Gamze Abaka | f57ef60 | 2019-03-11 06:52:48 +0000 | [diff] [blame] | 125 | public static final String MM_PURGE_ON_DISCONNECTION = "purgeOnDisconnection"; |
| 126 | public static final boolean MM_PURGE_ON_DISCONNECTION_DEFAULT = false; |
| 127 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 128 | public static final String NRM_ARP_ENABLED = "arpEnabled"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 129 | public static final boolean NRM_ARP_ENABLED_DEFAULT = true; |
| 130 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 131 | public static final String NRM_NDP_ENABLED = "ndpEnabled"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 132 | public static final boolean NRM_NDP_ENABLED_DEFAULT = false; |
| 133 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 134 | public static final String NRM_REQUEST_INTERCEPTS_ENABLED = "requestInterceptsEnabled"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 135 | public static final boolean NRM_REQUEST_INTERCEPTS_ENABLED_DEFAULT = true; |
| 136 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 137 | public static final String PWM_PROBE_INTERVAL = "probeInterval"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 138 | public static final int PWM_PROBE_INTERVAL_DEFAULT = 15; |
| 139 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 140 | public static final String DTP_MAX_EVENTS = "maxEvents"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 141 | public static final int DTP_MAX_EVENTS_DEFAULT = 1000; |
| 142 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 143 | public static final String DTP_MAX_IDLE_MS = "maxIdleMs"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 144 | public static final int DTP_MAX_IDLE_MS_DEFAULT = 10; |
| 145 | |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 146 | public static final String DTP_MAX_BATCH_MS = "maxBatchMs"; |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 147 | public static final int DTP_MAX_BATCH_MS_DEFAULT = 50; |
arjunek1992 | f6353d4 | 2018-11-20 08:56:29 -0500 | [diff] [blame] | 148 | |
Thomas Vachuska | bd8ddfe | 2018-12-13 12:58:48 -0800 | [diff] [blame] | 149 | public static final String AUDIT_ENABLED = "auditEnabled"; |
| 150 | public static final boolean AUDIT_ENABLED_DEFAULT = false; |
arjunek1992 | f6353d4 | 2018-11-20 08:56:29 -0500 | [diff] [blame] | 151 | |
Thomas Vachuska | bd8ddfe | 2018-12-13 12:58:48 -0800 | [diff] [blame] | 152 | public static final String AUDIT_LOGGER = "auditLogger"; |
| 153 | public static final String AUDIT_LOGGER_DEFAULT = "securityAudit"; |
arjunek1992 | f6353d4 | 2018-11-20 08:56:29 -0500 | [diff] [blame] | 154 | |
pier | 8b3aef4 | 2019-03-11 15:14:02 -0700 | [diff] [blame] | 155 | public static final String FOM_ACCUMULATOR_MAX_OBJECTIVES = "accumulatorMaxObjectives"; |
| 156 | public static final int FOM_ACCUMULATOR_MAX_OBJECTIVES_DEFAULT = 1000; |
| 157 | |
| 158 | public static final String FOM_ACCUMULATOR_MAX_IDLE_MILLIS = "accumulatorMaxIdleMillis"; |
| 159 | public static final int FOM_ACCUMULATOR_MAX_IDLE_MILLIS_DEFAULT = 10; |
| 160 | |
| 161 | public static final String FOM_ACCUMULATOR_MAX_BATCH_MILLIS = "accumulatorMaxBatchMillis"; |
| 162 | public static final int FOM_ACCUMULATOR_MAX_BATCH_MILLIS_DEFAULT = 500; |
| 163 | |
Ray Milkey | d04e227 | 2018-10-16 18:20:18 -0700 | [diff] [blame] | 164 | } |