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

Refactor IS-IS Graceful Restart nodes #1253

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
10 changes: 9 additions & 1 deletion release/models/isis/openconfig-isis-lsp.yang
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ submodule openconfig-isis-lsp {
Section 4.c of the IETF Trust's Legal Provisions Relating
to IETF Documents (http://trustee.ietf.org/license-info).";

oc-ext:openconfig-version "1.7.0";
oc-ext:openconfig-version "2.0.0";

revision "2025-02-10" {
description
"Remove graceful-restart restart-time defaults and update
description statements, reference and grouping naming. Removal of
non-standard interface-time-expirations leaf.";
reference "2.0.0";
}

revision "2024-02-28" {
description
Expand Down
10 changes: 9 additions & 1 deletion release/models/isis/openconfig-isis-routing.yang
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,15 @@ submodule openconfig-isis-routing {
description
"This module describes YANG model for ISIS Routing";

oc-ext:openconfig-version "1.7.0";
oc-ext:openconfig-version "2.0.0";

revision "2025-02-10" {
description
"Remove graceful-restart restart-time defaults and update
description statements, reference and grouping naming. Removal of
non-standard interface-time-expirations leaf.";
reference "2.0.0";
}

revision "2024-02-28" {
description
Expand Down
56 changes: 25 additions & 31 deletions release/models/isis/openconfig-isis.yang
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,15 @@ module openconfig-isis {
+-> { levels config }
+-> { level adjacencies }";

oc-ext:openconfig-version "1.7.0";
oc-ext:openconfig-version "2.0.0";

revision "2025-02-10" {
description
"Remove graceful-restart restart-time defaults and update
description statements, reference and grouping naming. Removal of
non-standard interface-time-expirations leaf.";
reference "2.0.0";
}

revision "2024-02-28" {
description
Expand Down Expand Up @@ -938,29 +946,24 @@ module openconfig-isis {
"When this leaf is set to TRUE, planned restart procedures as
described in RFC 8706 are not used.";
reference
"RFC 5706: Restart Signaling for IS-IS";
"IETF RFC 8706, Section 3.2: Restart Signaling for IS-IS";
}

reference
"RFC 5306: Restart Signaling for IS-IS; RFC 5706: Restart Signaling
for IS-IS";
}

grouping isis-graceful-restart-level-config {
grouping isis-graceful-restart-global-level-config {
description
"This grouping defines ISIS graceful restart configuration relevant
for ISIS level/LSDB";
for ISIS at global system and per-level/LSDB hierarchies.";

leaf restart-time {
type uint16;
default 30;
units "seconds";
description
"Value of RFC5306/RFC8706 T2 timer";
"Value of T2 or T3 timers at either the LSDB/level or global
system context.";
reference
"IETF RFC 8706, Section 3.1: Restart Signaling for IS-IS";
}

reference
"RFC 5306: Restart Signaling for IS-IS; RFC 5706: Restart Signaling
for IS-IS";
}

grouping isis-graceful-restart-interface-config {
Expand All @@ -970,21 +973,12 @@ module openconfig-isis {

leaf interface-timer {
type uint16;
units "seconds";
description
"Value of RFC5306/RFC8706 T1 timer";
}

leaf interface-time-expirations {
type int64;
description
"Number of times T1 expires before IIH without Restart TLV's RR flag
set is sent. That is GR helper is not supported by adjacents
Inermediate System";
"Value of T1 timer per interface.";
reference
"IETF RFC 8706, Section 3.1: Restart Signaling for IS-IS";
}

reference
"RFC 5306: Restart Signaling for IS-IS; RFC 5706: Restart Signaling
for IS-IS";
}

// configuration context containers
Expand Down Expand Up @@ -1186,7 +1180,7 @@ module openconfig-isis {

uses admin-config;
uses isis-graceful-restart-config;
uses isis-graceful-restart-level-config;
uses isis-graceful-restart-global-level-config;
uses isis-graceful-restart-interface-config;
}

Expand All @@ -1197,7 +1191,7 @@ module openconfig-isis {

uses admin-config;
uses isis-graceful-restart-config;
uses isis-graceful-restart-level-config;
uses isis-graceful-restart-global-level-config;
uses isis-graceful-restart-interface-config;
}
}
Expand Down Expand Up @@ -1585,7 +1579,7 @@ module openconfig-isis {
"This container defines ISIS graceful-restart configuration.";

uses admin-config;
uses isis-graceful-restart-level-config;
uses isis-graceful-restart-global-level-config;
}

container state {
Expand All @@ -1594,7 +1588,7 @@ module openconfig-isis {
"This container defines state information for ISIS graceful-restart.";

uses admin-config;
uses isis-graceful-restart-level-config;
uses isis-graceful-restart-global-level-config;
}
}

Expand Down
Loading