Skip to content

Commit

Permalink
Merge pull request YangModels#1500 from yang-catalog/main
Browse files Browse the repository at this point in the history
Cronjob - daily update of yang files.
  • Loading branch information
SlavomirMazurPantheon authored Nov 7, 2023
2 parents 43f8481 + 119977c commit 80728c9
Show file tree
Hide file tree
Showing 8 changed files with 252 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ module ietf-ac-glue {

augment "/l2vpn-svc:l2vpn-svc"
+ "/l2vpn-svc:sites/l2vpn-svc:site"
+ "/l2vpn-svc:site-network-accesses/l2vpn-svc:site-network-access" {
+ "/l2vpn-svc:site-network-accesses"
+ "/l2vpn-svc:site-network-access" {
description
"Augments VPN network access with AC provisioning details.";

Expand All @@ -91,7 +92,8 @@ module ietf-ac-glue {

augment "/l3vpn-svc:l3vpn-svc"
+ "/l3vpn-svc:sites/l3vpn-svc:site"
+ "/l3vpn-svc:site-network-accesses/l3vpn-svc:site-network-access" {
+ "/l3vpn-svc:site-network-accesses"
+ "/l3vpn-svc:site-network-access" {
description
"Augments VPN network access with AC provisioning details.";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ module ietf-ac-svc {
}
}
}

// Full Layer 2 connection

grouping l2-connection {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ module ietf-bearer-svc {
reference
"RFC xxxx: A YANG Service Data Model for Attachment Circuits";
}

// Identities

identity identification-type {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ module ietf-netconf-resolve-system {
Author: Qin Wu
<mailto:bill.wu@huawei.com>
Author: Chong Feng
<mailto:frank.fengchong@huawei.com>";
<mailto:fengchonglly@gmail.com>";
description
"This module defines an extension to the NETCONF protocol
that allows the NETCONF client to control whether the server
is allowed to copy referenced system configuration
automatically without the client doing so explicitly.
Copyright (c) 2022 IETF Trust and the persons identified
Copyright (c) 2023 IETF Trust and the persons identified
as authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with
Expand All @@ -54,7 +54,7 @@ module ietf-netconf-resolve-system {
(RFC 8174) when, and only when, they appear in all
capitals, as shown here.";

revision 2023-10-19 {
revision 2023-11-05 {
description
"Initial version.";
reference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ module ietf-system-datastore {
Author: Qin Wu
<mailto:bill.wu@huawei.com>
Author: Chong Feng
<mailto:frank.fengchong@huawei.com>";
<mailto:fengchonglly@gmail.com>";
description
"This module defines a new YANG identity that uses the
ds:datastore identity defined in [RFC8342].
Copyright (c) 2022 IETF Trust and the persons identified
Copyright (c) 2023 IETF Trust and the persons identified
as authors of the code. All rights reserved.
Redistribution and use in source and binary forms, with
Expand All @@ -46,7 +46,7 @@ module ietf-system-datastore {
(RFC 8174) when, and only when, they appear in all
capitals, as shown here.";

revision 2023-10-19 {
revision 2023-11-05 {
description
"Initial version.";
reference
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
module ietf-yang-full-include {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-yang-full-include";
prefix full;

organization
"IETF NETMOD (NETCONF Data Modeling Language) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/netmod/>
WG List: <mailto:netmod@ietf.org>
Editor: ";
description
"This module defines a YANG extension statement that can be used
to incorporate data models defined in other YANG modules in a
module.
The key words 'MUST', 'MUST NOT', 'REQUIRED', 'SHALL', 'SHALL
NOT', 'SHOULD', 'SHOULD NOT', 'RECOMMENDED', 'NOT RECOMMENDED',
'MAY', and 'OPTIONAL' in this document are to be interpreted as
described in BCP 14 (RFC 2119) (RFC 8174) when, and only when,
they appear in all capitals, as shown here.
Copyright (c) 2023 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 Revised BSD License set
forth in Section 4.c of the IETF Trust's Legal Provisions
Relating to IETF Documents
(https://trustee.ietf.org/license-info).
This version of this YANG module is part of RFC XXXX;
see the RFC itself for full legal notices.";
revision 2023-11-05 {
description
"Initial revision.";
reference
"RFC XXXX: YANG Full Include";
}

extension include {
argument prefix;
description
"The argument 'prefix' MUST be the prefix of a module imported
by the calling module.
The 'include' statement MUST NOT be used in a YANG
version 1 module, neither explicitly nor via a 'uses'
statement.
The 'include' statement MAY be present as a substatement
of 'container' and 'list' and MUST NOT be present elsewhere.
Whenever a sequence of 'include' statements is used, the
schema tree defined by the set of the included modules is
inserted in the schema tree of the calling module, at the
place where the sequence is declared";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
module ietf-yang-library-augmentation {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-yang-library-augmentation";
prefix yanglib-aug;

import ietf-yang-library {
prefix yanglib;
reference
"RFC 8525: YANG library";
}

organization
"IETF NETCONF (Network Configuration) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/netconf/>
WG List: <mailto:netconf@ietf.org>
Author: Zhuoyao Lin
<mailto:zephyre888@gmail.com>
Benoit Claise
<mailto:benoit.claise@huawei.com>";

description
"This module augments the ietf-yang-library defined in [RFC8525] to provide the augmentation list, in order to give sufficient information about the YANG models reverse dependency. It facilitates the process of obtaining the entire dependencies of YANG model.";

revision 2023-10-27 {
description
"Added list augmentation in yang-library/module-set/module to
make the module store the entire reverse dependency information
(augmentation and deviation).";
reference
"RFC XXXX: Support of augmentation in ietf-yang-library";
}

augment "/yanglib:yang-library/yanglib:module-set/yanglib:module" {
description
"Augment the augmentation from module info with the module-augmentation grouping" ;
uses yanglib-aug:module-augmentation;
}

/*
* Groupings
*/

grouping module-augmentation {
description
"This grouping defines a leaf-list that contains the augmentation list.";

leaf-list augmentation {
type leafref {
path "/yanglib:yang-library/yanglib:module-set/yanglib:module/yanglib:name";
}

description
"List of all YANG augmentation modules used by this server to
modify the conformance of the module associated with this
entry. Note that the same module can be used for augmentation
for multiple modules, so the same entry MAY appear within
multiple 'module' entries.
This reference MUST NOT (directly or indirectly)
refer to the module being augmented.
Robust clients may want to make sure that they handle a
situation where a module augments itself (directly or
indirectly) gracefully.";
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
module ietf-yang-library-rfc7895-augmentation {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-yang-library-rfc7895-augmentation";
prefix yanglib-aug;

import ietf-yang-library {
prefix yanglib;
revision-date 2016-06-21;
reference
"RFC 8525: YANG library";
}

organization
"IETF NETCONF (Network Configuration) Working Group";
contact
"WG Web: <https://datatracker.ietf.org/wg/netconf/>
WG List: <mailto:netconf@ietf.org>
Author: Zhuoyao Lin
<mailto:zephyre888@gmail.com>
Benoit Claise
<mailto:benoit.claise@huawei.com>";

description
"This module augments the ietf-yang-library defined in [RFC8525] to provide not only the deviation list, but also the augmentation list, in order to give sufficient information about the YANG models reverse dependency. It facilitates the process of obtaining the entire dependencies of YANG model.";

revision 2023-10-27 {
description
"Added list augmentation in yang-library/module-set/module to
make the module store the entire reverse dependency information
(augmentation and deviation).";
reference
"RFC XXXX: Support of augmentation in ietf-yang-library";
}

augment "/yanglib:yang-library/yanglib:module-set/yanglib:module" {
description
"Augment the augmentation from module info with the module-augmentation grouping" ;
uses yanglib-aug:module-augmentation;
}

augment "/yanglib:modules-state/yanglib:module" {
description
"Augment the augmentation from module info with the module-augmentation grouping" ;
uses yanglib-aug:module-state-augmentation;
}

/*
* Groupings
*/

grouping module-augmentation {
description
"This grouping defines a leaf-list that contains the augmentation list.";

leaf-list augmentation {
type leafref {
path "/yanglib:yang-library/yanglib:module-set/yanglib:module/yanglib:name";
}

description
"List of all YANG augmentation modules used by this server to
modify the conformance of the module associated with this
entry. Note that the same module can be used for augmentation
for multiple modules, so the same entry MAY appear within
multiple 'module' entries.
This reference MUST NOT (directly or indirectly)
refer to the module being augmented.
Robust clients may want to make sure that they handle a
situation where a module augments itself (directly or
indirectly) gracefully.";
}
}

grouping module-state-augmentation {
description
"This grouping defines a list with keys being the module
name and revison. The list contains the augmentation list.";

list augmentation {
key "name revision";
status deprecated;

description
"List of YANG augmentation module names and revisions
used by this server to modify the conformance of
the module associated with this entry. Note that
the same module can be used for augmentations for
multiple modules, so the same entry MAY appear
within multiple 'module' entries.
The augmentation module MUST be present in the 'module'
list, with the same name and revision values.
The 'conformance-type' value will be 'implement' for
the augmentation module.";

leaf name {
type leafref {
path "/yanglib:modules-state/yanglib:module/yanglib:name";
}
}

leaf revision {
type leafref {
path "/yanglib:modules-state/yanglib:module/yanglib:revision";
}
}
}
}
}

0 comments on commit 80728c9

Please sign in to comment.