Ray Milkey | 309f9a0 | 2018-10-12 14:09:37 -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 | |
Ray Milkey | b5646e6 | 2018-10-16 11:42:18 -0700 | [diff] [blame] | 17 | package org.onosproject.openflow.controller.impl; |
| 18 | |
Ray Milkey | 309f9a0 | 2018-10-12 14:09:37 -0700 | [diff] [blame] | 19 | /** |
| 20 | * Name/Value constants for properties. |
| 21 | */ |
Ray Milkey | 309f9a0 | 2018-10-12 14:09:37 -0700 | [diff] [blame] | 22 | |
| 23 | public final class OsgiPropertyConstants { |
| 24 | |
| 25 | private OsgiPropertyConstants() { |
| 26 | } |
| 27 | |
| 28 | //@Property(name = "openflowPorts", value = DEFAULT_OFPORT, |
| 29 | // label = "Port numbers (comma separated) used by OpenFlow protocol; default is 6633,6653") |
| 30 | public static final String OFPORTS = "openflowPorts"; |
| 31 | public static final String OFPORTS_DEFAULT = "6633,6653"; |
| 32 | |
| 33 | //@Property(name = "workerThreads", intValue = DEFAULT_WORKER_THREADS, |
| 34 | // label = "Number of controller worker threads") |
Ray Milkey | 2d7bca1 | 2018-10-17 14:51:52 -0700 | [diff] [blame] | 35 | public static final String WORKER_THREADS = "workerThreads"; |
Ray Milkey | 309f9a0 | 2018-10-12 14:09:37 -0700 | [diff] [blame] | 36 | public static final int WORKER_THREADS_DEFAULT = 0; |
| 37 | |
| 38 | //@Property(name = "tlsMode", value = "", |
| 39 | // label = "TLS mode for OpenFlow channel; options are: disabled [default], enabled, strict") |
| 40 | public static final String TLS_MODE = "tlsMode"; |
| 41 | public static final String TLS_MODE_DEFAULT = ""; |
| 42 | |
| 43 | //@Property(name = "keyStore", value = "", |
| 44 | // label = "File path to key store for TLS connections") |
| 45 | public static final String KEY_STORE = "keyStore"; |
| 46 | public static final String KEY_STORE_DEFAULT = ""; |
| 47 | |
| 48 | //@Property(name = "keyStorePassword", value = "", |
| 49 | // label = "Key store password") |
| 50 | public static final String KEY_STORE_PASSWORD = "keyStorePassword"; |
| 51 | public static final String KEY_STORE_PASSWORD_DEFAULT = ""; |
| 52 | |
| 53 | //@Property(name = "trustStore", value = "", |
| 54 | // label = "File path to trust store for TLS connections") |
| 55 | public static final String TRUST_STORE = "trustStore"; |
| 56 | public static final String TRUST_STORE_DEFAULT = ""; |
| 57 | |
| 58 | //@Property(name = "trustStorePassword", value = "", |
| 59 | // label = "Trust store password") |
| 60 | public static final String TRUST_STORE_PASSWORD = "trustStorePassword"; |
| 61 | public static final String TRUST_STORE_PASSWORD_DEFAULT = ""; |
| 62 | |
| 63 | } |