diff options
author | Yaoguang Wang <sunshine.wang@huawei.com> | 2020-03-12 09:39:59 +0800 |
---|---|---|
committer | Morgan Richomme <morgan.richomme@orange.com> | 2020-03-14 15:58:13 +0000 |
commit | 73862136e234e7bd74e0286dfbf34c07430dacca (patch) | |
tree | 87d85e3c45052d5574f06db56b2db7e97177cc6e /test/mocks/emssimulator/swm-netconf/pnf-swm/model.yang | |
parent | cca938ddcff022f49b7b18486e5126b36cd1a5d1 (diff) |
EMS simulator extension to support netconf interaction with CDS
Issue-ID: INT-1211
Signed-off-by: Yaoguang Wang <sunshine.wang@huawei.com>
Change-Id: I5a7724e6cbfab81eeb3299c88f995c3cf9ea71ec
Diffstat (limited to 'test/mocks/emssimulator/swm-netconf/pnf-swm/model.yang')
-rw-r--r-- | test/mocks/emssimulator/swm-netconf/pnf-swm/model.yang | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/test/mocks/emssimulator/swm-netconf/pnf-swm/model.yang b/test/mocks/emssimulator/swm-netconf/pnf-swm/model.yang new file mode 100644 index 000000000..de1daefac --- /dev/null +++ b/test/mocks/emssimulator/swm-netconf/pnf-swm/model.yang @@ -0,0 +1,86 @@ +module pnf-swm { + namespace "http://onap.org/pnf-swm"; + prefix swm; + + import ietf-yang-types { + prefix yang; + } + + revision "2020-03-10" { + description + "initial version, Ref. 3GPP 32.532-f00"; + } + + container software-management { + config true; + list pnf-software-package { + key "neIdentifier"; + leaf neIdentifier { + type string; + description + "NE identifier."; + } + leaf current-status { + type enumeration { + enum CREATED; + enum INITIALIZED; + enum DOWNLOAD_IN_PROGRESS; + enum DOWNLOAD_COMPLETED; + enum ACTIVATION_IN_PROGRESS; + enum ACTIVATION_COMPLETED; + } + description + "List of possible states of the upgrade"; + } + leaf state-change-time { + mandatory false; + description + "Date and time of the last state change."; + type yang:date-and-time; + } + leaf action { + mandatory false; + type enumeration { + enum NONE; + enum PRE_CHECK; + enum DOWNLOAD_NE_SW; + enum ACTIVATE_NE_SW; + enum POST_CHECK; + enum CANCEL; + } + description + "List of possible actions for the upgrade"; + } + leaf software-version { + type string; + description + "Possible name or release version of the UP"; + } + list swToBeDownloaded { + key "swLocation"; + leaf swLocation { + type string; + description + "Software location to be downloaded."; + } + leaf swFileSize { + type uint64; + description "Software file size."; + } + leaf swFileCompression { + type string; + description "Software file compression algorithm."; + } + leaf swFileFormat { + type string; + description "Software file format."; + } + } + leaf swVersionToBeActivated { + type string; + description + "Software version to be activated."; + } + } + } +} |