prefix "inet";
}
- import rw-pb-ext {
- prefix "rwpb";
- }
-
import rw-project {
prefix "rw-project";
}
}
}
-
grouping vca-configuration {
description
"Information about the VNF or VDU configuration. Note:
type string;
}
uses manotypes:vca-relationships;
-
}
}
+ }
+ list config-primitive {
+ description
+ "List of config primitives supported by the
+ configuration agent for this VNF or VDU.";
+ key "name";
- list service-primitive {
- rwpb:msg-new ServicePrimitive;
+ leaf name {
description
- "List of config primitives supported by the
- configuration agent for this VNF or VDU.";
- key "name";
-
- leaf name {
- description
- "Name of the config primitive.";
- type string;
- }
+ "Name of the config primitive.";
+ type string;
+ }
- list parameter {
- description
- "List of parameters to the config primitive.";
- key "name";
- uses primitive-parameter;
- }
+ list parameter {
+ description
+ "List of parameters to the config primitive.";
+ key "name";
+ uses primitive-parameter;
+ }
- leaf user-defined-script {
- description
- "A user defined script. If user defined script is defined,
- the script will be executed using bash";
- type string;
- }
+ leaf user-defined-script {
+ description
+ "A user defined script. If user defined script is defined,
+ the script will be executed using bash";
+ type string;
}
+ }
- list initial-config-primitive {
- rwpb:msg-new InitialConfigPrimitive;
+ list initial-config-primitive {
+ description
+ "Initial set of configuration primitives.";
+ key "seq";
+ leaf seq {
description
- "Initial set of configuration primitives.";
- key "seq";
- leaf seq {
- description
- "Sequence number for the configuration primitive.";
- type uint64;
- }
+ "Sequence number for the configuration primitive.";
+ type uint64;
+ }
- choice primitive-type {
- case primitive-definition {
- leaf name {
- description
- "Name of the configuration primitive.";
- type string;
- }
+ choice primitive-type {
+ case primitive-definition {
+ leaf name {
+ description
+ "Name of the configuration primitive.";
+ type string;
+ }
- uses primitive-parameter-value;
+ uses primitive-parameter-value;
- leaf user-defined-script {
- description
- "A user defined script.";
- type string;
- }
+ leaf user-defined-script {
+ description
+ "A user defined script.";
+ type string;
}
}
}
}
list user {
- rwpb:msg-new CloudConfigUser;
key "name";
description "List of users to be added through cloud-config";
namespace "http://riftio.com/ns/riftware-1.0/nsd-base";
prefix "nsd-base";
- import rw-pb-ext {
- prefix "rwpb";
- }
-
import ietf-inet-types {
prefix "inet";
}
uses manotypes:ip-profile-list;
list initial-service-primitive {
- rwpb:msg-new NsdInitialServicePrimitive;
description
"Initial set of service primitives for NSD.";
key "seq";
}
list terminate-service-primitive {
- rwpb:msg-new NsdTerminateServicePrimitive;
description
"Set of service primitives during
termination for NSD.";
default false;
}
- leaf ipv4-nat-pool-name{
- type string;
- description "IPV4 nat pool name";
- }
-
choice init-params {
description "Extra parameters for VLD instantiation";
namespace "urn:ietf:params:xml:ns:yang:nfvo:nsr";
prefix "nsr";
- import rw-pb-ext {
- prefix "rwpb";
- }
-
import vlr {
prefix "vlr";
}
"Derived from earlier versions of base YANG files";
}
+ typedef vnffgr-operational-status {
+ type enumeration {
+ enum init;
+ enum running;
+ enum terminate;
+ enum terminated;
+ enum failed;
+ }
+ }
+
+ typedef ns-operational-status {
+ type enumeration {
+ enum init;
+ enum vl-init-phase;
+ enum vnf-init-phase;
+ enum running;
+ enum terminate;
+ enum vnf-terminate-phase;
+ enum vl-terminate-phase;
+ enum terminated;
+ enum failed;
+ enum scaling-out;
+ enum scaling-in;
+ enum vl-instantiate;
+ enum vl-terminate;
+ }
+ }
+
typedef config-states {
type enumeration {
enum init;
terminated : The VNFFGR is in the terminated state.
failed : The VNFFGR instantiation failed
";
-
- type enumeration {
- rwpb:enum-type "VnffgrOperationalStatus";
- enum init;
- enum running;
- enum terminate;
- enum terminated;
- enum failed;
- }
+ type vnffgr-operational-status;
}
list rsp {
type string;
}
leaf port-id {
- rwpb:field-inline "true";
- rwpb:field-string-max 64;
type string;
}
leaf vm-id {
- rwpb:field-inline "true";
- rwpb:field-string-max 64;
type string;
}
leaf address {
}
}
leaf port-id {
- rwpb:field-inline "true";
- rwpb:field-string-max 64;
type string;
}
leaf vm-id {
- rwpb:field-inline "true";
- rwpb:field-string-max 64;
type string;
}
leaf ip-address {
vl-terminate : The NS is terminating a VL
";
- type enumeration {
- enum init;
- enum vl-init-phase;
- enum vnf-init-phase;
- enum running;
- enum terminate;
- enum vnf-terminate-phase;
- enum vl-terminate-phase;
- enum terminated;
- enum failed;
- enum scaling-out;
- enum scaling-in;
- enum vl-instantiate;
- enum vl-terminate;
- }
+ type ns-operational-status;
}
leaf config-status {
}
list initial-service-primitive {
- rwpb:msg-new NsrInitialServicePrimitive;
description
"Initial set of service primitives for NSD.";
key "seq";
}
list terminate-service-primitive {
- rwpb:msg-new NsrTerminateServicePrimitive;
description
"Set of service primitives to
execute during termination of NSD.";
namespace "urn:ietf:params:xml:ns:yang:nfvo:vlr";
prefix "vlr";
- import rw-pb-ext {
- prefix "rwpb";
- }
-
import ietf-yang-types {
prefix "yang";
}
";
type enumeration {
- rwpb:enum-type "VlOperationalStatus";
enum init;
enum vl-alloc-pending;
enum running;
prefix "manotypes";
}
- import rw-pb-ext {
- prefix "rwpb";
- }
-
import vnfd-base {
prefix "vnfd-base";
}
"Derived from earlier versions of base YANG files";
}
+ typedef vdu-operational-status {
+ type enumeration {
+ enum init;
+ enum vm-init-phase;
+ enum vm-alloc-pending;
+ enum running;
+ enum terminate;
+ enum vl-terminate-phase;
+ enum terminated;
+ enum failed;
+ }
+ }
+
+ typedef vnf-operational-status {
+ type enumeration {
+ enum pre-init;
+ enum init;
+ enum vl-init-phase;
+ enum vm-init-phase;
+ enum running;
+ enum terminate;
+ enum vm-terminate-phase;
+ enum vl-terminate-phase;
+ enum terminated;
+ enum failed;
+ }
+ }
+
grouping placement-group-info {
list placement-groups-info {
description
}
}
-
grouping virtual-interface {
container virtual-interface {
description
"IP address assigned to the external connection point";
type inet:ip-address;
}
+
leaf mac-address {
description
"MAC address assigned to the external connection point";
description "Short Unique name of the VDU
This will be of the format NSR name-ShortnedString-VDUname
NSR name and VDU name shall be constrained to 10 characters";
- rwpb:field-inline "true";
- rwpb:field-string-max 64;
type string;
}
"IP address assigned to the internal connection point";
type inet:ip-address;
}
+
leaf mac-address {
description
"MAC address assigned to the internal connection point";
uses virtual-interface;
}
- leaf operational-status {
- description
- "The operational status of the VDU
- init : The VDU has just started.
- vm-init-phase : The VDUs in the VNF is being created in VIM.
- vm-alloc-pending : The VM alloc is pending in VIM
- running : The VDU is active in VM
- terminate : The VDU is being terminated
- vm-terminate-phase : The VDU in the VNF is being terminated in VIM.
- terminated : The VDU is in the terminated state.
- failed : The VDU instantiation failed.
- ";
-
- type enumeration {
- rwpb:enum-type "VduOperationalStatus";
- enum init;
- enum vm-init-phase;
- enum vm-alloc-pending;
- enum running;
- enum terminate;
- enum vl-terminate-phase;
- enum terminated;
- enum failed;
- }
- }
+ leaf operational-status {
+ description
+ "The operational status of the VDU
+ init : The VDU has just started.
+ vm-init-phase : The VDUs in the VNF is being created in VIM.
+ vm-alloc-pending : The VM alloc is pending in VIM
+ running : The VDU is active in VM
+ terminate : The VDU is being terminated
+ vm-terminate-phase : The VDU in the VNF is being terminated in VIM.
+ terminated : The VDU is in the terminated state.
+ failed : The VDU instantiation failed.
+ ";
+ type vdu-operational-status;
+ }
uses placement-group-info;
}
terminated : The VNF is in the terminated state.
failed : The VNF instantiation failed
";
-
- type enumeration {
- rwpb:enum-type "VnfrOperationalStatus";
- enum pre-init;
- enum init;
- enum vl-init-phase;
- enum vm-init-phase;
- enum running;
- enum terminate;
- enum vm-terminate-phase;
- enum vl-terminate-phase;
- enum terminated;
- enum failed;
- }
+ type vnf-operational-status;
}
leaf config-status {
uses placement-group-info;
container cloud-config {
- rwpb:msg-new VnfrCloudConfig;
uses manotypes:cloud-config;
}
}