X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FIM.git;a=blobdiff_plain;f=models%2Fyang%2Fnsi.yang;h=06fe5a12f7f359ad7e61d3b7b181d28f9feeec69;hp=b6184e1093742c9c1ed84bc024cc2ff60042bccc;hb=813947d0a1bcce97c634e3b2e3f3875b404e9782;hpb=ff4b926e0a81c4010acc2684f4c0e97e565cd57a;ds=sidebyside diff --git a/models/yang/nsi.yang b/models/yang/nsi.yang index b6184e1..06fe5a1 100644 --- a/models/yang/nsi.yang +++ b/models/yang/nsi.yang @@ -1,9 +1,23 @@ -//INFORMATION -//organization "CTTC"; -//contact "Pol Alemany, Ricard Vilalta, Juan Luis de la Cruz"; -//description "Network Slice components definition"; +/* + * + * Copyright 2018 CTTC + * Copyright 2018 Telefonica Investigacion y Desarrollo S.A.U. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + */ -// MODULE STRUCTURE module nsi { //header information yang-version 1; @@ -18,16 +32,12 @@ module nsi { prefix "nsr"; } - import vlr { - prefix "vlr"; - } - import rw-project { prefix "rw-project"; } - import instantiation-parameters { - prefix "instantiation-parameters"; + import netslice-instantiation-parameters { + prefix "netslice-instantiation-parameters"; } import ietf-yang-types { @@ -69,7 +79,7 @@ module nsi { } container instantiation-parameters { - uses instantiation-parameters:netslice_params; + uses netslice-instantiation-parameters:netslice_params; } container network-slice-template { @@ -88,15 +98,13 @@ module nsi { } } - list vlr-ref-list{ - key "vlr-ref"; + list vlr-list{ config false; - leaf vlr-ref { - description "Reference to instantiated VLR"; + key "id"; + leaf id { + description "ID of instantiated VLR"; config false; - type leafref { - path "/rw-project:project/vlr:vlr-catalog/vlr:vlr/vlr:id"; - } + type yang:uuid; } } }