Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cronjob - daily update of yang files. #1507

Merged
merged 1 commit into from
Nov 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ietf-isis-sr {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:"
+ "yang:ietf-isis-sr";
namespace "urn:ietf:params:xml:ns:yang:ietf-isis-sr";

prefix isis-sr;

import ietf-routing {
Expand Down Expand Up @@ -41,28 +41,35 @@ module ietf-isis-sr {
"RFC 8294 - Common YANG Data Types for the Routing Area";
}

import ietf-routing-types {
prefix rt-types;
reference
"RFC 8294 - Common YANG Data Types for the Routing Area";
}

organization
"IETF LSR - LSR Working Group";
"IETF LSR - Link State Routing Working Group";
contact
"WG List: <mailto:[email protected]>
"WG Web: <https://datatracker.ietf.org/wg/lsr/>
WG List: <mailto:[email protected]>

Author: Stephane Litkowski
<mailto:[email protected]>
Author: Acee Lindem
<mailto:[email protected]>
<mailto:[email protected]>
Author: Yingzhen Qu
<mailto:[email protected]>
<mailto:[email protected]>
Author: Acee Lindem
<mailto:[email protected]>
Author: Pushpasis Sarkar
<mailto:[email protected]>
<mailto:[email protected]>
Author: Ing-Wher Chen
<mailto:[email protected]>
<mailto:[email protected]>
Author: Jeff Tantsura
<mailto:[email protected]>
<mailto:[email protected]>
";
description
"The YANG module defines a generic configuration model for
Segment routing ISIS extensions common across all of the vendor
implementations.
"The YANG module defines the generic configuration and
operational state for Segment Routing ISIS extensions, which is
common across all of the vendor implementations.

This YANG model conforms to the Network Management
Datastore Architecture (NMDA) as described in RFC 8342.
Expand Down Expand Up @@ -92,11 +99,11 @@ module ietf-isis-sr {
reference
"RFC XXXX";

revision 2023-07-09 {
revision 2023-11-19 {
description
"Initial revision.";
reference
"RFC XXXX";
"RFC XXXX: A YANG Data Model for IS-IS Segment Routing";
}

/* Identities */
Expand All @@ -113,7 +120,6 @@ module ietf-isis-sr {
processing SR MPLS encapsulated IPv4 packets
on all interfaces.";
}

identity mpls-ipv6 {
base sr-capability;
description
Expand Down Expand Up @@ -162,7 +168,6 @@ module ietf-isis-sr {
description
"Local Flag.";
}

identity adj-sid-bit {
description
"Base identity for adj sid sub-tlv bits.";
Expand Down Expand Up @@ -197,6 +202,7 @@ module ietf-isis-sr {
description
"Group flag.";
}

identity pe-bit {
base adj-sid-bit;
description
Expand Down Expand Up @@ -244,11 +250,14 @@ module ietf-isis-sr {
feature remote-lfa-sr {
description
"Enhance rLFA to use SR path.";
reference
"RFC 8102: Remote-LFA Node Protection and Manageability";
}

feature ti-lfa {
description
"Enhance IPFRR with ti-lfa
support";
"Topology-Independent Loop-Free Alternate (TI-LFA)
computation using segment routing.";
}

/* Groupings */
Expand Down Expand Up @@ -310,7 +319,9 @@ module ietf-isis-sr {
description
"All SR algorithms.";
leaf-list sr-algorithm {
type uint8;
type identityref {
base sr-cmn:prefix-sid-algorithm;
}
description
"The Segment Routing (SR) algorithms that the router is
currently using.";
Expand All @@ -328,7 +339,7 @@ module ietf-isis-sr {
description
"Segment Routing Local Block.";
leaf range-size {
type uint32;
type rt-types:uint24;
description
"The SID range.";
}
Expand Down Expand Up @@ -413,7 +424,9 @@ module ietf-isis-sr {
segment ID.";
}
leaf algorithm {
type uint8;
type identityref {
base sr-cmn:prefix-sid-algorithm;
}
description
"Algorithm to be used for path computation.";
}
Expand Down Expand Up @@ -505,7 +518,7 @@ module ietf-isis-sr {
"Defines binding TLV for database.";
}

/* Cfg */
/* Configuration */

augment "/rt:routing/"
+ "rt:control-plane-protocols/rt:control-plane-protocol"
Expand Down Expand Up @@ -542,13 +555,101 @@ module ietf-isis-sr {
augment "/rt:routing/"
+ "rt:control-plane-protocols/rt:control-plane-protocol"
+ "/isis:isis/isis:interfaces/isis:interface"
+ "/isis:fast-reroute" {
when "derived-from-or-self(../../../../rt:type, 'isis:isis')" {
+ "/isis:fast-reroute/isis:lfa" {
when "derived-from-or-self(../../../../../rt:type,"
+ "'isis:isis')" {
description
"This augment ISIS routing protocol when used";
}
description
"This augments ISIS interface IP FRR with TILFA.";
container ti-lfa {
if-feature "ti-lfa";
leaf enable {
type boolean;
default false;
description
"Enables TI-LFA computation.";
}
container selection-tie-breakers {
container node-protection {
presence "Presence of container enables the node
protection tie-breaker";
leaf priority {
type uint8;
default 128;
description
"Priority for node protection tie-breaker with
a lower priority being more preferred.";
}
description
"Enable node protection as a TI-LFA path
selection tie-breaker. A path providing node
protection will be selected over one that
doesn't provide node protection.";
}
container srlg-disjoint {
presence "Presence of container enables the SRLG
disjoint tie-breaker";
leaf priority {
type uint8;
default 128;
description
"Priority for SRLG disjoint tie-breaker with
a lower priority being more preferred.";
}
description
"Enable SRLG (Shared Resource Link Group)
disjoint as a TI-LFA path selection tie-breaker.
A path providing node a disjoint path for SRLG
links from the primary path will be selected over
one that doesn't provide an SRLG disjoint path.";
}
description
"Configure path selection tie-breakers and their
respective priorities for the TI-LFA computation.";
}
description
"Topology Independent Loop Free Alternate
(TI-LFA) support.";
}
}

augment "/rt:routing/"
+ "rt:control-plane-protocols/rt:control-plane-protocol"
+ "/isis:isis/isis:interfaces/isis:interface"
+ "/isis:fast-reroute/isis:lfa/isis:level-1" {
when "derived-from-or-self(../../../../../../rt:type,"
+ "'isis:isis')" {
description
"This augment ISIS routing protocol when used";
}
description
"This augments ISIS interface level-1 IP FRR with TILFA.";
container ti-lfa {
if-feature "ti-lfa";
leaf enable {
type boolean;
default false;
description
"Enables TI-LFA computation.";
}
description
"TI-LFA configuration.";
}
}

augment "/rt:routing/"
+ "rt:control-plane-protocols/rt:control-plane-protocol"
+ "/isis:isis/isis:interfaces/isis:interface"
+ "/isis:fast-reroute/isis:lfa/isis:level-2" {
when "derived-from-or-self(../../../../../../rt:type,"
+ "'isis:isis')" {
description
"This augment ISIS routing protocol when used";
}
description
"This augments ISIS IP FRR with TILFA.";
"This augments ISIS IP interface level-2 FRR with TILFA.";
container ti-lfa {
if-feature "ti-lfa";
leaf enable {
Expand Down
20 changes: 10 additions & 10 deletions ...ules/[email protected] → ...ules/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module ietf-ospf-admin-tags {

import ietf-ospf {
prefix ospf;
reference "RFC xxxx: YANG Data Model for OSPF Protocol.";
reference "RFC 9129: YANG Data Model for OSPF Protocol.";
}

import ietf-inet-types {
Expand All @@ -34,7 +34,7 @@ module ietf-ospf-admin-tags {
Author: Yingzhen Qu
<mailto:[email protected]>
Author: Acee Lindem
<mailto:acee@cisco.com>
<mailto:acee.ietf@gmail.com>
Author: Peter Psenak
<mailto:[email protected]>";

Expand Down Expand Up @@ -66,7 +66,7 @@ module ietf-ospf-admin-tags {

reference "RFC XXXX";

revision 2022-10-11 {
revision 2023-11-20 {
description
"Initial revision.";
reference
Expand All @@ -76,7 +76,8 @@ module ietf-ospf-admin-tags {
grouping prefix-admin-tag-sub-tlvs {
description "Prefix Administrative Tag sub-TLVs.";

container perfix-admin-tag-sub-tlvs{
container perfix-admin-tag-sub-tlvs {
config false;
description "Prefix admin tag sub-TLV.";
list admin-tag-sub-tlv {
description "Prefix admin tag sub-TLV.";
Expand Down Expand Up @@ -128,7 +129,6 @@ module ietf-ospf-admin-tags {
"This augments the OSPF protocol interface configuration
with Administrative Tags. The configured tags will be
advertised with local prefixes configured for the interface.";

container admin-tags {
list tags {
key "tag";
Expand Down Expand Up @@ -279,14 +279,14 @@ module ietf-ospf-admin-tags {

augment "/rt:routing/"
+ "rt:control-plane-protocols/rt:control-plane-protocol/"
+ "ospf:ospf/ospf:database/"
+ "ospf:as-scope-lsa-type/ospf:as-scope-lsas/"
+ "ospf:as-scope-lsa/ospf:version/ospf:ospfv3/"
+ "ospf:ospf/ospf:areas/ospf:area/ospf:database/"
+ "ospf:area-scope-lsa-type/ospf:area-scope-lsas/"
+ "ospf:area-scope-lsa/ospf:version/ospf:ospfv3/"
+ "ospf:ospfv3/ospf:body/ospfv3-e-lsa:e-nssa/"
+ "ospfv3-e-lsa:e-external-tlvs/"
+ "ospfv3-e-lsa:external-prefix-tlv" {
when "derived-from-or-self(../../../../../../../../"
+ "../../rt:type, 'ospf:ospfv3')" {
when "/rt:routing/rt:control-plane-protocols"
+ "/rt:control-plane-protocol/rt:type = 'ospf:ospfv3'" {
description
"This augmentation is only valid for OSPFv3.";
}
Expand Down
Loading
Loading