Skip to content

Instantly share code, notes, and snippets.

@Ladas
Last active May 27, 2016 09:02
Show Gist options
  • Select an option

  • Save Ladas/33b6d46451f98a4094f1a02cb8f8fb9a to your computer and use it in GitHub Desktop.

Select an option

Save Ladas/33b6d46451f98a4094f1a02cb8f8fb9a to your computer and use it in GitHub Desktop.
parameterized vnfd
# Fog call
params = YAML.dump({'vdus' => {'vdu1' => {'param' => {'image_name' => 'cirros', 'flavor_name' => 'm1.tiny'}}}})
service.vnfs.create(:vnf=>{:name=>"LadasLegacyTemplateTest",
:vnfd_id=>"78c6c90c-6cbc-45a1-8bc1-62de91494eae",
:attributes => {:param_values => params}})
template_name: sample-vnfd
description: demo-example
service_properties:
Id: sample-vnfd
vendor: tacker
version: 1
vdus:
vdu1:
id: vdu1
vm_image: {get_input: image_name}
instance_type: {get_input: flavor_name}
network_interfaces:
management:
network: net_mgmt
management: true
pkt_in:
network: net0
pkt_out:
network: net1
placement_policy:
availability_zone: nova
auto-scaling: noop
config:
param0: key0
param1: key1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment