2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017-2018 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
13 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * ============LICENSE_END=========================================================
24 package org.onap.appc.adapter.netconf.util;
26 public class Constants {
28 public static final String CONFIGURE_PATH = "/restconf/config/opendaylight-inventory:nodes/node/";
29 public static final String CONNECT_PATH = "/restconf/config/opendaylight-inventory:nodes/node/controller-config/yang-ext:mount/config:modules";
30 public static final String CHECK_CONNECTION_PATH = "/restconf/operational/opendaylight-inventory:nodes/node/";
31 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 public static final String CONTROLLER_IP = "127.0.0.1";
34 public static final int CONTROLLER_PORT = 8181;
35 public static final String PROTOCOL = "http";
38 public static final String NETCONF_SCHEMA = "sdnctl";
39 public static final String DEVICE_AUTHENTICATION_TABLE_NAME = "DEVICE_AUTHENTICATION";
40 public static final String CONFIGFILES_TABLE_NAME = "CONFIGFILES";
41 public static final String DEVICE_INTERFACE_LOG_TABLE_NAME = "DEVICE_INTERFACE_LOG";
42 public static final String FILE_CONTENT_TABLE_FIELD_NAME = "FILE_CONTENT";
43 public static final String FILE_NAME_TABLE_FIELD_NAME = "FILE_NAME";
44 public static final String USER_NAME_TABLE_FIELD_NAME = "USER_NAME";
45 public static final String PASSWORD_TABLE_FIELD_NAME = "PASSWORD";
46 public static final String VM_HOST_TABLE_FIELD_NAME = "VM_HOST";
47 public static final String VM_NAME_TABLE_FIELD_NAME = "VM_NAME";
48 public static final String PORT_NUMBER_TABLE_FIELD_NAME = "PORT_NUMBER";
49 public static final String VNF_TYPE_TABLE_FIELD_NAME = "VNF_TYPE";
50 public static final String SERVICE_INSTANCE_ID_FIELD_NAME = "SERVICE_INSTANCE_ID";
51 public static final String REQUEST_ID_FIELD_NAME = "REQUEST_ID";
52 public static final String CREATION_DATE_FIELD_NAME = "CREATION_DATE";
53 public static final String LOG_FIELD_NAME = "LOG";
56 public static final String VNF_TYPE_FIELD_NAME = "org.onap.appc.vftype";
57 public static final String TARGET_VNF_TYPE = "target-vnf-type";
58 public static final String FILE_CONTENT_FIELD_NAME = "file-content";
59 public static final String CONNECTION_DETAILS_FIELD_NAME = "connection-details";
60 public static final String CONFIGURATION_FILE_FIELD_NAME = "configuration-file-name";
61 public static final String VNF_HOST_IP_ADDRESS_FIELD_NAME = "vnf-host-ip-address";
62 public static final String DG_ERROR_FIELD_NAME = "org.onap.appc.dg.error";
63 public static final String RESOURCEKEY = "resourceKey";
64 public static final String ATTRIBUTE_ERROR_MESSAGE = "error-message";
65 public static final String DG_OUTPUT_STATUS_MESSAGE = "output.status.message";