| jdelacruz | 2779753 | 2018-09-18 19:16:16 +0200 | [diff] [blame^] | 1 | //INFORMATION |
| 2 | //organization "CTTC"; |
| 3 | //contact "Pol Alemany, Ricard Vilalta, Juan Luis de la Cruz"; |
| 4 | //description "Network Slice components definition"; |
| 5 | |
| 6 | // MODULE STRUCTURE |
| 7 | module nsi { |
| 8 | //header information |
| 9 | yang-version 1; |
| 10 | namespace "urn:ietf:params:xml:ns:yang:nfvo:nsi"; |
| 11 | prefix "nsi"; |
| 12 | |
| 13 | import nst { |
| 14 | prefix "nst"; |
| 15 | } |
| 16 | |
| 17 | import nsr { |
| 18 | prefix "nsr"; |
| 19 | } |
| 20 | |
| 21 | import vlr { |
| 22 | prefix "vlr"; |
| 23 | } |
| 24 | |
| 25 | import rw-project { |
| 26 | prefix "rw-project"; |
| 27 | } |
| 28 | |
| 29 | import instantiation-parameters { |
| 30 | prefix "instantiation-parameters"; |
| 31 | } |
| 32 | |
| 33 | //revision history |
| 34 | revision 2018-09-28 { |
| 35 | description "Initial version"; |
| 36 | } |
| 37 | |
| 38 | grouping nsi { |
| 39 | leaf id { |
| 40 | type string; |
| 41 | } |
| 42 | leaf nst-ref { |
| 43 | type leafref { |
| 44 | path "/nst:nst/nst:id"; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | container instantiation-parameters { |
| 49 | list netslice-subnet { |
| 50 | key "nsdId"; |
| 51 | uses instantiation-parameters:ns_instantiate; |
| 52 | } |
| 53 | list netslice-vld { |
| 54 | key "name"; |
| 55 | uses instantiation-parameters:vld; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | container network-slice-template { |
| 60 | uses nst:network-slice; |
| 61 | } |
| 62 | |
| 63 | list nsr-ref-list{ |
| 64 | config false; |
| 65 | key "nsr-ref"; |
| 66 | leaf nsr-ref { |
| 67 | description "Reference to instantiated NSR"; |
| 68 | config false; |
| 69 | type leafref { |
| 70 | path "/rw-project:project/nsr:ns-instance-opdata/nsr:nsr/nsr:ns-instance-config-ref"; |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | list vlr-ref-list{ |
| 76 | key "vlr-ref"; |
| 77 | config false; |
| 78 | leaf vlr-ref { |
| 79 | description "Reference to instantiated VLR"; |
| 80 | config false; |
| 81 | type leafref { |
| 82 | path "/rw-project:project/vlr:vlr-catalog/vlr:vlr/vlr:id"; |
| 83 | } |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | list nsi{ |
| 89 | key "id"; |
| 90 | uses nsi; |
| 91 | } |
| 92 | |
| 93 | } |