Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from netmod-wg/master
wg-yang-versioing
- Loading branch information
Showing
51 changed files
with
22,387 additions
and
4,208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"yang-library:yang-library": { | ||
"yang-packages:package": [ | ||
{ | ||
"name": "vendor-schema", | ||
"version": "2.1.0", | ||
"module": [ | ||
{ | ||
"name": "vendor-interfaces", | ||
"revision": "2.2.0", | ||
}, | ||
{ | ||
"name": "vendor-routing-protocol", | ||
"revision": "1.2.1", | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "vendor-schema", | ||
"version": "1.4.5", | ||
"module": [ | ||
{ | ||
"name": "vendor-interfaces", | ||
"revision": "1.0.0", | ||
}, | ||
{ | ||
"name": "vendor-routing-protocol", | ||
"revision": "1.2.1", | ||
} | ||
] | ||
}, | ||
} | ||
] | ||
} | ||
|
||
This example | ||
|
||
<?xml version="1.0" encoding="utf-8"?> | ||
<top> | ||
<yang-library> | ||
<package> | ||
<name>vendor-schema</name> | ||
<version>2.1.0</version> | ||
<module> | ||
<name>vendor-interfaces</name> | ||
<revision>3.0.0</revision> | ||
</module> | ||
<module> | ||
<name>vendor-routing-protocol</name> | ||
<revision>1.3.1</revision> | ||
</module> | ||
</package> | ||
<package> | ||
<name>vendor-schema</name> | ||
<version>1.4.5</version> | ||
<module> | ||
<name>vendor-interfaces</name> | ||
<revision>2.0.0</revision> | ||
</module> | ||
<module> | ||
<name>vendor-routing-protocol</name> | ||
<revision>1.2.1</revision> | ||
</module> | ||
</package> | ||
</yang-library> | ||
<schema-selection> | ||
<default-schema>vendor-schema@2.1.0</default-schema> | ||
<schema> | ||
<name>vendor-schema@2.1.0</name> | ||
<datastore> | ||
<name>running</name> | ||
<package> | ||
<name>vendor-schema</name> | ||
<version>2.1.0</version> | ||
</package> | ||
</datastore> | ||
<datastore> | ||
<name>operational</name> | ||
<package> | ||
<name>vendor-schema</name> | ||
<version>2.1.0</version> | ||
</package> | ||
</datastore> | ||
<default-schema-selectable/> | ||
</schema> | ||
<schema> | ||
<name>vendor-schema@1.4.5</name> | ||
<datastore> | ||
<name>running</name> | ||
<package> | ||
<name>vendor-schema</name> | ||
<version>1.4.5</version> | ||
</package> | ||
</datastore> | ||
<datastore> | ||
<name>operational</name> | ||
<package> | ||
<name>vendor-schema</name> | ||
<version>1.4.5</version> | ||
</package> | ||
</datastore> | ||
<default-schema-selectable/> | ||
</schema> | ||
</schema-selection> | ||
</top> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
module ietf-datastores { | ||
yang-version 1.1; | ||
namespace "urn:ietf:params:xml:ns:yang:ietf-datastores"; | ||
prefix ds; | ||
|
||
organization | ||
"IETF Network Modeling (NETMOD) Working Group"; | ||
|
||
contact | ||
"WG Web: <https://datatracker.ietf.org/wg/netmod/> | ||
WG List: <mailto:netmod@ietf.org> | ||
Author: Martin Bjorklund | ||
<mailto:mbj@tail-f.com> | ||
Author: Juergen Schoenwaelder | ||
<mailto:j.schoenwaelder@jacobs-university.de> | ||
Author: Phil Shafer | ||
<mailto:phil@juniper.net> | ||
Author: Kent Watsen | ||
<mailto:kwatsen@juniper.net> | ||
Author: Rob Wilton | ||
<rwilton@cisco.com>"; | ||
|
||
description | ||
"This YANG module defines two sets of identities for datastores. | ||
The first identifies the datastores themselves, the second | ||
identifies datastore properties. | ||
Copyright (c) 2018 IETF Trust and the persons identified as | ||
authors of the code. All rights reserved. | ||
Redistribution and use in source and binary forms, with or | ||
without modification, is permitted pursuant to, and subject to | ||
the license terms contained in, the Simplified BSD License set | ||
forth in Section 4.c of the IETF Trust's Legal Provisions | ||
Relating to IETF Documents | ||
(http://trustee.ietf.org/license-info). | ||
This version of this YANG module is part of RFC XXXX | ||
(http://www.rfc-editor.org/info/rfcxxxx); see the RFC itself | ||
for full legal notices."; | ||
|
||
revision 2018-01-11 { | ||
description | ||
"Initial revision."; | ||
reference | ||
"RFC XXXX: Network Management Datastore Architecture"; | ||
} | ||
|
||
/* | ||
* Identities | ||
*/ | ||
|
||
identity datastore { | ||
description | ||
"Abstract base identity for datastore identities."; | ||
} | ||
|
||
identity conventional { | ||
base datastore; | ||
description | ||
"Abstract base identity for conventional configuration | ||
datastores."; | ||
} | ||
|
||
identity running { | ||
base conventional; | ||
description | ||
"The running configuration datastore."; | ||
} | ||
|
||
identity candidate { | ||
base conventional; | ||
description | ||
"The candidate configuration datastore."; | ||
} | ||
|
||
identity startup { | ||
base conventional; | ||
description | ||
"The startup configuration datastore."; | ||
} | ||
|
||
identity intended { | ||
base conventional; | ||
description | ||
"The intended configuration datastore."; | ||
} | ||
|
||
identity dynamic { | ||
base datastore; | ||
description | ||
"Abstract base identity for dynamic configuration datastores."; | ||
} | ||
|
||
identity operational { | ||
base datastore; | ||
description | ||
"The operational state datastore."; | ||
} | ||
|
||
/* | ||
* Type definitions | ||
*/ | ||
|
||
typedef datastore-ref { | ||
type identityref { | ||
base datastore; | ||
} | ||
description | ||
"A datastore identity reference."; | ||
} | ||
|
||
} |
Oops, something went wrong.