X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=common%2Fplugins%2Fyang%2Frw-sdn.yang;h=3df45479b76c11d234013cbfdad3b196025b26bb;hb=f314b4af9744068a7ed7a6a6314220c3aa857523;hp=0a5b2285800990e7ae599645541190c8019d3975;hpb=f04e0aed7b77ad8833fa18ee083b5332bdb0da20;p=osm%2FSO.git diff --git a/common/plugins/yang/rw-sdn.yang b/common/plugins/yang/rw-sdn.yang index 0a5b2285..3df45479 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. @@ -23,13 +23,21 @@ module rw-sdn namespace "http://riftio.com/ns/riftware-1.0/rw-sdn"; prefix "rw-sdn"; + import rw-project { + prefix "rw-project"; + } - import rw-pb-ext { - prefix "rw-pb-ext"; + import rwsdnal { + prefix "rwsdnal"; } - import rwsdn { - prefix "rwsdn"; + import mano-types { + prefix "manotypes"; + } + + revision 2017-02-08 { + description + "Update model to support projects."; } revision 2015-09-14 { @@ -37,16 +45,18 @@ module rw-sdn "Initial revision."; } - list sdn-account { - rw-pb-ext:msg-new SDNAccountConfig; + augment "/rw-project:project" { + container sdn { + list account { + key "name"; + leaf name { + type string; + } - key "name"; - leaf name { - type string; + uses rwsdnal:sdn-provider-auth; + uses rwsdnal:connection-status; + } } - - uses rwsdn:sdn-provider-auth; - uses rwsdn:connection-status; } rpc update-sdn-status { @@ -58,6 +68,21 @@ module rw-sdn "The sdn account name to update connection status for"; type string; } + + uses manotypes:rpc-project-name; + } + } + + notification sdn-notif { + description "Notification for SDN account credentials"; + leaf name { + description "SDN account name"; + type string; + } + + leaf message { + description "Notification message"; + type string; } } }