3c422ddc3e
Previous patch https://review.openstack.org/#/c/349776/ has renamed the DB part. tacker/vm/plugin.py and tacker/db/vm/vm_db.py are not renamed in this patch due to the git problem. (It is always be done by 'delete/add' instead of 'rename'). They will be renamed in later patch with unit tests. Change-Id: I334e0e79c8bdba4a10d97ab691b1e6b242a0f1c5 Partial-bug: #1589018
39 lines
1.3 KiB
Python
39 lines
1.3 KiB
Python
# Copyright 2013, 2014 Intel Corporation.
|
|
# All Rights Reserved.
|
|
#
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
# sevice type
|
|
SVC_TYPE_ROUTER = 'router'
|
|
SVC_TYPE_LOADBALANCER = 'loadbalancer'
|
|
|
|
# attribute key for service to spin up vnf
|
|
# for nova driver. novaclient library uses those
|
|
ATTR_KEY_IMAGE = 'image'
|
|
ATTR_KEY_FLAVOR = 'flavor'
|
|
ATTR_KEY_MGMT_NETWORK = 'mgmt-network'
|
|
|
|
# attribute key for vnf template for heat
|
|
ATTR_KEY_HEAT_STACK_NAME = 'stack_name'
|
|
ATTR_KEY_HEAT_TEMPLATE_URL = 'template_url'
|
|
ATTR_KEY_HEAT_TEMPLATE = 'template'
|
|
ATTR_KEY_HEAT_FILES = 'files'
|
|
ATTR_KEY_HEAT_PARAMETERS = 'parameters'
|
|
|
|
# Role of service context
|
|
ROLE_NONE = 'None'
|
|
ROLE_MGMT = 'mgmt'
|
|
ROLE_TWOLEG_INGRESS = 'two-leg-ingress'
|
|
ROLE_TWOLEG_EGRESS = 'two-leg-egress'
|