X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=common%2Fplugins%2Fyang%2Frw-sdn.yang;fp=common%2Fplugins%2Fyang%2Frw-sdn.yang;h=5b82d47e25fc1d867f8f96909a20baa057952cf9;hb=6f07e6f33f751ab4ffe624f6037f887b243bece2;hp=0000000000000000000000000000000000000000;hpb=72a563886272088feb7cb52e4aafbe6d2c580ff9;p=osm%2FSO.git diff --git a/common/plugins/yang/rw-sdn.yang b/common/plugins/yang/rw-sdn.yang new file mode 100644 index 00000000..5b82d47e --- /dev/null +++ b/common/plugins/yang/rw-sdn.yang @@ -0,0 +1,71 @@ + +/* + * + * Copyright 2016 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * + */ + +module rw-sdn +{ + namespace "http://riftio.com/ns/riftware-1.0/rw-sdn"; + prefix "rw-sdn"; + + + import rw-pb-ext { + prefix "rwpb"; + } + + import rw-cli-ext { + prefix "rwcli"; + } + + import rw-yang-types { + prefix "rwt"; + } + + import rwsdn { + prefix "rwsdn"; + } + + revision 2015-09-14 { + description + "Initial revision."; + } + + list sdn-account { + rwpb:msg-new SDNAccountConfig; + + key "name"; + leaf name { + type string; + } + + uses rwsdn:sdn-provider-auth; + uses rwsdn:connection-status; + } + + rpc update-sdn-status { + description "Begin sdn accunt connection status"; + input { + leaf sdn-account { + mandatory true; + description + "The sdn account name to update connection status for"; + type string; + } + } + } +}