--- 1/draft-ietf-lsr-yang-isis-reverse-metric-03.txt 2021-10-24 13:13:13.434306457 -0700 +++ 2/draft-ietf-lsr-yang-isis-reverse-metric-04.txt 2021-10-24 13:13:13.462307158 -0700 @@ -1,41 +1,41 @@ Network Working Group C. Hopps Internet-Draft LabN Consulting, L.L.C. -Intended status: Standards Track 5 January 2021 -Expires: 9 July 2021 +Intended status: Standards Track 24 October 2021 +Expires: 27 April 2022 YANG Module for IS-IS Reverse Metric - draft-ietf-lsr-yang-isis-reverse-metric-03 + draft-ietf-lsr-yang-isis-reverse-metric-04 Abstract This document defines a YANG module for managing the reverse metric - extension to the the intermediate system to intermediate system - routeing protocol. + extension to the Intermediate System to Intermediate System intra- + domain routeing information exchange protocol (IS-IS). Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." - This Internet-Draft will expire on 9 July 2021. + This Internet-Draft will expire on 27 April 2022. Copyright Notice Copyright (c) 2021 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights @@ -43,37 +43,36 @@ extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. YANG Management . . . . . . . . . . . . . . . . . . . . . . . 2 2.1. YANG Tree . . . . . . . . . . . . . . . . . . . . . . . . 2 2.2. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 3 - 3. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 7 - 3.1. Updates to the IETF XML Registry . . . . . . . . . . . . 7 + 3. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 8 + 3.1. Updates to the IETF XML Registry . . . . . . . . . . . . 8 3.2. Updates to the YANG Module Names Registry . . . . . . . . 8 4. Security Considerations . . . . . . . . . . . . . . . . . . . 8 5. Normative References . . . . . . . . . . . . . . . . . . . . 10 6. Informative References . . . . . . . . . . . . . . . . . . . 11 Appendix A. Examples . . . . . . . . . . . . . . . . . . . . . . 11 A.1. Example Enable XML . . . . . . . . . . . . . . . . . . . 11 A.2. Example Use XML . . . . . . . . . . . . . . . . . . . . . 12 A.3. Example JSON . . . . . . . . . . . . . . . . . . . . . . 13 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 14 1. Introduction This document defines a YANG module for managing the reverse metric - extension to the intermediate system to intermediate system routeing - protocol (IS-IS) [RFC8500], [ISO10589]. Please refer to [RFC8500] + extension to IS-IS [RFC8500], [ISO10589]. Please refer to [RFC8500] for the description and definition of the functionality managed by this module. The YANG data model described in this document conforms to the Network Management Datastore Architecture defined in [RFC8342]. 2. YANG Management 2.1. YANG Tree @@ -118,30 +117,31 @@ | +--ro whole-lan? boolean | +--ro allow-unreachable? boolean +--ro te-metric? uint32 2.2. YANG Module The following is the YANG module for managing the IS-IS reverse metric functionality defined in [RFC8500]. It imports modules from the following RFCs: [RFC8349], [I-D.ietf-isis-yang-isis-cfg]. - file "ietf-isis-reverse-metric@2021-01-05.yang" + file "ietf-isis-reverse-metric@2021-10-24.yang" module ietf-isis-reverse-metric { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-isis-reverse-metric"; prefix isis-rmetric; import ietf-routing { prefix rt; reference - "RFC8349: A YANG Data Model for Routing Management (NMDA Version)"; + "RFC8349: + A YANG Data Model for Routing Management (NMDA Version)"; } import ietf-isis { prefix isis; reference "draft-ietf-isis-yang-isis-cfg-42: YANG Data Model for IS-IS Protocol"; } organization "IETF LSR Working Group (LSR)"; @@ -167,52 +167,55 @@ 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 (https://trustee.ietf.org/license-info). This version of this YANG module is part of RFC XXXX (https://tools.ietf.org/html/rfcXXXX); see the RFC itself for full legal notices."; - revision 2021-01-05 { + revision 2021-10-24 { description "Initial Revision"; reference "RFC XXXX: YANG IS-IS Reverse Metric"; } grouping reverse-metric-data { description "IS-IS reverse metric data."; leaf metric { type isis:wide-metric; description "The reverse metric value."; reference "RFC8500, Section 2"; } container flags { description "The reverse metric flag values."; leaf whole-lan { type boolean; description - "The 'whole LAN' or W-bit. If true then a DIS processing this - reverse metric will add the metric value to all the nodes it - advertises in the pseudo-node LSP for this interface. - Otherwise it will only increment the metric for the - advertising node in the pseudo-node LSP for this interface."; + "The 'whole LAN' or W-bit. If true then a DIS processing + this reverse metric will add the metric value to all the + nodes it advertises in the pseudo-node LSP for this + interface. Otherwise it will only increment the metric + for the advertising node in the pseudo-node LSP for this + interface."; reference "RFC8500, Section 2"; } leaf allow-unreachable { type boolean; description "The 'allow-unreachable' or U-bit. If true it allows the - neighbor to increment the overall metric up to 2^24-1 rather - than the lesser maximum of 2^24-2, and if done will cause - traffic to stop using rather than avoid using the interface."; + neighbor to increment the overall metric up to 2^24-1 + rather than the lesser maximum of 2^24-2. If the metric + is then set by the neighbor to 2^24-1, it will cause + traffic to stop using, rather than avoid using, the + interface."; reference "RFC8500, Section 2"; } } } grouping reverse-metric-if-config-data { description "IS-IS reverse metric config data."; container reverse-metric { description "IS-IS reverse metric data."; uses reverse-metric-data; @@ -228,21 +231,22 @@ } } grouping tlv16-reverse-metric { description "IS-IS reverse metric TLV data."; container reverse-metric { description "IS-IS reverse metric TLV data."; uses reverse-metric-data; leaf te-metric { type uint32; - description "The TE metric value from the sub-TLV if present."; + description + "The TE metric value from the sub-TLV if present."; reference "RFC8500, Section 3.5"; } } } augment "/rt:routing/rt:control-plane-protocols/" +"rt:control-plane-protocol/" +"isis:isis" { when "derived-from-or-self(../rt:type, 'isis:isis')" { description @@ -254,22 +258,24 @@ "The reverse metric configuration for an IS-IS instance."; container reverse-metric { description "Global reverse metric configuration."; leaf enable-receive { type boolean; default false; description "Enable handling of reverse metric announcements from neighbors. By default reverse metric handling is disabled - and must be explicitly enabled through this configuration."; + and must be explicitly enabled through this + configuration."; } + } } augment "/rt:routing/rt:control-plane-protocols/" +"rt:control-plane-protocol/" +"isis:isis/isis:interfaces/isis:interface" { when "derived-from-or-self(../../../rt:type, 'isis:isis')" { description "This augment is only valid when routing protocol instance type is 'isis'."; @@ -275,56 +281,58 @@ type is 'isis'."; } description "The reverse metric configuration for an interface."; container reverse-metric { description "Announce a reverse metric to neighbors."; uses reverse-metric-if-config-data; container level-1 { - description "Announce a reverse metric to level-1 neighbors."; + description + "Announce a reverse metric to level-1 neighbors."; uses reverse-metric-if-config-data; } container level-2 { - description "Announce a reverse metric to level-2 neighbors."; + description + "Announce a reverse metric to level-2 neighbors."; uses reverse-metric-if-config-data; } } } augment "/rt:routing/rt:control-plane-protocols/" +"rt:control-plane-protocol/" +"isis:isis/isis:interfaces/isis:interface/" +"isis:adjacencies/isis:adjacency" { - when "derived-from-or-self(../../../../../rt:type, 'isis:isis')" { + when "derived-from-or-self(../../../../../rt:type, + 'isis:isis')" { description "This augment is only valid when routing protocol instance type is 'isis'"; } description "The reverse metric state advertised by an adjacency."; uses tlv16-reverse-metric; } } 3. IANA Considerations 3.1. Updates to the IETF XML Registry This document registers a URI in the "IETF XML Registry" [RFC3688]. Following the format in [RFC3688], the following registration has been made: - URI urn:ietf:params:xml:ns:yang:ietf-isis-reverse- - metric + URI urn:ietf:params:xml:ns:yang:ietf-isis-reverse-metric Registrant Contact The IESG. XML N/A; the requested URI is an XML namespace. 3.2. Updates to the YANG Module Names Registry This document registers one YANG module in the "YANG Module Names" registry [RFC6020]. Following the format in [RFC6020], the following registration has been made: @@ -348,22 +356,22 @@ is HTTPS, and the mandatory-to-implement secure transport is TLS [RFC8446]. The NETCONF access control model [RFC8341] provides the means to restrict access for particular NETCONF or RESTCONF users to a preconfigured subset of all available NETCONF or RESTCONF protocol operations and content. The YANG module defined in this document can enable, disable and modify the behavior of metrics used by routing. For the security - implications regarding these types of changes consult the [RFC8500] - which defines the functionality. + implications regarding these types of changes consult [RFC8500] which + defines the functionality. There are a number of data nodes defined in this YANG module that are writable/creatable/deletable (i.e., "config true", which is the default). These data nodes may be considered sensitive or vulnerable in some network environments. Write operations (e.g., edit-config) to these data nodes without proper protection can have a negative effect on network operations. These are the subtrees and data nodes and their sensitivity/ vulnerability: @@ -403,48 +411,41 @@ - /isis-rmetric:flags/isis-rmetric:allow-unreachable - /isis-rmetric:exclude-te-metric Some of the readable data nodes in this YANG module may be considered sensitive or vulnerable in some network environments. It is thus important to control read access (e.g., via get, get-config, or notification) to these data nodes. These are the subtrees and data nodes and their sensitivity/vulnerability: All nodes are under the following subtree, so that prefix will be - assume for each node description. + assumed for each node description. Under "/rt:routing/rt:control-plane-protocols/" + "rt:control-plane-protocol/isis:isis/" + "isis:interfaces/isis:interface/" + "isis:adjacencies/isis:adjacency/" + "isis-rmetric:reverse-metric" - /isis-rmetric:metric - /isis-rmetric:flags/isis-rmetric:whole-lan - /isis-rmetric:flags/isis-rmetric:allow-unreachable - /isis-rmetric:te-metric 5. Normative References - [I-D.ietf-isis-yang-isis-cfg] - Litkowski, S., Yeung, D., Lindem, A., Zhang, Z., and L. - Lhotka, "YANG Data Model for IS-IS Protocol", draft-ietf- - isis-yang-isis-cfg-42 (work in progress), 15 October 2019, - . - [ISO10589] International Organization for Standardization, - "Intermediate system to intermediate system intra-domain- - routing routine information exchange protocol for use in + "Intermediate System to Intermediate System intra-domain + routeing information exchange protocol for use in conjunction with the protocol for providing the - connectionless-mode Network Service (ISO 8473)", - ISO Standard 10589, 1992. + connectionless-mode network service (ISO 8473)", ISO + Standard 10589:2002, 2002. [RFC3688] Mealling, M., "The IETF XML Registry", BCP 81, RFC 3688, DOI 10.17487/RFC3688, January 2004, . [RFC6020] Bjorklund, M., Ed., "YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)", RFC 6020, DOI 10.17487/RFC6020, October 2010, . @@ -477,20 +478,27 @@ . [RFC8446] Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018, . [RFC8500] Shen, N., Amante, S., and M. Abrahamsson, "IS-IS Routing with Reverse Metric", RFC 8500, DOI 10.17487/RFC8500, February 2019, . + [I-D.ietf-isis-yang-isis-cfg] + Litkowski, S., Yeung, D., Lindem, A., Zhang, J., and L. + Lhotka, "YANG Data Model for IS-IS Protocol", Work in + Progress, Internet-Draft, draft-ietf-isis-yang-isis-cfg- + 42, 15 October 2019, . + 6. Informative References [RFC8340] Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams", BCP 215, RFC 8340, DOI 10.17487/RFC8340, March 2018, . Appendix A. Examples A.1. Example Enable XML