X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FIM.git;a=blobdiff_plain;f=models%2Fyang%2Fnsi.yang;fp=models%2Fyang%2Fnsi.yang;h=32087d33021bd210dca6439282ca4389116636ae;hp=0000000000000000000000000000000000000000;hb=27797538e3a008bfe4c3085ced33daeb6ef88433;hpb=d2999e72a1a12a27021494f58e7e2f02a0418efd diff --git a/models/yang/nsi.yang b/models/yang/nsi.yang new file mode 100644 index 0000000..32087d3 --- /dev/null +++ b/models/yang/nsi.yang @@ -0,0 +1,93 @@ +//INFORMATION +//organization "CTTC"; +//contact "Pol Alemany, Ricard Vilalta, Juan Luis de la Cruz"; +//description "Network Slice components definition"; + +// MODULE STRUCTURE +module nsi { + //header information + yang-version 1; + namespace "urn:ietf:params:xml:ns:yang:nfvo:nsi"; + prefix "nsi"; + + import nst { + prefix "nst"; + } + + import nsr { + prefix "nsr"; + } + + import vlr { + prefix "vlr"; + } + + import rw-project { + prefix "rw-project"; + } + + import instantiation-parameters { + prefix "instantiation-parameters"; + } + + //revision history + revision 2018-09-28 { + description "Initial version"; + } + + grouping nsi { + leaf id { + type string; + } + leaf nst-ref { + type leafref { + path "/nst:nst/nst:id"; + } + } + + container instantiation-parameters { + list netslice-subnet { + key "nsdId"; + uses instantiation-parameters:ns_instantiate; + } + list netslice-vld { + key "name"; + uses instantiation-parameters:vld; + } + } + + container network-slice-template { + uses nst:network-slice; + } + + list nsr-ref-list{ + config false; + key "nsr-ref"; + leaf nsr-ref { + description "Reference to instantiated NSR"; + config false; + type leafref { + path "/rw-project:project/nsr:ns-instance-opdata/nsr:nsr/nsr:ns-instance-config-ref"; + } + } + } + + list vlr-ref-list{ + key "vlr-ref"; + config false; + leaf vlr-ref { + description "Reference to instantiated VLR"; + config false; + type leafref { + path "/rw-project:project/vlr:vlr-catalog/vlr:vlr/vlr:id"; + } + } + } + } + + list nsi{ + key "id"; + uses nsi; + } + +}