aboutsummaryrefslogtreecommitdiffstats
path: root/tests/optf-has/has/data/nsi_selection_template_with_create.json
blob: 6d659f9e0becf138102d4d9eded4b95e4389b784 (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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
    "files": {},
    "limit": 10,
    "name": "urllc_sample",
    "num_solution": "1",
    "template": {
        "constraints": {
            "URLLC_Threshold": {
                "demands": [
                    "URLLC"
                ],
                "properties": {
                    "evaluate": [
                        {
                            "attribute": "latency",
                            "operator": "lte",
                            "threshold": {
                                "get_param": "latency"
                            },
                            "unit": "ms"
                        },
                        {
                            "attribute": "reliability",
                            "operator": "gte",
                            "threshold": {
                                "get_param": "reliability"
                            },
                            "unit": ""
                        },
                        {
                            "attribute": "coverage_area_ta_list",
                            "operator": "eq",
                            "threshold": {
                                "get_param": "coverage_area_ta_list"
                            },
                            "unit": ""
                        }
                    ]
                },
                "type": "threshold"
            }
        },
        "demands": {
            "URLLC": [
                {
                    "default_attributes": {
                        "creation_cost": 0.1
                    },
                    "filtering_attributes": {
                        "service-function": "shared",
                        "model-invariant-id": "21d57d4b-52ad-4d3c-a798-248b5bb9124a",
                        "model-version-id": "bfba363e-e39c-4bd9-a9d5-1371c28f4d22",
                        "service-role": "nsi"
                    },
                    "inventory_provider": "aai",
                    "inventory_type": "nsi",
                    "unique": "true"
                },
                {
                    "default_attributes": {
                        "creation_cost": 0.9
                    },
                    "filtering_attributes": {
                        "service_profile": {
                                        "latency": {"value": {"get_param": "latency"}, "operator": "lte"},
                                        "reliability": {"value": {"get_param": "reliability"}, "operator": "gte"},
                                        "coverage_area_ta_list": {"value": {"get_param": "coverage_area_ta_list"}, "operator": "eq"}
                                  },
                        "subnets":{
                        "core": {
                            "latency": {
                                "max": {
                                    "get_param": "latency"
                                },
                                "min": {
                                    "get_param": "core_latency"
                                },
                                "steps": 1
                            },
                            "reliability": {
                                "values": [
                                    {
                                        "get_param": "core_reliability"
                                    }
                                ]
                            }
                        },
                        "ran": {
                            "coverage_area_ta_list": {
                                "values": [
                                    {
                                        "get_param": "coverage_area_ta_list"
                                    }
                                ]
                            },
                            "latency": {
                                "max": {
                                    "get_param": "latency"
                                },
                                "min": {
                                    "get_param": "ran_latency"
                                },
                                "steps": 1
                            },
                            "reliability": {
                                "values": [
                                    {
                                        "get_param": "ran_reliability"
                                    }
                                ]
                            }
                        },
                        "transport": {
                            "latency": {
                                "max": {
                                    "get_param": "latency"
                                },
                                "min": {
                                    "get_param": "tn_latency"
                                },
                                "steps": 1
                            },
                            "reliability": {
                                "values": [
                                    {
                                        "get_param": "tn_reliability"
                                    }
                                ]
                            }
                        }
                        }
                    },
                    "inventory_provider": "generator",
                    "inventory_type": "slice_profiles",
                    "unique": "true"
                }
            ]
        },
        "homing_template_version": "2020-08-13",
        "optimization": {
            "goal": "maximize",
            "operation_function": {
                "operands": [
                    {
                        "function": "attribute",
                        "params": {
                            "attribute": "creation_cost",
                            "demand": "URLLC"
                        }
                    }
                ],
                "operator": "sum"
            }
        },
        "parameters": {
            "core_latency": 10,
            "core_reliability": 99.9,
            "coverage_area_ta_list": "Chennai",
            "latency": 30,
            "ran_latency": 7,
            "ran_reliability": 99.9,
            "reliability": 99.9,
            "tn_latency": 10,
            "tn_reliability": 99.9
        }
    },
    "timeout": 1200
}