ns_scale,
ns_update,
nsi_instantiate,
+ ns_migrate,
)
from osm_nbi.base_topic import (
BaseTopic,
"update": ns_update,
"scale": ns_scale,
"terminate": ns_terminate,
+ "migrate": ns_migrate,
}
def __init__(self, db, fs, msg, auth):
terminate O5
action O
scale O5
+ migrate O
heal 5
update 05
/ns_lcm_op_occs 5 5
"METHODS": ("POST",),
"ROLE_PERMISSION": "ns_instances:id:instantiate:",
},
+ "migrate": {
+ "METHODS": ("POST",),
+ "ROLE_PERMISSION": "ns_instances:id:migrate:",
+ },
"action": {
"METHODS": ("POST",),
"ROLE_PERMISSION": "ns_instances:id:action:",
"POST /nslcm/v1/ns_instances/<nsInstanceId>/scale": "ns_instances:id:scale:post"
+ "POST /nslcm/v1/ns_instances/<nsInstanceId>/migrate": "ns_instances:id:migrate:post"
+
"GET /nslcm/v1/ns_lcm_op_occs": "ns_instances:opps:get"
"GET /nslcm/v1/ns_lcm_op_occs/<nsLcmOpOccId>": "ns_instances:opps:id:get"
"additionalProperties": False,
}
+ns_migrate = {
+ "title": "ns migrate input schema",
+ "$schema": "http://json-schema.org/draft-04/schema#",
+ "type": "object",
+ "properties": {
+ "lcmOperationType": string_schema,
+ "nsInstanceId": id_schema,
+ "vnfInstanceId": id_schema,
+ "migrateToHost": string_schema,
+ "vdu": {
+ "type": "object",
+ "properties": {
+ "vduId": name_schema,
+ "vduCountIndex": integer0_schema,
+ },
+ "required": ["vduId"],
+ "additionalProperties": False,
+ },
+ },
+ "required": ["vnfInstanceId"],
+ "additionalProperties": False
+}
schema_version = {"type": "string", "enum": ["1.0"]}
schema_type = {"type": "string"}