Ports using resource group

asked 2016-05-10 00:50:29 -0600

vigneshwar gravatar image

created port using resource group and want to connect the created port to VMs VM_port: type: OS::Heat::ResourceGroup properties: count: 10 resource_def: type: OS::Neutron::Port properties: name: {"Fn::Join": ["-", [{ get_param: "OS::stack_name" } , "VM-port-%index%" ]]} network: testnet-1 security_groups: - { get_resource: SG-1 }

can any one help me how to attach these ports to VMs

VM-G1: type: OS::Heat::ResourceGroup properties: count: 10 resource_def: type: OS::Nova::Server properties: name: { str_replace: { params: { $stack_name: { get_param: 'OS::stack_name' } }, template: '$stack_name-VM-%index%' } } key_name: { get_param: 'ssh_key' } image: { get_param: 'vm_image' } flavor: "m1.small" networks: - port: { get_resource: VM_port }

edit retag flag offensive close merge delete