summaryrefslogtreecommitdiffstats
path: root/docs/sections/example.rst
blob: b1a531357fefb966bf4639127244b3664acf510a (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
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
132
133
134
135
136
137
138
139
140
141
142
143
144
Example Conductor Templates
===========================

Example 1
---------

.. code:: yaml

    name: yyy-yyy-yyyy
    files: {}
    timeout: 600
    limit: 1
    template:
      homing_template_version: '2018-02-01'
      parameters:
        service_name: ''
        service_id: d61b2543-5914-4b8f-8e81-81e38575b8ec
        customer_lat: 32.89748
        customer_long: -97.040443
      locations:
        customer_loc:
          latitude:
            get_param: customer_lat
          longitude:
            get_param: customer_long
      demands:
        vGMuxInfra:
        - inventory_provider: aai
          inventory_type: service
          service_type: vGMuxInfra-xx
          attributes:
            customer-id: ''
            orchestration-status: ''
            model-invariant-id: b3dc6465-942c-42af-8464-2bf85b6e504b
            model-version-id: ba3b8981-9a9c-4945-92aa-486234ec321f
            service-type: vGMuxInfra-xx
            equipment-role: ''
            global-customer-id: SDN-ETHERNET-INTERNET
        vG:
        - inventory_provider: aai
          inventory_type: cloud
          service_type: 71d563e8-e714-4393-8f99-cc480144a05e
      constraints:
        affinity_vCPE:
          type: zone
          demands:
          - vGMuxInfra
          - vG
          properties:
            category: complex
            qualifier: same
      optimization:
        minimize:
          sum:
          - product:
            - '1'
            - distance_between:
              - customer_loc
              - vGMuxInfra
          - product:
            - '1'
            - distance_between:
              - customer_loc
              - vG
Example 1
---------

.. code:: yaml

    files: {}
    limit: 1
    name: a2e3e0cc-3a97-44fc-8a08-1b86143fbdd3
    template:
      constraints:
        affinity_vCPE:
          demands:
          - vgMuxAR
          - vGW
          properties:
            category: complex
            qualifier: same
          type: zone
        distance-vGMuxAR:
          demands:
          - vgMuxAR
          properties:
            distance: "< 500 km"
            location: customer_loc
          type: distance_to_location
        distance-vGW:
          demands:
          - vGW
          properties:
            distance: "< 1500 km"
            location: customer_loc
          type: distance_to_location
      demands:
        vGW:
        - attributes:
            model-invariant-id: 782c87a6-b712-47d1-9c5b-1ea2cd9a2dd5
            model-version-id: 9877dbbe-8ada-40a2-8adb-f6f26f1ad9ab
          inventory_provider: aai
          inventory_type: cloud
          service_type: c3e0e82b-3367-48ce-ab00-27dc2e91a34a
        vgMuxAR:
        - attributes:
            global-customer-id: SDN-ETHERNET-INTERNET
            model-invariant-id: 565d5b75-11b8-41be-9991-ee03a0049159
            model-version-id: 61414c6c-6082-4e03-9824-bf53c3582b78
          inventory_provider: aai
          inventory_type: service
          service_type: 46b29078-8442-4ea3-bea6-9199a7d514d4
      homing_template_version: '2017-10-10'
      locations:
        customer_loc:
          latitude:
            get_param: customer_lat
          longitude:
            get_param: customer_long
      optimization:
        minimize:
          sum:
          - product:
            - '1'
            - distance_between:
              - customer_loc
              - vgMuxAR
          - product:
            - '1'
            - distance_between:
              - customer_loc
              - vGW
      parameters:
        customer_lat: 32.89748
        customer_long: 97.040443
        service_id: 0dbb9d5f-27d9-429b-bc36-293e9fab7731
        service_name: ''
    timeout: 600
          
Contact
-------

Shankar Narayanan shankarpnsn@gmail.com
a