Add some resource types to resource type validation table

1. What is the problem
There are some differences between available resource types [1] and resource
type validation table [2]. Some resources in [1] also need resource mapping
between central Neutron and local Neutron, but they are not added to resource
type validation table in [2].

2. What is the solution for the problem
Add some resource types to resource type validation table.

3. What the features need to be implemented to the tricircle to
realize the solution
None.

[1] https://github.com/openstack/tricircle/blob/master/tricircle/common/constants.py#L23
[2] https://github.com/openstack/tricircle/blob/master/tricircle/common/constants.py#L47

Change-Id: I6426964d5a83e4e18b462a2ab96af6d49883c9e2
This commit is contained in:
Dongfeng Huang 2017-07-23 11:51:48 +08:00
parent fc2d6add57
commit 439ea99432
1 changed files with 3 additions and 1 deletions

View File

@ -46,7 +46,9 @@ REAL_SHADOW_TYPE_MAP = {
# check whether the resource type is properly provisioned.
def is_valid_resource_type(resource_type):
resource_type_table = [RT_NETWORK, RT_SUBNET, RT_PORT, RT_ROUTER, RT_SG]
resource_type_table = [RT_NETWORK, RT_SUBNET, RT_PORT, RT_ROUTER, RT_SG,
RT_TRUNK, RT_PORT_PAIR, RT_PORT_PAIR_GROUP,
RT_FLOW_CLASSIFIER, RT_PORT_CHAIN]
return resource_type in resource_type_table