-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpci.yaml
54 lines (47 loc) · 1.36 KB
/
pci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This is a hello world HOT template just defining a single compute instance
heat_template_version: 2013-05-23
description: >
SR-IOV HOT template that just defines a single compute instance.
Contains just base features.
heat stack-create PciPort -f /home/openstack/pci.yaml
parameters:
Keyname:
type: string
description: Name of an existing key pair to use for the instance
default: heat_key
InstanceType:
type: string
description: Instance type for the instance to be created
default: m1.large
ImageId:
type: string
description: ID of the image to use for the instance
default: ubuntu_precise
my_net:
type: string
description: the net
default: private
#sriov_port:
# type: string
# description: the port
resources:
vmfex1:
type: OS::Nova::Server
properties:
name: sr-iov
key_name: { get_param: Keyname }
image: { get_param: ImageId }
flavor: { get_param: InstanceType }
networks:
- port: { get_resource: sriov_port1 }
sriov_port1:
type: OS::Neutron::SriovPort
#type: OS::Neutron::Port
properties:
network: { get_param: my_net }
binding:vnic_type: direct
#outputs:
# instance_ip:
# description: The IP address of the deployed instance
#value: { get_attr: [my_port, status] }
#value: { get_attr: [sriov_instance, networks] }