%.rec.html: $(TREES_DIR) yang-ietf
$(Q)echo generating $@ from $*.yang
- $(Q)pyang $(PYANG_OPTIONS) --path $(MODEL_DIR) -f jstree -o $(TREES_DIR)/$@ $(MODEL_DIR)/rw-project.yang $(MODEL_DIR)/$*.yang
+ $(Q)pyang $(PYANG_OPTIONS) --path $(MODEL_DIR) -f jstree -o $(TREES_DIR)/$@ $(MODEL_DIR)/osm-project.yang $(MODEL_DIR)/$*.yang
$(Q)sed -r -i 's|data\:image/gif\;base64,R0lGODlhS.*RCAA7|https://osm.etsi.org/images/OSM-logo.png\" width=\"175\" height=\"60|g' $(TREES_DIR)/$@
$(Q)sed -r -i 's|<a href=\"http://www.tail-f.com">|<a href="http://osm.etsi.org">|g' $(TREES_DIR)/$@
$(Q)mv $(TREES_DIR)/$@ $(TREES_DIR)/$*.html
module instantiation-parameters {
//header information
yang-version 1;
- namespace "urn:ietf:params:xml:ns:yang:nfvo:instantiation-parameters";
+ namespace "urn:etsi:osm:yang:instantiation-parameters";
prefix "instantiation-parameters";
import nsd {
module mano-types
{
- namespace "urn:ietf:params:xml:ns:yang:nfvo:mano-types";
+ namespace "urn:etsi:osm:yang:mano-types";
prefix "manotypes";
import ietf-inet-types {
prefix "inet";
}
- import rw-project {
- prefix "rw-project";
+ import osm-project {
+ prefix "osm-project";
}
revision 2017-02-08 {
description
"Project to which this belongs";
type leafref {
- path "/rw-project:project/rw-project:name";
+ path "/osm-project:project/osm-project:name";
}
}
}
module netslice-instantiation-parameters {
//header information
yang-version 1;
- namespace "urn:ietf:params:xml:ns:yang:nfvo:netslice-instantiation-parameters";
+ namespace "urn:etsi:osm:yang:netslice-instantiation-parameters";
prefix "netslice-instantiation-parameters";
import nsd {
module nsd-base
{
- namespace "http://riftio.com/ns/riftware-1.0/nsd-base";
+ namespace "urn:etsi:osm:yang:nsd-base";
prefix "nsd-base";
import ietf-inet-types {
module nsd
{
- namespace "urn:ietf:params:xml:ns:yang:nfvo:nsd";
+ namespace "urn:etsi:osm:yang:nsd";
prefix "nsd";
import vnfd {
module nsi {
//header information
yang-version 1;
- namespace "urn:ietf:params:xml:ns:yang:nfvo:nsi";
+ namespace "urn:etsi:osm:yang:nsi";
prefix "nsi";
import nst {
prefix "nsr";
}
- import rw-project {
- prefix "rw-project";
+ import osm-project {
+ prefix "osm-project";
}
import netslice-instantiation-parameters {
description "Reference to instantiated NSR";
config false;
type leafref {
- path "/rw-project:project/nsr:ns-instance-opdata/nsr:nsr/nsr:ns-instance-config-ref";
+ path "/osm-project:project/nsr:ns-instance-opdata/nsr:nsr/nsr:ns-instance-config-ref";
}
}
}
module nsr
{
- namespace "urn:ietf:params:xml:ns:yang:nfvo:nsr";
+ namespace "urn:etsi:osm:yang:nsr";
prefix "nsr";
import vlr {
prefix "manotypes";
}
- import rw-project {
- prefix "rw-project";
+ import osm-project {
+ prefix "osm-project";
}
revision 2017-02-08 {
}
}
- augment "/rw-project:project" {
+ augment "/osm-project:project" {
list key-pair {
key "name";
description "Used to configure the list of public keys to be injected as part
}
}
- augment "/rw-project:project" {
+ augment "/osm-project:project" {
container ns-instance-config {
list nsr {
}
}
- augment "/rw-project:project" {
+ augment "/osm-project:project" {
container ns-instance-opdata {
config false;
leaf nsr_id_ref {
description "Reference to NSR ID ref";
type leafref {
- path "/rw-project:project[rw-project:name=current()/.." +
+ path "/osm-project:project[osm-project:name=current()/.." +
"/nsr:project-name]/nsr:ns-instance-config/nsr:nsr/nsr:id";
}
mandatory true;
leaf scaling-group-name-ref {
description "name of the scaling group";
type leafref {
- path "/rw-project:project[rw-project:name=current()/.." +
+ path "/osm-project:project[osm-project:name=current()/.." +
"/nsr:project-name]/nsr:ns-instance-config/nsr:nsr" +
"[nsr:id=current()/../nsr:nsr_id_ref]/nsr:nsd" +
"/nsr:scaling-group-descriptor/nsr:name";
leaf instance-id {
description "id of the scaling group";
type leafref {
- path "/rw-project:project[rw-project:name=current()/.." +
+ path "/osm-project:project[osm-project:name=current()/.." +
"/nsr:project-name]/nsr:ns-instance-config/nsr:nsr" +
"[nsr:id=current()/../nsr:nsr_id_ref]" +
"/nsr:scaling-group[nsr:scaling-group-name-ref=current()/.." +
leaf scaling-group-name-ref {
description "name of the scaling group";
type leafref {
- path "/rw-project:project[rw-project:name=current()/.." +
+ path "/osm-project:project[osm-project:name=current()/.." +
"/nsr:project-name]/nsr:ns-instance-config/nsr:nsr" +
"[nsr:id=current()/../nsr:nsr_id_ref]/nsr:nsd" +
"/nsr:scaling-group-descriptor/nsr:name";
leaf nsd_id_ref {
description "Reference to NSD ID ref";
type leafref {
- path "/rw-project:project[rw-project:name=current()/.." +
+ path "/osm-project:project[osm-project:name=current()/.." +
"/project-name]/project-nsd:nsd-catalog/project-nsd:nsd/project-nsd:id";
}
}
description
"A reference to VNFD placement group";
type leafref {
- path "/rw-project:project[rw-project:name=current()/" +
+ path "/osm-project:project[osm-project:name=current()/" +
"../../project-name]/project-vnfd:vnfd-catalog/project-vnfd:vnfd[project-vnfd:id = " +
"current()/../vnfd-id-ref]/project-vnfd:placement-groups/project-vnfd:name";
}
leaf key-pair-ref {
description "A reference to the key pair entry in the global key pair table";
type leafref {
- path "/rw-project:project[rw-project:name=current()/../../../" +
+ path "/osm-project:project[osm-project:name=current()/../../../" +
"project-name]/key-pair/name";
}
}
leaf key-pair-ref {
description "A reference to the key pair entry in the global key pair table";
type leafref {
- path "/rw-project:project[rw-project:name=current()/" +
+ path "/osm-project:project[osm-project:name=current()/" +
"../../../../project-name]/key-pair/name";
}
}
module nst {
//header information
yang-version 1;
- namespace "urn:ietf:params:xml:ns:yang:nfvo:nst";
+ namespace "urn:etsi:osm:yang:nst";
prefix "nst";
import nsd-base{
--- /dev/null
+/*
+ * 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 osm-project
+{
+ namespace "urn:etsi:osm:yang:osm-project";
+ prefix "osm-project";
+
+ description
+ "This yang module defines project-based tenancy for RIFT.ware.
+ Authorization for project access is defined in terms of RIFT.ware's
+ Role-Based Access Control (RBAC) model.";
+
+ revision 2015-09-10 {
+ description
+ "Initial revision. This YANG file defines the model for
+ RIFT.ware project management for multi-tenancy";
+ reference
+ "RIFT.io MANO Tenancy Design Specification";
+ }
+
+ list project {
+ description
+ "Configuration and state for individual projects. RIFT.ware
+ applications and projects are expected to augment this list in
+ order to add configuration for projects that is specific to the
+ product or application. As such, this list contains minimal
+ data defined in this yang module.
+
+ When augmenting this element, other yang modules should prefer to
+ define containers with the same name as the augmenting module.
+ (Augmenting RIFT.ware modules should prefer to augment without
+ the rw prefix [for new features], or should prefer to augment the
+ augmented container of an existing augment, to ease future
+ adoption and/or standardization.)";
+
+ key "name";
+ leaf name {
+ description "Name of the project.";
+ type string {
+ length "1..255";
+ }
+ }
+
+ leaf description {
+ description "Information about project";
+ type string;
+ }
+ }
+}
module project-nsd
{
- namespace "http://riftio.com/ns/riftware-1.0/project-nsd";
+ namespace "urn:etsi:osm:yang:project-nsd";
prefix "project-nsd";
import mano-types {
prefix "nsd-base";
}
- import rw-project {
- prefix "rw-project";
+ import osm-project {
+ prefix "osm-project";
}
description
"Identifier for the VNFD.";
type leafref {
- path "/rw-project:project[rw-project:name = current()/../../../../rw-project:name]" +
+ path "/osm-project:project[osm-project:name = current()/../../../../osm-project:name]" +
"/project-vnfd:vnfd-catalog/project-vnfd:vnfd/project-vnfd:id";
}
}
description
"Identifier for the VNFD.";
type leafref {
- path "/rw-project:project[rw-project:name = current()/../../../../../rw-project:name]" +
+ path "/osm-project:project[osm-project:name = current()/../../../../../osm-project:name]" +
"/project-vnfd:vnfd-catalog/project-vnfd:vnfd/project-vnfd:id";
}
}
uses nsd-service-primitive;
}
- augment "/rw-project:project" {
+ augment "/osm-project:project" {
container nsd-catalog {
list nsd {
module project-vnfd
{
- namespace "http://riftio.com/ns/riftware-1.0/project-vnfd";
+ namespace "urn:etsi:osm:yang:project-vnfd";
prefix "project-vnfd";
- import rw-project {
- prefix "rw-project";
+ import osm-project {
+ prefix "osm-project";
}
import vnfd-base {
"Derived from earlier versions of base YANG files";
}
- augment /rw-project:project {
+ augment /osm-project:project {
container vnfd-catalog {
description
"Virtual Network Function Descriptor (VNFD).";
+++ /dev/null
-/*
- * 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-project
-{
- namespace "http://riftio.com/ns/riftware-1.0/rw-project";
- prefix "rw-project";
-
- description
- "This yang module defines project-based tenancy for RIFT.ware.
- Authorization for project access is defined in terms of RIFT.ware's
- Role-Based Access Control (RBAC) model.";
-
- revision 2015-09-10 {
- description
- "Initial revision. This YANG file defines the model for
- RIFT.ware project management for multi-tenancy";
- reference
- "RIFT.io MANO Tenancy Design Specification";
- }
-
- list project {
- description
- "Configuration and state for individual projects. RIFT.ware
- applications and projects are expected to augment this list in
- order to add configuration for projects that is specific to the
- product or application. As such, this list contains minimal
- data defined in this yang module.
-
- When augmenting this element, other yang modules should prefer to
- define containers with the same name as the augmenting module.
- (Augmenting RIFT.ware modules should prefer to augment without
- the rw prefix [for new features], or should prefer to augment the
- augmented container of an existing augment, to ease future
- adoption and/or standardization.)";
-
- key "name";
- leaf name {
- description "Name of the project.";
- type string {
- length "1..255";
- }
- }
-
- leaf description {
- description "Information about project";
- type string;
- }
- }
-}
module vlr
{
- namespace "urn:ietf:params:xml:ns:yang:nfvo:vlr";
+ namespace "urn:etsi:osm:yang:vlr";
prefix "vlr";
import ietf-yang-types {
prefix "manotypes";
}
- import rw-project {
- prefix "rw-project";
+ import osm-project {
+ prefix "osm-project";
}
revision 2017-02-08 {
"Derived from earlier versions of base YANG files";
}
- augment "/rw-project:project" {
+ augment "/osm-project:project" {
container vlr-catalog {
leaf schema-version {
description "Schema version for the VLR. If unspecified, it assumes v3.0";
leaf nsr-id-ref {
description
"NS instance identifier.
- This is a leafref /rw-project:project/nsr:ns-instance-config/nsr:nsr/nsr:id";
+ This is a leafref /osm-project:project/nsr:ns-instance-config/nsr:nsr/nsr:id";
type yang:uuid;
}
leaf vld-ref {
description
"Reference to VLD
- /rw-project:project/nsr:ns-instance-config/nsr:nsr[nsr:id=../nsr-id-ref]
+ /osm-project:project/nsr:ns-instance-config/nsr:nsr[nsr:id=../nsr-id-ref]
/nsd/vld:vld/vld:id";
type string;
}
module vnfd-base
{
- namespace "http://riftio.com/ns/riftware-1.0/vnfd-base";
+ namespace "urn:etsi:osm:yang:vnfd-base";
prefix "vnfd-base";
import mano-types {
module vnfd
{
- namespace "urn:ietf:params:xml:ns:yang:nfvo:vnfd";
+ namespace "urn:etsi:osm:yang:vnfd";
prefix "vnfd";
import vnfd-base {
module vnffgd
{
- namespace "urn:ietf:params:xml:ns:yang:nfvo:vnffgd";
+ namespace "urn:etsi:osm:yang:vnffgd";
prefix "vnffgd";
import ietf-yang-types {
prefix "yang";
}
- import rw-project {
- prefix "rw-project";
+ import osm-project {
+ prefix "osm-project";
}
revision 2017-02-08 {
"Derived from earlier versions of base YANG files";
}
- augment "/rw-project:project" {
+ augment "/osm-project:project" {
container vnffgd-catalog {
list vnffgd {
module vnfr
{
- namespace "urn:ietf:params:xml:ns:yang:nfvo:vnfr";
+ namespace "urn:etsi:osm:yang:vnfr";
prefix "vnfr";
import mano-types {
prefix "inet";
}
- import rw-project {
- prefix "rw-project";
+ import osm-project {
+ prefix "osm-project";
}
revision 2017-02-28 {
}
}
- augment "/rw-project:project" {
+ augment "/osm-project:project" {
container vnfr-catalog {
leaf schema-version {
description "Schema version for the VNFR. If unspecified, it assumes v3.0";