fdf7ce38f17fc0fd4e8b7c44e4125ae1e945f4a7
[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_PHYSICAL_INTERFACE_KEY = "physical-interface";
47     public static final String OS_VLAN_NETWORK_KEY = "vlan";
48     public static final String OS_UNKNOWN_KEY = "unknown";
49     public static final String OS_RESOURCES_SELF_LINK_KEY = "self";
50     public static final String OS_DEFAULT_DOMAIN_NAME = "default";
51     public static final String OS_KEYSTONE_V2_KEY = "v2.0";
52     public static final String OS_KEYSTONE_V3_KEY = "v3";
53     public static final String OS_NAME_KEY = "name";
54
55     /**
56      * AAI related constants
57      */
58     public static final String AAI_GENERIC_VNF = "generic-vnf";
59     public static final String AAI_GENERIC_VNF_ID = "generic-vnf.vnf-id";
60     public static final String AAI_PSERVER = "pserver";
61     public static final String AAI_VSERVER = "vserver";
62     public static final String AAI_PSERVER_HOSTNAME = "pserver.hostname";
63     public static final String AAI_VF_MODULE = "vf-module";
64     public static final String AAI_VF_MODULE_ID = "vf-module.vf-module-id";
65     public static final String AAI_IMAGE = "image";
66     public static final String AAI_IMAGE_ID = "image.image-id";
67     public static final String AAI_CLOUD_OWNER = "cloud-region.cloud-owner";
68     public static final String AAI_CLOUD_REGION_ID = "cloud-region.cloud-region-id";
69     public static final String AAI_FLAVOR = "flavor";
70     public static final String AAI_FLAVOR_ID = "flavor.flavor-id";
71     public static final String AAI_RESOURCE_DEPTH_ALL = "all";
72     public static final String AAI_SRIOV_PF = "sriov-pf";
73     public static final String AAI_P_INTERFACE_NAME = "p-interface.interface-name";
74     public static final String AAI_SRIOV_PF_PCI_ID = "sriov-pf.pf-pci-id";
75     public static final String AAI_VNFC = "vnfc";
76     public static final String AAI_VNFC_ID = "vnfc.vnfc-name";
77
78     /**
79      * Keys for internal usage
80      */
81     public static final String KEY_FLAVORS = "flavors";
82     public static final String KEY_IMAGES = "images";
83     public static final String KEY_VSERVERS = "vservers";
84     public static final String KEY_SRIOV_PFS = "pserverSriovPfs";
85     public static final String KEY_GLOBAL_SUBSCRIBER_ID = "globalSubscriberId";
86     public static final String KEY_SERVICE_TYPE = "subscriptionServiceType";
87     public static final String KEY_SERVICE_INSTANCE_ID = "serviceInstanceId";
88     public static final String KEY_VNF_INSTANCE_ID = "genericVnfId";
89     public static final String KEY_MSO_REQUEST_ID = "msoRequestId";
90     public static final String KEY_SO_WORKFLOW_EXCEPTION = "WorkflowException";
91     public static final String KEY_PROCESS_STATUS_MSG = "processStatusMsg";
92
93     private HeatBridgeConstants() {
94         throw new IllegalStateException("Trying to instantiate a constants class.");
95     }
96
97 }