-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseparated_resources.yaml
131 lines (108 loc) · 3.28 KB
/
separated_resources.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
tosca_definitions_version: cloudify_dsl_1_3
imports:
- http://www.getcloudify.org/spec/cloudify/4.5/types.yaml
- plugin:cloudify-opencontrail-plugin
inputs:
opencontrail_user:
type: string
default: { get_secret: opencontrail_user }
opencontrail_password:
type: string
default: { get_secret: opencontrail_password }
opencontrail_tenant:
type: string
default: { get_secret: opencontrail_tenant }
opencontrail_ip:
type: string
default: { get_secret: opencontrail_ip }
opencontrail_port:
type: string
default: { get_secret: opencontrail_port }
service_id:
type: string
default: 'cfy_opencontrail_seperated_resources'
subnet_cidr:
type: string
default: '10.238.0.0/24'
route_target:
type: string
default: '65500:3800'
as_number:
type: string
default: '65500'
mac:
type: string
default: '52:54:00:d5:42:ea'
ip:
type: string
default: '10.238.0.4'
vr_name:
type: string
default: 'vr1'
pif_name:
type: string
default: 'eth2'
vlan:
type: integer
default: 3800
dsl_definitions:
api_configs: &api_configs
- user: { get_input: opencontrail_user }
password: { get_input: opencontrail_password }
tenant: { get_input: opencontrail_tenant }
ip: { get_input: opencontrail_ip }
port: { get_input: opencontrail_port }
node_templates:
virtual_network:
type: cloudify.nodes.opencontrail.VirtualNetwork
properties:
api_configs: *api_configs
name: { get_input: service_id }
subnet_cidr: { get_input: subnet_cidr }
route_target: { get_input: route_target }
logical_interface:
type: cloudify.nodes.opencontrail.LogicalInterface
properties:
api_configs: *api_configs
vr_name: { get_input: vr_name }
pif_name: { get_input: pif_name }
vlan: { get_input: vlan }
virtual_machine_interface:
type: cloudify.nodes.opencontrail.VirtualMachineInterface
properties:
api_configs: *api_configs
mac: { get_input: mac }
relationships:
- type: cloudify.relationships.opencontrail.virtual_machine_interface_connected_to_logical_interface
target: logical_interface
- type: cloudify.relationships.connected_to
target: virtual_network
bgp_as_a_service:
type: cloudify.nodes.opencontrail.BGPaaS
properties:
api_configs: *api_configs
as_number: { get_input: as_number }
relationships:
- type: cloudify.relationships.contained_in
target: virtual_machine_interface
instance_ip:
type: cloudify.nodes.opencontrail.InstanceIP
properties:
api_configs: *api_configs
ip: { get_input: ip }
relationships:
- type: cloudify.relationships.depends_on
target: virtual_machine_interface
- type: cloudify.relationships.depends_on
target: virtual_network
capabilities:
virtual_network:
value: { get_attribute: [virtual_network, object_reference] }
logical_interface:
value: { get_attribute: [logical_interface, object_reference] }
virtual_machine_interface:
value: { get_attribute: [virtual_machine_interface, object_reference] }
bgp_as_a_service:
value: { get_attribute: [bgp_as_a_service, object_reference] }
instance_ip:
value: { get_attribute: [instance_ip, object_reference] }