blob: 9e875ab6a19cb6688313e8a76871ef3e8dd41381 [file] [log] [blame]
Radek Krejci86d106e2018-10-18 09:53:19 +02001module 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 Vaskocf296c82020-05-27 11:16:45 +020030 "This YANG module defines a set of identities for identifying
31 datastores.
Radek Krejci86d106e2018-10-18 09:53:19 +020032
Michal Vaskocf296c82020-05-27 11:16:45 +020033 Copyright (c) 2018 IETF Trust and the persons identified as
Radek Krejci86d106e2018-10-18 09:53:19 +020034 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 Vaskocf296c82020-05-27 11:16:45 +020041 (https://trustee.ietf.org/license-info).
Radek Krejci86d106e2018-10-18 09:53:19 +020042
Michal Vaskocf296c82020-05-27 11:16:45 +020043 This version of this YANG module is part of RFC 8342
44 (https://www.rfc-editor.org/info/rfc8342); see the RFC itself
Radek Krejci86d106e2018-10-18 09:53:19 +020045 for full legal notices.";
46
Michal Vaskocf296c82020-05-27 11:16:45 +020047 revision 2018-02-14 {
Radek Krejci86d106e2018-10-18 09:53:19 +020048 description
49 "Initial revision.";
50 reference
Michal Vaskocf296c82020-05-27 11:16:45 +020051 "RFC 8342: Network Management Datastore Architecture (NMDA)";
Radek Krejci86d106e2018-10-18 09:53:19 +020052 }
53
54 /*
55 * Identities
56 */
57
58 identity datastore {
59 description
Michal Vaskocf296c82020-05-27 11:16:45 +020060 "Abstract base identity for datastore identities.";
Radek Krejci86d106e2018-10-18 09:53:19 +020061 }
62
63 identity conventional {
64 base datastore;
65 description
Michal Vaskocf296c82020-05-27 11:16:45 +020066 "Abstract base identity for conventional configuration
67 datastores.";
Radek Krejci86d106e2018-10-18 09:53:19 +020068 }
69
70 identity running {
71 base conventional;
72 description
Michal Vaskocf296c82020-05-27 11:16:45 +020073 "The running configuration datastore.";
Radek Krejci86d106e2018-10-18 09:53:19 +020074 }
75
76 identity candidate {
77 base conventional;
78 description
Michal Vaskocf296c82020-05-27 11:16:45 +020079 "The candidate configuration datastore.";
Radek Krejci86d106e2018-10-18 09:53:19 +020080 }
81
82 identity startup {
83 base conventional;
84 description
Michal Vaskocf296c82020-05-27 11:16:45 +020085 "The startup configuration datastore.";
Radek Krejci86d106e2018-10-18 09:53:19 +020086 }
87
88 identity intended {
89 base conventional;
90 description
Michal Vaskocf296c82020-05-27 11:16:45 +020091 "The intended configuration datastore.";
Radek Krejci86d106e2018-10-18 09:53:19 +020092 }
93
94 identity dynamic {
95 base datastore;
96 description
Michal Vaskocf296c82020-05-27 11:16:45 +020097 "Abstract base identity for dynamic configuration datastores.";
Radek Krejci86d106e2018-10-18 09:53:19 +020098 }
99
100 identity operational {
101 base datastore;
102 description
Michal Vaskocf296c82020-05-27 11:16:45 +0200103 "The operational state datastore.";
Radek Krejci86d106e2018-10-18 09:53:19 +0200104 }
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 Krejci86d106e2018-10-18 09:53:19 +0200117}