e8b8e9378c752da3a92a39c40818d9717db32f84
[appc.git] / appc-adapters / appc-netconf-adapter / appc-netconf-adapter-bundle / src / main / java / org / openecomp / appc / adapter / netconf / util / Constants.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Copyright (C) 2017 Amdocs
8  * =============================================================================
9  * Licensed under the Apache License, Version 2.0 (the "License");
10  * you may not use this file except in compliance with the License.
11  * You may obtain a copy of the License at
12  * 
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  * 
15  * Unless required by applicable law or agreed to in writing, software
16  * distributed under the License is distributed on an "AS IS" BASIS,
17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18  * See the License for the specific language governing permissions and
19  * limitations under the License.
20  * 
21  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
22  * ============LICENSE_END=========================================================
23  */
24
25 package org.onap.appc.adapter.netconf.util;
26
27 public class Constants {
28
29     public static final String CONFIGURE_PATH = "/restconf/config/opendaylight-inventory:nodes/node/";
30     public static final String CONNECT_PATH = "/restconf/config/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules";
31     public static final String CHECK_CONNECTION_PATH = "/restconf/operational/opendaylight-inventory:nodes/node/";
32     public static final String DISCONNECT_PATH = "/restconf/config/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules/module/odl-sal-netconf-connector-cfg:sal-netconf-connector/";
33
34     public static final String CONTROLLER_IP = "127.0.0.1";
35     public static final int CONTROLLER_PORT = 8181;
36     public static final String PROTOCOL = "http";
37
38     // tables and fields
39     public static final String NETCONF_SCHEMA = "sdnctl";
40     public static final String DEVICE_AUTHENTICATION_TABLE_NAME = "DEVICE_AUTHENTICATION";
41     public static final String CONFIGFILES_TABLE_NAME = "CONFIGFILES";
42     public static final String DEVICE_INTERFACE_LOG_TABLE_NAME = "DEVICE_INTERFACE_LOG";
43     public static final String FILE_CONTENT_TABLE_FIELD_NAME = "FILE_CONTENT";
44     public static final String FILE_NAME_TABLE_FIELD_NAME = "FILE_NAME";
45     public static final String USER_NAME_TABLE_FIELD_NAME = "USER_NAME";
46     public static final String PASSWORD_TABLE_FIELD_NAME = "PASSWORD";
47     public static final String VM_HOST_TABLE_FIELD_NAME = "VM_HOST";
48     public static final String VM_NAME_TABLE_FIELD_NAME = "VM_NAME";
49     public static final String PORT_NUMBER_TABLE_FIELD_NAME = "PORT_NUMBER";
50     public static final String VNF_TYPE_TABLE_FIELD_NAME = "VNF_TYPE";
51     public static final String SERVICE_INSTANCE_ID_FIELD_NAME = "SERVICE_INSTANCE_ID";
52     public static final String REQUEST_ID_FIELD_NAME = "REQUEST_ID";
53     public static final String CREATION_DATE_FIELD_NAME = "CREATION_DATE";
54     public static final String LOG_FIELD_NAME = "LOG";
55
56     // input fields names
57     public static final String VNF_TYPE_FIELD_NAME = "org.onap.appc.vftype";
58     public static final String TARGET_VNF_TYPE = "target-vnf-type";
59     public static final String FILE_CONTENT_FIELD_NAME = "file-content";
60     public static final String CONNECTION_DETAILS_FIELD_NAME = "connection-details";
61     public static final String CONFIGURATION_FILE_FIELD_NAME = "configuration-file-name";
62     public static final String VNF_HOST_IP_ADDRESS_FIELD_NAME = "vnf-host-ip-address";
63     public static final String DG_ERROR_FIELD_NAME = "org.onap.appc.dg.error";
64     public static final String RESOURCEKEY = "resourceKey";
65     public static final String ATTRIBUTE_ERROR_MESSAGE = "error-message";
66     public static final String DG_OUTPUT_STATUS_MESSAGE = "output.status.message";
67
68 }