Committed by
Gerrit Code Review
Added Constant file, to resolve hardcoded value from NetconfDeviceProviderTest.
Change-Id: I66e9c761b2b40e5a237ceecac4b82d035c9fb7f1
Showing
2 changed files
with
46 additions
and
0 deletions
This diff is collapsed. Click to expand it.
1 | +/* | ||
2 | + * Copyright 2015 Open Networking Laboratory | ||
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 | +package org.onosproject.provider.netconf.device.impl; | ||
17 | + | ||
18 | +public final class NetconfDeviceProviderTestConstant { | ||
19 | + | ||
20 | + private NetconfDeviceProviderTestConstant() { | ||
21 | + } | ||
22 | + | ||
23 | + public static final int ZERO = 0; | ||
24 | + public static final int EVENTINTERVAL = 5; | ||
25 | + public static final String DEV_CONFIG = "devConfigs"; | ||
26 | + public static final String CONFIG_WITH_INVALID_ENTRY_NUMBER = "cisco:cisco" | ||
27 | + + "@10.18.11.14:cisco:active"; | ||
28 | + public static final String CONFIG_WITH_NULL_ENTRY = "null:null@null:0:active"; | ||
29 | + public static final String CONFIG_WITH_DIFFERENT_DEVICE_STATE = "cisco:cisco@10.18.11.14:22:active," | ||
30 | + + "cisco:cisco@10.18.11.18:22:inactive,cisco:cisco@10.18.11.14:22:invalid," | ||
31 | + + "cisco:cisco@10.18.11.14:22:null"; | ||
32 | + public static final String CONFIG_WITH_ARRAY_OUT_OF_BOUNDEX = "@10.18.11.14:22:active"; | ||
33 | + public static final String CONFIG_ENTRY_FOR_DEACTIVATE = "netconf:cisco" | ||
34 | + + "@10.18.11.14:22:active"; | ||
35 | + public static final String DEVICE_IP = "10.18.14.19"; | ||
36 | + public static final int DEVICE_PORT = 22; | ||
37 | + public static final String DEVICE_USERNAME = "cisco"; | ||
38 | + public static final String DEVICE_PASSWORD = "cisco"; | ||
39 | + public static final String AT_THE_RATE = "@"; | ||
40 | + public static final String COLON = ":"; | ||
41 | + public static final String NULL = ""; | ||
42 | + public static final String NULL_NULL = "null,null"; | ||
43 | + public static final String SCHEME_NETCONF = "netconf"; | ||
44 | + public static final String DEVICE_ID = "of:0000000000000001"; | ||
45 | + | ||
46 | +} |
-
Please register or login to post a comment