Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 1 | module ietf-datastores { |
| 2 | yang-version 1.1; |
| 3 | namespace "urn:ietf:params:xml:ns:yang:ietf-datastores"; |
| 4 | prefix ds; |
| 5 | |
| 6 | organization |
| 7 | "IETF Network Modeling (NETMOD) Working Group"; |
| 8 | |
| 9 | contact |
| 10 | "WG Web: <https://datatracker.ietf.org/wg/netmod/> |
| 11 | |
| 12 | WG List: <mailto:netmod@ietf.org> |
| 13 | |
| 14 | Author: Martin Bjorklund |
| 15 | <mailto:mbj@tail-f.com> |
| 16 | |
| 17 | Author: Juergen Schoenwaelder |
| 18 | <mailto:j.schoenwaelder@jacobs-university.de> |
| 19 | |
| 20 | Author: Phil Shafer |
| 21 | <mailto:phil@juniper.net> |
| 22 | |
| 23 | Author: Kent Watsen |
| 24 | <mailto:kwatsen@juniper.net> |
| 25 | |
| 26 | Author: Rob Wilton |
| 27 | <rwilton@cisco.com>"; |
| 28 | |
| 29 | description |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 30 | "This YANG module defines a set of identities for identifying |
| 31 | datastores. |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 32 | |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 33 | Copyright (c) 2018 IETF Trust and the persons identified as |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 34 | authors of the code. All rights reserved. |
| 35 | |
| 36 | Redistribution and use in source and binary forms, with or |
| 37 | without modification, is permitted pursuant to, and subject to |
| 38 | the license terms contained in, the Simplified BSD License set |
| 39 | forth in Section 4.c of the IETF Trust's Legal Provisions |
| 40 | Relating to IETF Documents |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 41 | (https://trustee.ietf.org/license-info). |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 42 | |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 43 | This version of this YANG module is part of RFC 8342 |
| 44 | (https://www.rfc-editor.org/info/rfc8342); see the RFC itself |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 45 | for full legal notices."; |
| 46 | |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 47 | revision 2018-02-14 { |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 48 | description |
| 49 | "Initial revision."; |
| 50 | reference |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 51 | "RFC 8342: Network Management Datastore Architecture (NMDA)"; |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | /* |
| 55 | * Identities |
| 56 | */ |
| 57 | |
| 58 | identity datastore { |
| 59 | description |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 60 | "Abstract base identity for datastore identities."; |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | identity conventional { |
| 64 | base datastore; |
| 65 | description |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 66 | "Abstract base identity for conventional configuration |
| 67 | datastores."; |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 68 | } |
| 69 | |
| 70 | identity running { |
| 71 | base conventional; |
| 72 | description |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 73 | "The running configuration datastore."; |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | identity candidate { |
| 77 | base conventional; |
| 78 | description |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 79 | "The candidate configuration datastore."; |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 80 | } |
| 81 | |
| 82 | identity startup { |
| 83 | base conventional; |
| 84 | description |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 85 | "The startup configuration datastore."; |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 86 | } |
| 87 | |
| 88 | identity intended { |
| 89 | base conventional; |
| 90 | description |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 91 | "The intended configuration datastore."; |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | identity dynamic { |
| 95 | base datastore; |
| 96 | description |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 97 | "Abstract base identity for dynamic configuration datastores."; |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 98 | } |
| 99 | |
| 100 | identity operational { |
| 101 | base datastore; |
| 102 | description |
Michal Vasko | cf296c8 | 2020-05-27 11:16:45 +0200 | [diff] [blame] | 103 | "The operational state datastore."; |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 104 | } |
| 105 | |
| 106 | /* |
| 107 | * Type definitions |
| 108 | */ |
| 109 | |
| 110 | typedef datastore-ref { |
| 111 | type identityref { |
| 112 | base datastore; |
| 113 | } |
| 114 | description |
| 115 | "A datastore identity reference."; |
| 116 | } |
Radek Krejci | 86d106e | 2018-10-18 09:53:19 +0200 | [diff] [blame] | 117 | } |