X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=models%2Fplugins%2Fyang%2Fnsr.yang;h=c6bb4ec9a8e492458d68fb2bf0b3a79d17c5d1d1;hb=d03647dd8a262a6d944ae6f287f483bb120b7429;hp=2e12788e0b3ff00455c5a36247a056b6c8a39088;hpb=6f07e6f33f751ab4ffe624f6037f887b243bece2;p=osm%2FSO.git diff --git a/models/plugins/yang/nsr.yang b/models/plugins/yang/nsr.yang index 2e12788e..c6bb4ec9 100644 --- a/models/plugins/yang/nsr.yang +++ b/models/plugins/yang/nsr.yang @@ -98,9 +98,7 @@ module nsr 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"; - } + type string; } } list user { @@ -111,13 +109,24 @@ module nsr description "Name of the user "; type string; } - leaf gecos { + leaf user-info { description "The user name's real name"; type string; } - leaf passwd { - description "The user password"; - type string; + list key-pair { + key "name"; + description "Used to configure the list of public keys to be injected as part + of ns instantiation"; + + leaf name { + description "Name of this key pair"; + type string; + } + + leaf key { + description "Key associated with this key pair"; + type string; + } } } } @@ -148,9 +157,7 @@ module nsr leaf nsd-ref { description "Reference to NSR ID ref"; mandatory true; - type leafref { - path "/nsd:nsd-catalog/nsd:nsd/nsd:id"; - } + type string; } uses ns-instance-config-params; } @@ -163,6 +170,8 @@ module nsr } } + + container ns-instance-config { list nsr {