Add support for lifecycle upgrade event
This adds experimental support for an upgrading status for the VDU,
and adds lifecycle event status to the VNF
Signed-off-by: Adam Israel <adam.israel@canonical.com>
Change-Id: I23d3b79f21b216f879ad55007623ca437690d5d6
diff --git a/models/yang/vnfd-base.yang b/models/yang/vnfd-base.yang
index c2eae35..2a20d90 100644
--- a/models/yang/vnfd-base.yang
+++ b/models/yang/vnfd-base.yang
@@ -74,6 +74,17 @@
}
}
+ typedef vnf-operational-status {
+ type enumeration {
+ enum init;
+ enum running;
+ enum upgrading;
+ enum terminate;
+ enum terminated;
+ enum failed;
+ }
+ }
+
grouping virtual-interface {
container virtual-interface {
description
@@ -160,11 +171,23 @@
type string;
}
-
container vnf-configuration {
uses manotypes:vca-configuration;
}
+ leaf operational-status {
+ description
+ "The operational status of the VNF
+ init : The VNF has just started.
+ running : The VNF is active in VM
+ upgrading : The VNF is being upgraded (EXPERIMENTAL)
+ terminate : The VNF is being terminated
+ terminated : The VNF is in the terminated state.
+ failed : The VNF instantiation failed.
+ ";
+ type vnf-operational-status;
+ }
+
container mgmt-interface {
description
"Interface over which the VNF is managed.";