Indicate code signature management.
Version: 2021-03-10
module huawei-codesign { yang-version 1; namespace "urn:huawei:yang:huawei-codesign"; prefix codesign; import ietf-yang-types { prefix yang; } import huawei-extension { prefix ext; } organization "Huawei Technologies Co., Ltd."; contact "Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com"; description "Indicate code signature management."; revision "2021-03-10" { description "Add check-software."; reference "Huawei private."; } revision "2020-07-23" { description "Add key of list software-crl."; reference "Huawei private."; } revision "2020-06-29" { description "Modify node description."; reference "Huawei private."; } revision "2020-04-02" { description "Modify YANG check."; reference "Huawei private."; } revision "2019-03-01" { description "Initial revision."; reference "Huawei private."; } ext:task-name "patch"; typedef crl-status { type enumeration { enum "0" { value 0; description "Invalid file."; } enum "1" { value 1; description "Valid file."; } } status deprecated; description "CRL status value. The alternative enumeration node is valid-type."; } typedef valid-type { type enumeration { enum "invalid" { value 0; description "Invalid file."; } enum "valid" { value 1; description "Valid file."; } } description "CRL status value."; } container codesign { config false; description "Indicate code signature management."; container software-crls { description "List of operational state of CRL information."; list software-crl { key "slot publisher"; description "Operational state of CRL information."; leaf slot { type string { length "1..64"; } description "Slot ID of a board."; } leaf publisher { type string { length "1..256"; } description "CRL publisher."; } leaf date { type yang:date-and-time; description "CRL publish date."; } leaf valid { type crl-status; status deprecated; description "CRL status. The node valid is deprecated. You are advised to use the node valid-type."; } leaf valid-type { type valid-type; description "CRL status."; } } // list software-crl } // container software-crls container packages-verify-faileds { description "List of operational state of package digital signature verification failed."; list packages-verify-failed { key "slot"; description "Operational state of package digital signature verification failed."; leaf slot { type string { length "1..64"; } description "Slot ID of a board."; } leaf name { ext:support-filter "true"; type string { length "4..127"; } description "Package name that package digital signature verification failed to be verified."; } } // list packages-verify-failed } // container packages-verify-faileds container crl-names { description "List of operational data of CRL file."; list crl-name { key "name"; description "Operational data of CRL file."; leaf name { type string { length "5..63"; } description "CRL file name."; } } // list crl-name } // container crl-names } // container codesign rpc software-crl-load { ext:node-ref "/codesign/crl-names/crl-name"; description "Load CRL file."; input { leaf name { type leafref { path "/codesign/crl-names/crl-name/name"; } mandatory true; description "CRL file name."; } } } // rpc software-crl-load rpc check-software { description "Check software file,such as system software,feature software,patch and module package."; input { leaf name { type string { length "4..255"; } mandatory true; description "Software file name."; } } } // rpc check-software } // module huawei-codesign
© 2023 YumaWorks, Inc. All rights reserved.