2017-11-01 12:16:22 |
david |
bug |
|
|
added bug |
2017-11-01 12:33:21 |
david |
description |
Dears,
I have started using tosca-parser module but I got the following error.
Kindly find bellow my .yaml file.
tosca = ToscaTemplate(path, parsed_params, a_file)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/tosca_template.py", line 101, in __init__
self.topology_template = self._topology_template()
File "/usr/local/lib/python2.7/dist-packages/toscaparser/tosca_template.py", line 120, in _topology_template
None)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/topology_template.py", line 61, in __init__
self.groups = self._groups()
File "/usr/local/lib/python2.7/dist-packages/toscaparser/topology_template.py", line 163, in _groups
self.custom_defs)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/groups.py", line 29, in __init__
custom_defs)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/entity_template.py", line 74, in __init__
if type is not None else None
File "/usr/local/lib/python2.7/dist-packages/toscaparser/elements/grouptype.py", line 35, in __init__
if self.DESCRIPTION in self.defs:
TypeError: argument of type 'NoneType' is not iterable
127.0.0.1 - - [31/Oct/2017 12:33:35] "POST /deploy_template HTTP/1.1" 500 2641
For more information, the input parameters for the following source code line are:
tosca = ToscaTemplate(path, parsed_params, a_file)
#path= the path to the yaml file
#parsed_params={}
#a_file=True
I appriciate your support to fix this issue.
Thanks in advance.
Best regards.
##################yaml file########################
#tosca_definitions_version: tosca_simple_yaml_1_0
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: This is a basic example for test
topology_template:
inputs:
network_name:
type: string
default: admin_internal_net
odl:
type: string
default: 192.168.111.28:8181
node_templates:
VM1:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
VM2:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
VM3:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
my_network:
type: tosca.nodes.network.Network
properties:
network_name: { get_input: network_name }
my_port1:
type: tosca.nodes.network.Port
requirements:
- binding:
node: VM1
- link:
node: my_network
my_port2:
type: tosca.nodes.network.Port
requirements:
- binding:
node: VM2
- link:
node: my_network
my_port3:
type: tosca.nodes.network.Port
requirements:
- binding:
node: VM3
- link:
node: my_network
VNF1:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: dpi
address: 10.100.0.105
port: 40000
nsh_aware: true
requirements:
- host: VM1
CP11: #endpoints of VNF1 linked to VL1
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address: 10.100.0.105
interface: ens3
port: 30000
requirements:
- virtualBinding: VNF1
- virtualLink: VL1
VNF2:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: firewall
address: 10.100.0.106
port: 40000
nsh_aware: true
requirements:
- host: VM2
CP21: #endpoints of VNF2 linked to VL1
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address: 10.100.0.106
interface: ens3
port: 30000
requirements:
- virtualBinding: VNF2
- virtualLink: VL1
VNF3:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: napt44
address: 10.100.0.107
port: 40000
nsh_aware: true
requirements:
- host: VM3
CP31: #endpoints of VNF3 linked to VL2
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address: 10.100.0.107
port: 30000
interface: ens3
requirements:
- virtualBinding: VNF3
- virtualLink: VL1
VL1:
type: tosca.nodes.nfv.VL
properties:
vendor: HP
attributes:
type: ip
transport_type: vxlan-gpe
Forwarding_path1:
type: tosca.nodes.nfv.FP
description: the path (CP11->CP21->CP31)
properties:
policy:
requirements:
- forwarder: CP11
- forwarder: CP21
- forwarder: CP31
#################################################
# VNF Forwarding Graph nodes and the associated
# Network Forwarding Paths
#################################################
groups:
VNF_FG1:
type: tosca.groups.nfv.VNFFG
description: VNF forwarding graph
properties:
vendor:
version:
connection_point: [ CP11, CP21, CP31 ]
dependent_virtual_link: [ VL1 ]
constituent_vnfs: [ VNF1, VNF2, VNF3 ]
members: [ Forwarding_path1 ]
outputs:
vnf1_ip:
description: The private IP address of the VNF container1.
value: { get_attribute: [VM1, private_address] }
vnf2_ip:
description: The private IP address of the VNF container2.
value: { get_attribute: [VM2, private_address] }
vnf3_ip:
description: The private IP address of the VNF container3.
value: { get_attribute: [VM3, private_address] } |
Dears,
I have started using tosca-parser module but I got the following error.
Kindly find bellow my .yaml file.
tosca = ToscaTemplate(path, parsed_params, a_file)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/tosca_template.py", line 101, in __init__
self.topology_template = self._topology_template()
File "/usr/local/lib/python2.7/dist-packages/toscaparser/tosca_template.py", line 120, in _topology_template
None)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/topology_template.py", line 61, in __init__
self.groups = self._groups()
File "/usr/local/lib/python2.7/dist-packages/toscaparser/topology_template.py", line 163, in _groups
self.custom_defs)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/groups.py", line 29, in __init__
custom_defs)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/entity_template.py", line 74, in __init__
if type is not None else None
File "/usr/local/lib/python2.7/dist-packages/toscaparser/elements/grouptype.py", line 35, in __init__
if self.DESCRIPTION in self.defs:
TypeError: argument of type 'NoneType' is not iterable
127.0.0.1 - - [31/Oct/2017 12:33:35] "POST /deploy_template HTTP/1.1" 500 2641
For more information, the input parameters for the following source code line are:
tosca = ToscaTemplate(path, parsed_params, a_file)
#path= the path to the yaml file
#parsed_params={}
#a_file=True
I appriciate your support to fix this issue.
Thanks in advance.
Best regards.
##################yaml file########################
#tosca_definitions_version: tosca_simple_yaml_1_0
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: This is a basic example
topology_template:
inputs:
network_cidr:
type: string
default: 10.101.0.0/24
description: CIDR for the network
network_start_ip:
type: string
default: 10.101.0.100
description: Start IP for the allocation pool
network_end_ip:
type: string
default: 10.101.0.150
description: End IP for the allocation pool
node_templates:
VNF1:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: dpi
address:
port: 40000
nsh_aware: true
requirements:
- host: vnf_container1
vnf_container1:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
CP11: #endpoints of VNF1 linked to VL1
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address:
interface: eth0
port: 30000
requirements:
- virtualBinding: VNF1
- virtualLink: VL1
VNF2:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: firewall
address:
port: 40000
nsh_aware: true
requirements:
- host: vnf_container2
vnf_container2:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
CP21: #endpoints of VNF2 linked to VL1
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address:
interface: eth0
port: 30000
requirements:
- virtualBinding: VNF2
- virtualLink: VL1
VNF3:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: nat
address:
port: 40000
nsh_aware: true
requirements:
- host: vnf_container3
vnf_container3:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
my_network:
type: tosca.nodes.network.Network
properties:
ip_version: 4
cidr: { get_input: network_cidr }
start_ip: { get_input: network_start_ip }
end_ip: { get_input: network_end_ip }
my_port1:
type: tosca.nodes.network.Port
requirements:
- binding:
node: vnf_container1
- link:
node: my_network
my_port2:
type: tosca.nodes.network.Port
requirements:
- binding:
node: vnf_container2
- link:
node: my_network
my_port3:
type: tosca.nodes.network.Port
requirements:
- binding:
node: vnf_container3
- link:
node: my_network
CP31: #endpoints of VNF3 linked to VL2
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address:
port: 30000
interface: eth0
requirements:
- virtualBinding: VNF3
- virtualLink: VL1
VL1:
type: tosca.nodes.nfv.VL
properties:
vendor: HP
attributes:
type: ip
transport_type: vxlan-gpe
Forwarding_path1:
type: tosca.nodes.nfv.FP
description: the path (CP11->CP21->CP31)
properties:
policy:
requirements:
- forwarder: CP11
- forwarder: CP21
- forwarder: CP31
groups:
VNF_FG1:
type: tosca.groups.nfv.VNFFG
description: VNF forwarding graph
properties:
vendor:
version:
connection_point: [ CP11, CP21, CP31 ]
dependent_virtual_link: [ VL1 ]
constituent_vnfs: [ VNF1, VNF2, VNF3 ]
members: [ Forwarding_path1 ]
outputs:
vnf1_ip:
description: The private IP address of the VNF container1.
value: { get_attribute: [vnf_container1, private_address] }
vnf2_ip:
description: The private IP address of the VNF container2.
value: { get_attribute: [vnf_container2, private_address] }
vnf3_ip:
description: The private IP address of the VNF container3.
value: { get_attribute: [vnf_container3, private_address] } |
|
2017-11-01 17:10:49 |
david |
description |
Dears,
I have started using tosca-parser module but I got the following error.
Kindly find bellow my .yaml file.
tosca = ToscaTemplate(path, parsed_params, a_file)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/tosca_template.py", line 101, in __init__
self.topology_template = self._topology_template()
File "/usr/local/lib/python2.7/dist-packages/toscaparser/tosca_template.py", line 120, in _topology_template
None)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/topology_template.py", line 61, in __init__
self.groups = self._groups()
File "/usr/local/lib/python2.7/dist-packages/toscaparser/topology_template.py", line 163, in _groups
self.custom_defs)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/groups.py", line 29, in __init__
custom_defs)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/entity_template.py", line 74, in __init__
if type is not None else None
File "/usr/local/lib/python2.7/dist-packages/toscaparser/elements/grouptype.py", line 35, in __init__
if self.DESCRIPTION in self.defs:
TypeError: argument of type 'NoneType' is not iterable
127.0.0.1 - - [31/Oct/2017 12:33:35] "POST /deploy_template HTTP/1.1" 500 2641
For more information, the input parameters for the following source code line are:
tosca = ToscaTemplate(path, parsed_params, a_file)
#path= the path to the yaml file
#parsed_params={}
#a_file=True
I appriciate your support to fix this issue.
Thanks in advance.
Best regards.
##################yaml file########################
#tosca_definitions_version: tosca_simple_yaml_1_0
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: This is a basic example
topology_template:
inputs:
network_cidr:
type: string
default: 10.101.0.0/24
description: CIDR for the network
network_start_ip:
type: string
default: 10.101.0.100
description: Start IP for the allocation pool
network_end_ip:
type: string
default: 10.101.0.150
description: End IP for the allocation pool
node_templates:
VNF1:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: dpi
address:
port: 40000
nsh_aware: true
requirements:
- host: vnf_container1
vnf_container1:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
CP11: #endpoints of VNF1 linked to VL1
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address:
interface: eth0
port: 30000
requirements:
- virtualBinding: VNF1
- virtualLink: VL1
VNF2:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: firewall
address:
port: 40000
nsh_aware: true
requirements:
- host: vnf_container2
vnf_container2:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
CP21: #endpoints of VNF2 linked to VL1
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address:
interface: eth0
port: 30000
requirements:
- virtualBinding: VNF2
- virtualLink: VL1
VNF3:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: nat
address:
port: 40000
nsh_aware: true
requirements:
- host: vnf_container3
vnf_container3:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
my_network:
type: tosca.nodes.network.Network
properties:
ip_version: 4
cidr: { get_input: network_cidr }
start_ip: { get_input: network_start_ip }
end_ip: { get_input: network_end_ip }
my_port1:
type: tosca.nodes.network.Port
requirements:
- binding:
node: vnf_container1
- link:
node: my_network
my_port2:
type: tosca.nodes.network.Port
requirements:
- binding:
node: vnf_container2
- link:
node: my_network
my_port3:
type: tosca.nodes.network.Port
requirements:
- binding:
node: vnf_container3
- link:
node: my_network
CP31: #endpoints of VNF3 linked to VL2
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address:
port: 30000
interface: eth0
requirements:
- virtualBinding: VNF3
- virtualLink: VL1
VL1:
type: tosca.nodes.nfv.VL
properties:
vendor: HP
attributes:
type: ip
transport_type: vxlan-gpe
Forwarding_path1:
type: tosca.nodes.nfv.FP
description: the path (CP11->CP21->CP31)
properties:
policy:
requirements:
- forwarder: CP11
- forwarder: CP21
- forwarder: CP31
groups:
VNF_FG1:
type: tosca.groups.nfv.VNFFG
description: VNF forwarding graph
properties:
vendor:
version:
connection_point: [ CP11, CP21, CP31 ]
dependent_virtual_link: [ VL1 ]
constituent_vnfs: [ VNF1, VNF2, VNF3 ]
members: [ Forwarding_path1 ]
outputs:
vnf1_ip:
description: The private IP address of the VNF container1.
value: { get_attribute: [vnf_container1, private_address] }
vnf2_ip:
description: The private IP address of the VNF container2.
value: { get_attribute: [vnf_container2, private_address] }
vnf3_ip:
description: The private IP address of the VNF container3.
value: { get_attribute: [vnf_container3, private_address] } |
Dears,
I have started using tosca-parser module but I got the following error.
Kindly find bellow my .yaml file.
tosca = ToscaTemplate(path, parsed_params, a_file)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/tosca_template.py", line 101, in __init__
self.topology_template = self._topology_template()
File "/usr/local/lib/python2.7/dist-packages/toscaparser/tosca_template.py", line 120, in _topology_template
None)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/topology_template.py", line 61, in __init__
self.groups = self._groups()
File "/usr/local/lib/python2.7/dist-packages/toscaparser/topology_template.py", line 163, in _groups
self.custom_defs)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/groups.py", line 29, in __init__
custom_defs)
File "/usr/local/lib/python2.7/dist-packages/toscaparser/entity_template.py", line 74, in __init__
if type is not None else None
File "/usr/local/lib/python2.7/dist-packages/toscaparser/elements/grouptype.py", line 35, in __init__
if self.DESCRIPTION in self.defs:
TypeError: argument of type 'NoneType' is not iterable
127.0.0.1 - - [31/Oct/2017 12:33:35] "POST /deploy_template HTTP/1.1" 500 2641
For more information, the input parameters for the following source code line are:
tosca = ToscaTemplate(path, parsed_params, a_file)
#path= the path to the yaml file
#parsed_params={}
#a_file=True
I appriciate your support to fix this issue.
Thanks in advance.
Best regards.
##################yaml file########################
tosca_definitions_version: tosca_simple_yaml_1_0
description: This is a basic example for test
topology_template:
inputs:
network_name:
type: string
default: admin_internal_net
odl:
type: string
default: 192.168.111.28:8181
node_templates:
VM1:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
VM2:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
VM3:
type: tosca.nodes.Compute
capabilities:
# Host container properties
host:
properties:
num_cpus: 2
disk_size: 10 GB
mem_size: 512 MB
# Guest Operating System properties
os:
properties:
# host Operating System image properties
architecture: x86_64
type: sfc_client
distribution: ubuntu
version: 14.04
my_network:
type: tosca.nodes.network.Network
properties:
network_name: { get_input: network_name }
my_port1:
type: tosca.nodes.network.Port
requirements:
- binding:
node: VM1
- link:
node: my_network
my_port2:
type: tosca.nodes.network.Port
requirements:
- binding:
node: VM2
- link:
node: my_network
my_port3:
type: tosca.nodes.network.Port
requirements:
- binding:
node: VM3
- link:
node: my_network
VNF1:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: dpi
address: 10.100.0.105
port: 40000
nsh_aware: true
requirements:
- host: VM1
CP11: #endpoints of VNF1 linked to VL1
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address: 10.100.0.105
interface: ens3
port: 30000
requirements:
- virtualBinding: VNF1
- virtualLink: VL1
VNF2:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: firewall
address: 10.100.0.106
port: 40000
nsh_aware: true
requirements:
- host: VM2
CP21: #endpoints of VNF2 linked to VL1
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address: 10.100.0.106
interface: ens3
port: 30000
requirements:
- virtualBinding: VNF2
- virtualLink: VL1
VNF3:
type: tosca.nodes.nfv.VNF
properties:
attributes:
type: napt44
address: 10.100.0.107
port: 40000
nsh_aware: true
requirements:
- host: VM3
CP31: #endpoints of VNF3 linked to VL2
type: tosca.nodes.nfv.CP
properties:
attributes:
IP_address: 10.100.0.107
port: 30000
interface: ens3
requirements:
- virtualBinding: VNF3
- virtualLink: VL1
VL1:
type: tosca.nodes.nfv.VL
properties:
vendor: HP
attributes:
type: ip
transport_type: vxlan-gpe
Forwarding_path1:
type: tosca.nodes.nfv.FP
description: the path (CP11->CP21->CP31)
properties:
policy:
requirements:
- forwarder: CP11
- forwarder: CP21
- forwarder: CP31
#################################################
# VNF Forwarding Graph nodes and the associated
# Network Forwarding Paths
#################################################
groups:
VNF_FG1:
type: tosca.groups.nfv.VNFFG
description: VNF forwarding graph
properties:
vendor:
version:
connection_point: [ CP11, CP21, CP31 ]
dependent_virtual_link: [ VL1 ]
constituent_vnfs: [ VNF1, VNF2, VNF3 ]
members: [ Forwarding_path1 ]
outputs:
vnf1_ip:
description: The private IP address of the VNF container1.
value: { get_attribute: [VM1, private_address] }
vnf2_ip:
description: The private IP address of the VNF container2.
value: { get_attribute: [VM2, private_address] }
vnf3_ip:
description: The private IP address of the VNF container3.
value: { get_attribute: [VM3, private_address] } |
|
2017-11-01 20:23:17 |
Sahdev Zala |
bug |
|
|
added subscriber Bob Haddleton |
2017-11-02 12:51:40 |
Miguel Caballer |
bug |
|
|
added subscriber Miguel Caballer |