X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwcal%2Fplugins%2Fyang%2Frwcal.yang;h=dcd653e14481d93471766043bdbcf17b72f151bf;hb=a3bb91f092d378448cb870eccd45d43865de143c;hp=9daefb106b44b703f86d22440164f4bb693c2796;hpb=af56fd26335608dac8bdb1095f8a588277bdc8a1;p=osm%2FSO.git diff --git a/rwcal/plugins/yang/rwcal.yang b/rwcal/plugins/yang/rwcal.yang index 9daefb10..dcd653e1 100644 --- a/rwcal/plugins/yang/rwcal.yang +++ b/rwcal/plugins/yang/rwcal.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. @@ -43,6 +43,15 @@ module rwcal prefix "manotypes"; } + import rw-project { + prefix "rw-project"; + } + + revision 2017-02-08 { + description + "Update model to support projects."; + } + revision 2014-12-30 { description "Initial revision."; @@ -100,62 +109,6 @@ module rwcal uses connection-status; - typedef sdn-account-type { - description "SDN account type"; - type enumeration { - enum odl; - enum mock; - enum sdnsim; - } - } - - grouping sdn-provider-auth { - leaf account-type { - type sdn-account-type; - } - - choice provider-specific-info { - container odl { - leaf username { - type string { - length "1..255"; - } - } - - leaf password { - type string { - length "1..32"; - } - } - - leaf url { - type string { - length "1..255"; - } - } - } - container mock { - leaf username { - type string; - } - leaf plugin-name { - type string; - default "rwsdn_mock"; - } - } - - container sdnsim { - leaf username { - type string; - } - leaf plugin-name { - type string; - default "rwsdn_sim"; - } - } - } - } - grouping provider-auth { leaf account-type { type manotypes:cloud-account-type; @@ -695,149 +648,153 @@ module rwcal } } - container cloud-accounts { - list cloud-account-list { - rwpb:msg-new CloudAccount; - key "name"; + augment "/rw-project:project" { + container cloud-accounts { + list cloud-account-list { + rwpb:msg-new CloudAccount; + key "name"; - leaf name { - type string; + leaf name { + type string; + } + uses provider-auth; } - uses provider-auth; } } - container vim-resources { - rwpb:msg-new VimResources; - config false; - - list vminfo-list { - rwpb:msg-new VMInfoItem; + augment "/rw-project:project" { + container vim-resources { + rwpb:msg-new VimResources; config false; - key "vm-id"; - - uses vm-info-item; - } - list imageinfo-list { - rwpb:msg-new ImageInfoItem; - config false; - key "id"; + list vminfo-list { + rwpb:msg-new VMInfoItem; + config false; + key "vm-id"; - uses image-info-item; - } + uses vm-info-item; + } - list tenantinfo-list { - rwpb:msg-new TenantInfoItem; - config false; - key "tenant-id"; + list imageinfo-list { + rwpb:msg-new ImageInfoItem; + config false; + key "id"; - leaf tenant-name { - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; + uses image-info-item; } - leaf tenant-id { - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; - } - } + list tenantinfo-list { + rwpb:msg-new TenantInfoItem; + config false; + key "tenant-id"; - list userinfo-list { - rwpb:msg-new UserInfoItem; - config false; - key "user-id"; + leaf tenant-name { + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } - leaf user-name{ - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; + leaf tenant-id { + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } } - leaf user-id { - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; - } - } + list userinfo-list { + rwpb:msg-new UserInfoItem; + config false; + key "user-id"; - list roleinfo-list { - rwpb:msg-new RoleInfoItem; - config false; - key "role-id"; + leaf user-name{ + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } - leaf role-name { - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; + leaf user-id { + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } } - leaf role-id { - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; - } - } + list roleinfo-list { + rwpb:msg-new RoleInfoItem; + config false; + key "role-id"; - list hostinfo-list { - rwpb:msg-new HostInfoItem; - config false; - key "host-id"; + leaf role-name { + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } - leaf host-name { - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; + leaf role-id { + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } } - leaf host-id { - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; - } - } + list hostinfo-list { + rwpb:msg-new HostInfoItem; + config false; + key "host-id"; - list networkinfo-list { - rwpb:msg-new NetworkInfoItem; - config false; - key "network-id"; + leaf host-name { + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } - uses network-info-item; - } + leaf host-id { + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } + } - list portinfo-list { - rwpb:msg-new PortInfoItem; - config false; - key "port-id"; + list networkinfo-list { + rwpb:msg-new NetworkInfoItem; + config false; + key "network-id"; - uses port-info-item; - } + uses network-info-item; + } - list flavorinfo-list { - rwpb:msg-new FlavorInfoItem; - config false; - key "id"; + list portinfo-list { + rwpb:msg-new PortInfoItem; + config false; + key "port-id"; - leaf id { - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; + uses port-info-item; } - leaf name { - rwpb:field-inline "true"; - rwpb:field-string-max 255; - type string; - } + list flavorinfo-list { + rwpb:msg-new FlavorInfoItem; + config false; + key "id"; + + leaf id { + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } + + leaf name { + rwpb:field-inline "true"; + rwpb:field-string-max 255; + type string; + } - uses manotypes:vm-flavor; - uses manotypes:guest-epa; - uses manotypes:vswitch-epa; - uses manotypes:hypervisor-epa; - uses manotypes:host-epa; - uses manotypes:placement-group-input; + uses manotypes:vm-flavor; + uses manotypes:guest-epa; + uses manotypes:vswitch-epa; + uses manotypes:hypervisor-epa; + uses manotypes:host-epa; + uses manotypes:placement-group-input; + } } } @@ -870,13 +827,14 @@ module rwcal } - container virtual-link-req-params { - description "This object defines the parameters required to create a virtual-link"; - rwpb:msg-new VirtualLinkReqParams; - uses virtual-link-create-params; + augment "/rw-project:project" { + container virtual-link-req-params { + description "This object defines the parameters required to create a virtual-link"; + rwpb:msg-new VirtualLinkReqParams; + uses virtual-link-create-params; + } } - grouping connection-point-type { leaf type { description @@ -1032,59 +990,63 @@ module rwcal } } - container vdu-init-params { - description "This object defines the parameters required to create a VDU"; - rwpb:msg-new VDUInitParams; - uses vdu-create-params; + augment "/rw-project:project" { + container vdu-init-params { + description "This object defines the parameters required to create a VDU"; + rwpb:msg-new VDUInitParams; + uses vdu-create-params; + } } - container vdu-modify-params { - description "This object defines the parameters required to modify VDU"; - rwpb:msg-new VDUModifyParams; - - leaf vdu-id { - description "CAL assigned id for VDU to which this connection point belongs"; - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; - } + augment "/rw-project:project" { + container vdu-modify-params { + description "This object defines the parameters required to modify VDU"; + rwpb:msg-new VDUModifyParams; - leaf image-id { - description "CAL assigned image-id for the VDU image"; - rwpb:field-inline "true"; - rwpb:field-string-max 64; - type string; - } - - list connection-points-add { - key "name"; - leaf name { - description "Name of the connection point"; - type string; - } - leaf virtual-link-id { - description "CAL assigned resource Id for the Virtual Link"; + leaf vdu-id { + description "CAL assigned id for VDU to which this connection point belongs"; + rwpb:field-inline "true"; + rwpb:field-string-max 64; type string; } - leaf associate-public-ip { - type boolean; - default false; - } - leaf port-security-enabled { - description "Enables the port security"; - type boolean; - } - - uses connection-point-type; - } - list connection-points-remove { - key "connection-point-id"; - leaf connection-point-id { + leaf image-id { + description "CAL assigned image-id for the VDU image"; rwpb:field-inline "true"; rwpb:field-string-max 64; type string; } + + list connection-points-add { + key "name"; + leaf name { + description "Name of the connection point"; + type string; + } + leaf virtual-link-id { + description "CAL assigned resource Id for the Virtual Link"; + type string; + } + leaf associate-public-ip { + type boolean; + default false; + } + leaf port-security-enabled { + description "Enables the port security"; + type boolean; + } + + uses connection-point-type; + } + + list connection-points-remove { + key "connection-point-id"; + leaf connection-point-id { + rwpb:field-inline "true"; + rwpb:field-string-max 64; + type string; + } + } } } @@ -1277,22 +1239,24 @@ module rwcal } - container vnf-resources { - rwpb:msg-new VNFResources; - config false; - - list virtual-link-info-list { - rwpb:msg-new VirtualLinkInfoParams; + augment "/rw-project:project" { + container vnf-resources { + rwpb:msg-new VNFResources; config false; - key virtual-link-id; - uses virtual-link-info-params; - } - list vdu-info-list { - rwpb:msg-new VDUInfoParams; - config false; - key vdu-id; - uses vdu-info-params; + list virtual-link-info-list { + rwpb:msg-new VirtualLinkInfoParams; + config false; + key virtual-link-id; + uses virtual-link-info-params; + } + + list vdu-info-list { + rwpb:msg-new VDUInfoParams; + config false; + key vdu-id; + uses vdu-info-params; + } } } }