Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
themeEmacs
collapsetrue
{
    "OSDF_FRANKFURT.maximizeCost_URLLC": {
        "metadata": {
            "policy-id": "OSDF_FRANKFURT.maximizeCost_URLLC",
            "policy-version": 1
        },
        "properties": {
            "geography": [],
            "identity": "optimization",
            "objective": "maximize",
            "objectiveParameter": {
                "operator": "sum",
                "parameterAttributes": [
                    {
                        "operator": "product",
                        "parameter": "creation_cost",
                        "resources": [
                            "URLLC"
                        ],
                        "weight": "1"
                    }
                ]
            },
            "resources": [
                "URLLC"
            ],
            "scope": [
                "OSDF_FRANKFURT",
                "CREATE_NEW"
            ],
            "services": [
                "URLLC"
            ]
        },
        "type": "onap.policies.optimization.resource.OptimizationPolicy",
        "type_version": "1.0.0",
        "version": "1.0.0"
    }
}


Sample HAS Templates

Code Block
languagejs
collapsetrue
{
    "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": {
                        "environment-context": "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": {
                        "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"
            }
        }
    },
    "timeout": 1200
}


Code Block
languagejs
collapsetrue
{
    "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.9
                    },
                    "filtering_attributes": {
                        "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",
                        "normalization": {
                            "end": 0,
                            "start": {
                                "get_param": "latency"
                            }
                        },
                        "params": {
                            "attribute": "latency",
                            "demand": "URLLC"
                        }
                    },
                    {
                        "function": "attribute",
                        "normalization": {
                            "end": {
                                "get_param": "reliability"
                            },
                            "start": 99.999
                        },
                        "params": {
                            "attribute": "reliability",
                            "demand": "URLLC"
                        }
                    }
                ],
                "operator": "sum"
            }
        }
    },
    "timeout": 1200
}