blob: 84e7e6bde82c993cff0ca19ab434ba29d61fd995 (
plain)
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
|
# Example Conductor Templates
*Updated: 10 Oct 2017*
## Example 1
```yaml
# Homing Specification Version
homing_template_version: 2017-10-10
# Runtime order Parameters
parameters:
service_name: Residential vCPE
service_id: vcpe_service_id
customer_lat: 32.897480
customer_long: -97.040443
# List of geographical locations
locations:
customer_loc:
latitude: {get_param: customer_lat}
longitude: {get_param: customer_long}
# List of VNFs (demands) to be homed
demands:
vGMuxInfra:
- inventory_provider: aai
inventory_type: service
attributes:
equipment_type: vG_Mux
customer_id: some_company
excluded_candidates:
- candidate_id:
1ac71fb8-ad43-4e16-9459-c3f372b8236d
existing_placement:
- candidate_id: 21d5f3e8-e714-4383-8f99-cc480144505a
vG:
- inventory_provider: aai
inventory_type: service
attributes:
equipment_type: vG
modelId: vG_model_id
customer_id: some_company
excluded_candidates:
- candidate_id: 1ac71fb8-ad43-4e16-9459-c3f372b8236d
existing_placement:
- candidate_id: 21d5f3e8-e714-4383-8f99-cc480144505a
- inventory_provider: aai
inventory_type: cloud
# List of homing policies (constraints)
constraints:
# distance constraint
- constraint_vgmux_customer:
type: distance_to_location
demands: [vGMuxInfra]
properties:
distance: < 100 km
location: customer_loc
# cloud region co-location constraint
- colocation:
type: zone
demands: [vGMuxInfra, vG]
properties:
qualifier: same
category: region
# platform capability constraint
- numa_cpu_pin_capabilities:
type: attribute
demands: [vG]
properties:
evaluate:
vcpu_pinning: True
numa_topology: numa_spanning
# cloud provider constraint
- cloud_version_capabilities:
type: attribute
demands: [vGMuxInfra]
properties:
evaluate:
cloud_version: 1.11.84
cloud_provider: AWS
# Objective function to minimize
optimization:
minimize:
sum:
- {distance_between: [customer_loc, vGMuxInfra]}
- {distance_between: [customer_loc, vG]}
```
## Contact ##
Shankar Narayanan <shankarpnsn@gmail.com>
|