X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=common%2Fplugins%2Fyang%2Frw-sdn.yang;h=b4e0d9e7d0c3b2cf27b5bc09b2288651dcdd9dae;hb=49ab225e68fea4f63a26657bfacd622862ade597;hp=0a5b2285800990e7ae599645541190c8019d3975;hpb=06ba382adfe364eb39960327c4c5550f63b2ca0b;p=osm%2FSO.git diff --git a/common/plugins/yang/rw-sdn.yang b/common/plugins/yang/rw-sdn.yang index 0a5b2285..b4e0d9e7 100644 --- a/common/plugins/yang/rw-sdn.yang +++ b/common/plugins/yang/rw-sdn.yang @@ -1,7 +1,7 @@ /* * - * Copyright 2016 RIFT.IO Inc + * Copyright 2016-2017 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,28 +25,44 @@ module rw-sdn import rw-pb-ext { - prefix "rw-pb-ext"; + prefix "rwpb"; + } + + import mano-types { + prefix "manotypes"; + } + + import rw-project { + prefix "rw-project"; } import rwsdn { prefix "rwsdn"; } + revision 2017-02-08 { + description + "Update model to support projects."; + } + revision 2015-09-14 { description "Initial revision."; } - list sdn-account { - rw-pb-ext:msg-new SDNAccountConfig; + augment "/rw-project:project" { + container sdn { + list account { + rwpb:msg-new SDNAccountConfig; + key "name"; + leaf name { + type string; + } - key "name"; - leaf name { - type string; + uses rwsdn:sdn-provider-auth; + uses rwsdn:connection-status; + } } - - uses rwsdn:sdn-provider-auth; - uses rwsdn:connection-status; } rpc update-sdn-status { @@ -58,6 +74,8 @@ module rw-sdn "The sdn account name to update connection status for"; type string; } + + uses manotypes:rpc-project-name; } } }