X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=models%2Fplugins%2Fyang%2Fnsr.yang;h=f7c16fe6325e68946943d5ae9a0652e97a7d4e1c;hb=f027e7263e0c1e1dfa28d9b4cfd4a747e7f29db9;hp=c6bb4ec9a8e492458d68fb2bf0b3a79d17c5d1d1;hpb=49868d2c71eb364cee9707515be6841a568dad40;p=osm%2FSO.git diff --git a/models/plugins/yang/nsr.yang b/models/plugins/yang/nsr.yang index c6bb4ec9..f7c16fe6 100644 --- a/models/plugins/yang/nsr.yang +++ b/models/plugins/yang/nsr.yang @@ -98,7 +98,9 @@ module nsr leaf key-pair-ref { description "A reference to the key pair entry in the global key pair table"; - type string; + type leafref { + path "/nsr:key-pair/nsr:name"; + } } } list user { @@ -113,19 +115,17 @@ module nsr description "The user name's real name"; type string; } - list key-pair { - key "name"; - description "Used to configure the list of public keys to be injected as part - of ns instantiation"; + list ssh-authorized-key { + key "key-pair-ref"; - leaf name { - description "Name of this key pair"; - type string; - } + description "Used to configure the list of public keys to be injected as part + of ns instantiation"; - leaf key { - description "Key associated with this key pair"; - type string; + leaf key-pair-ref { + description "A reference to the key pair entry in the global key pair table"; + type leafref { + path "/nsr:key-pair/nsr:name"; + } } } } @@ -157,7 +157,9 @@ module nsr leaf nsd-ref { description "Reference to NSR ID ref"; mandatory true; - type string; + type leafref { + path "/nsd:nsd-catalog/nsd:nsd/nsd:id"; + } } uses ns-instance-config-params; } @@ -611,6 +613,14 @@ module nsr type uint32; } + leaf uptime { + description + "Active period of this Network Service. + Uptime is expressed in seconds"; + + type uint32; + } + list connection-point { description "List for external connection points.