X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FIM.git;a=blobdiff_plain;f=models%2Fyang%2Fnsi.yang;h=b6184e1093742c9c1ed84bc024cc2ff60042bccc;hp=32087d33021bd210dca6439282ca4389116636ae;hb=ff4b926e0a81c4010acc2684f4c0e97e565cd57a;hpb=27797538e3a008bfe4c3085ced33daeb6ef88433 diff --git a/models/yang/nsi.yang b/models/yang/nsi.yang index 32087d3..b6184e1 100644 --- a/models/yang/nsi.yang +++ b/models/yang/nsi.yang @@ -30,6 +30,10 @@ module nsi { prefix "instantiation-parameters"; } + import ietf-yang-types { + prefix "yang"; + } + //revision history revision 2018-09-28 { description "Initial version"; @@ -37,23 +41,35 @@ module nsi { grouping nsi { leaf id { + description "Identifier for the NSI."; + type yang:uuid; + } + + leaf name { + description "NSI name."; + type string; + mandatory true; + } + + leaf short-name { + description "NSI short name."; type string; } + + leaf description { + description "NSI description."; + type string; + } + leaf nst-ref { type leafref { path "/nst:nst/nst:id"; } + mandatory true; } container instantiation-parameters { - list netslice-subnet { - key "nsdId"; - uses instantiation-parameters:ns_instantiate; - } - list netslice-vld { - key "name"; - uses instantiation-parameters:vld; - } + uses instantiation-parameters:netslice_params; } container network-slice-template { @@ -87,6 +103,7 @@ module nsi { list nsi{ key "id"; + unique "name"; uses nsi; }