add security issues
[optf/has.git] / docs / sections / example.rst
1 Example Conductor Templates
2 ===========================
3
4 Example 1
5 ---------
6
7 .. code:: yaml
8
9     name: yyy-yyy-yyyy
10     files: {}
11     timeout: 600
12     limit: 1
13     template:
14       homing_template_version: '2018-02-01'
15       parameters:
16         service_name: ''
17         service_id: d61b2543-5914-4b8f-8e81-81e38575b8ec
18         customer_lat: 32.89748
19         customer_long: -97.040443
20       locations:
21         customer_loc:
22           latitude:
23             get_param: customer_lat
24           longitude:
25             get_param: customer_long
26       demands:
27         vGMuxInfra:
28         - inventory_provider: aai
29           inventory_type: service
30           service_type: vGMuxInfra-xx
31           attributes:
32             customer-id: ''
33             orchestration-status: ''
34             model-invariant-id: b3dc6465-942c-42af-8464-2bf85b6e504b
35             model-version-id: ba3b8981-9a9c-4945-92aa-486234ec321f
36             service-type: vGMuxInfra-xx
37             equipment-role: ''
38             global-customer-id: SDN-ETHERNET-INTERNET
39         vG:
40         - inventory_provider: aai
41           inventory_type: cloud
42           service_type: 71d563e8-e714-4393-8f99-cc480144a05e
43       constraints:
44         affinity_vCPE:
45           type: zone
46           demands:
47           - vGMuxInfra
48           - vG
49           properties:
50             category: complex
51             qualifier: same
52       optimization:
53         minimize:
54           sum:
55           - product:
56             - '1'
57             - distance_between:
58               - customer_loc
59               - vGMuxInfra
60           - product:
61             - '1'
62             - distance_between:
63               - customer_loc
64               - vG
65 Example 1
66 ---------
67
68 .. code:: yaml
69
70     files: {}
71     limit: 1
72     name: a2e3e0cc-3a97-44fc-8a08-1b86143fbdd3
73     template:
74       constraints:
75         affinity_vCPE:
76           demands:
77           - vgMuxAR
78           - vGW
79           properties:
80             category: complex
81             qualifier: same
82           type: zone
83         distance-vGMuxAR:
84           demands:
85           - vgMuxAR
86           properties:
87             distance: "< 500 km"
88             location: customer_loc
89           type: distance_to_location
90         distance-vGW:
91           demands:
92           - vGW
93           properties:
94             distance: "< 1500 km"
95             location: customer_loc
96           type: distance_to_location
97       demands:
98         vGW:
99         - attributes:
100             model-invariant-id: 782c87a6-b712-47d1-9c5b-1ea2cd9a2dd5
101             model-version-id: 9877dbbe-8ada-40a2-8adb-f6f26f1ad9ab
102           inventory_provider: aai
103           inventory_type: cloud
104           service_type: c3e0e82b-3367-48ce-ab00-27dc2e91a34a
105         vgMuxAR:
106         - attributes:
107             global-customer-id: SDN-ETHERNET-INTERNET
108             model-invariant-id: 565d5b75-11b8-41be-9991-ee03a0049159
109             model-version-id: 61414c6c-6082-4e03-9824-bf53c3582b78
110           inventory_provider: aai
111           inventory_type: service
112           service_type: 46b29078-8442-4ea3-bea6-9199a7d514d4
113       homing_template_version: '2017-10-10'
114       locations:
115         customer_loc:
116           latitude:
117             get_param: customer_lat
118           longitude:
119             get_param: customer_long
120       optimization:
121         minimize:
122           sum:
123           - product:
124             - '1'
125             - distance_between:
126               - customer_loc
127               - vgMuxAR
128           - product:
129             - '1'
130             - distance_between:
131               - customer_loc
132               - vGW
133       parameters:
134         customer_lat: 32.89748
135         customer_long: 97.040443
136         service_id: 0dbb9d5f-27d9-429b-bc36-293e9fab7731
137         service_name: ''
138     timeout: 600
139           
140 Contact
141 -------
142
143 Shankar Narayanan shankarpnsn@gmail.com
144 a