f2d61d258750315bc75650821c24c0c7b4674c25
[so.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 /*
22  * Copyright (C) 2018 Bell Canada. All rights reserved.
23  *
24  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
25  * the License. You may obtain a copy of the License at
26  *
27  * http://www.apache.org/licenses/LICENSE-2.0
28  *
29  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
30  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
31  * specific language governing permissions and limitations under the License.
32  */
33 package org.onap.so.heatbridge.constants;
34
35 public class HeatBridgeConstants {
36
37     /**
38      * Openstack related constants
39      */
40     public static final Integer OS_DEFAULT_HEAT_NESTING = 5;
41     public static final String OS_SERVER_RESOURCE_TYPE = "OS::Nova::Server";
42     public static final String OS_PORT_RESOURCE_TYPE = "OS::Neutron::Port";
43     public static final String OS_SRIOV_PORT_TYPE = "direct";
44     public static final String OS_PCI_SLOT_KEY = "pci_slot";
45     public static final String OS_PHYSICAL_NETWORK_KEY = "physical_network";
46     public static final String OS_VLAN_NETWORK_KEY = "vlan";
47     public static final String OS_UNKNOWN_KEY = "unknown";
48     public static final String OS_RESOURCES_SELF_LINK_KEY = "self";
49     public static final String OS_DEFAULT_DOMAIN_NAME = "default";
50     public static final String OS_KEYSTONE_V2_KEY = "v2.0";
51     public static final String OS_KEYSTONE_V3_KEY = "v3";
52     public static final String OS_NAME_KEY = "name";
53
54     /**
55      * AAI related constants
56      */
57     public static final String AAI_GENERIC_VNF = "generic-vnf";
58     public static final String AAI_GENERIC_VNF_ID = "generic-vnf.vnf-id";
59     public static final String AAI_PSERVER = "pserver";
60     public static final String AAI_VSERVER = "vserver";
61     public static final String AAI_PSERVER_HOSTNAME = "pserver.hostname";
62     public static final String AAI_VF_MODULE = "vf-module";
63     public static final String AAI_VF_MODULE_ID = "vf-module.vf-module-id";
64     public static final String AAI_IMAGE = "image";
65     public static final String AAI_IMAGE_ID = "image.image-id";
66     public static final String AAI_CLOUD_OWNER = "cloud-region.cloud-owner";
67     public static final String AAI_CLOUD_REGION_ID = "cloud-region.cloud-region-id";
68     public static final String AAI_FLAVOR = "flavor";
69     public static final String AAI_FLAVOR_ID = "flavor.flavor-id";
70     public static final String AAI_RESOURCE_DEPTH_ALL = "all";
71     public static final String AAI_SRIOV_PF = "sriov-pf";
72     public static final String AAI_P_INTERFACE_NAME = "p-interface.interface-name";
73     public static final String AAI_SRIOV_PF_PCI_ID = "sriov-pf.pf-pci-id";
74
75     /**
76      * Keys for internal usage
77      */
78     public static final String KEY_FLAVORS = "flavors";
79     public static final String KEY_IMAGES = "images";
80     public static final String KEY_VSERVERS = "vservers";
81     public static final String KEY_SRIOV_PFS = "pserverSriovPfs";
82     public static final String KEY_GLOBAL_SUBSCRIBER_ID = "globalSubscriberId";
83     public static final String KEY_SERVICE_TYPE = "subscriptionServiceType";
84     public static final String KEY_SERVICE_INSTANCE_ID = "serviceInstanceId";
85     public static final String KEY_VNF_INSTANCE_ID = "genericVnfId";
86     public static final String KEY_MSO_REQUEST_ID = "msoRequestId";
87     public static final String KEY_SO_WORKFLOW_EXCEPTION = "WorkflowException";
88     public static final String KEY_PROCESS_STATUS_MSG = "processStatusMsg";
89
90     private HeatBridgeConstants() {
91         throw new IllegalStateException("Trying to instantiate a constants class.");
92     }
93
94 }