ebo | bebdedf | 2020-02-27 13:55:26 +0000 | [diff] [blame^] | 1 | module pnf-sw-upgrade { |
| 2 | namespace "http://onap.org/pnf-sw-upgrade"; |
| 3 | prefix upgrade; |
| 4 | |
| 5 | import ietf-yang-types { |
| 6 | prefix yang; |
| 7 | } |
| 8 | |
| 9 | revision "2019-12-03" { |
| 10 | description |
| 11 | "initial version"; |
| 12 | } |
| 13 | |
| 14 | container software-upgrade { |
| 15 | config true; |
| 16 | list upgrade-package { |
| 17 | key "id"; |
| 18 | leaf id { |
| 19 | type string; |
| 20 | } |
| 21 | leaf current-status { |
| 22 | type enumeration { |
| 23 | enum CREATED; |
| 24 | enum INITIALIZED; |
| 25 | enum DOWNLOAD_IN_PROGRESS; |
| 26 | enum DOWNLOAD_COMPLETED; |
| 27 | enum ACTIVATION_IN_PROGRESS; |
| 28 | enum ACTIVATION_COMPLETED; |
| 29 | } |
| 30 | description |
| 31 | "List of possible states of the upgrade"; |
| 32 | } |
| 33 | leaf state-change-time { |
| 34 | mandatory false; |
| 35 | description |
| 36 | "Date and time of the last state change."; |
| 37 | type yang:date-and-time; |
| 38 | } |
| 39 | leaf action { |
| 40 | mandatory false; |
| 41 | type enumeration { |
| 42 | enum NONE; |
| 43 | enum PRE_CHECK; |
| 44 | enum DOWNLOAD_NE_SW; |
| 45 | enum ACTIVATE_NE_SW; |
| 46 | enum CANCEL; |
| 47 | } |
| 48 | description |
| 49 | "List of possible actions for the upgrade"; |
| 50 | } |
| 51 | leaf software-version { |
| 52 | type string; |
| 53 | description |
| 54 | "Possible name or release version of the UP"; |
| 55 | } |
| 56 | leaf uri { |
| 57 | type string; |
| 58 | description |
| 59 | "A URI that points to the directory where the UP can be found."; |
| 60 | } |
| 61 | leaf user { |
| 62 | type string; |
| 63 | description |
| 64 | "Indicates the user."; |
| 65 | } |
| 66 | leaf password { |
| 67 | type string; |
| 68 | description |
| 69 | "Indicates the password."; |
| 70 | } |
| 71 | leaf user-label { |
| 72 | type string; |
| 73 | description |
| 74 | "Free-text description of the UP."; |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | } |