VNFD is presented in an arbitrary on horizon
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tacker |
Won't Fix
|
Undecided
|
JangwonLee |
Bug Description
When a user creates a VNFD with a template of type dic, VNFD is presented on Horizon in an arbitrary order, non-identical to the order of the input file.
The result like below(by Horizon)
template: tosca-vnfd-
description: Demo example
metadata: {template_name: sample-tosca-vnfd}
topology_template:
node_templates:
CP1:
properties: {anti_spoofing_
requirements:
- virtualLink: {node: VL1}
- virtualBinding: {node: VDU1}
type: tosca.nodes.
VDU1:
capabilities:
properties:
image: cirros-
metadata: {metering.
type: tosca.nodes.
VL1:
properties: {network_name: net_mgmt, vendor: Tacker}
type: tosca.nodes.nfv.VL
policies:
- SP1:
properties: {cooldown: 120, default_instances: 1, increment: 1, max_instances: 3,
targets: [VDU1]
type: tosca.policies.
- vdu_cpu_
triggers:
action: [SP1]
metadata: SG1
metric: cpu_util
action: [SP1]
metadata: SG1
metric: cpu_util
type: tosca.policies.
tosca_definitio
It caused by the property of dict. At first, after 'yaml.load()' the order has changed.
And 'yaml.safe_dump()' dumps changed dict order by alphabet. So the above result has created.
We need to make ordered_load and ordered_dump function to fix the VNFD order.
Changed in tacker: | |
assignee: | nobody → JangwonLee (jangwonlee) |
Changed in tacker: | |
status: | New → Won't Fix |