Internet Y. Qu Internet-Draft Futurewei Intended status: Standards Track L. Ginsberg Expires: 24 April 2024 Cisco Systems A. Przygienda Juniper Networks 22 October 2023 YANG Model for IS-IS Protocol Implementation Conformance Statement (PICS) draft-qgp-lsr-isis-pics-yang-00 Abstract The YANG model in this document includes three modules, and can be used to query an IS-IS Protocol Implementation Conformance Statement (PICS). 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 24 April 2024. Copyright Notice Copyright (c) 2023 IETF Trust and the persons identified as the document authors. All rights reserved. Qu, et al. Expires 24 April 2024 [Page 1] Internet-Draft IS-IS PICS YANG October 2023 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 and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Overview . . . . . . . . . . . . . . . . . . . . . . . . . . 2 1.1. Requirements Language . . . . . . . . . . . . . . . . . . 3 2. Tree Diagrams . . . . . . . . . . . . . . . . . . . . . . . . 3 3. Design of the Model . . . . . . . . . . . . . . . . . . . . . 3 3.1. IANA IS-IS PICS YANG Module . . . . . . . . . . . . . . . 3 3.2. IS-IS PICS YANG Module . . . . . . . . . . . . . . . . . 3 3.3. IS-IS PICS YANG Module for IS-IS Support of SR MPLS . . . 4 4. IS-IS PICS YANG Trees . . . . . . . . . . . . . . . . . . . . 4 4.1. IETF ISIS PICS YANG Tree . . . . . . . . . . . . . . . . 4 4.2. ISIS PICS for SR MPLS Tree . . . . . . . . . . . . . . . 4 5. IS-IS PICS YANG Modules . . . . . . . . . . . . . . . . . . . 5 5.1. IANA ISIS PICS YANG Module . . . . . . . . . . . . . . . 5 5.2. ISIS PICS Module . . . . . . . . . . . . . . . . . . . . 6 5.3. ISIS PICS Module for Support of SR MPLS . . . . . . . . . 8 6. Security Considerations . . . . . . . . . . . . . . . . . . . 12 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 12 8. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 14 9. Normative References . . . . . . . . . . . . . . . . . . . . 14 10. Informative References . . . . . . . . . . . . . . . . . . . 15 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 15 1. Overview YANG [RFC7950] is a data definition language used to define the contents of a conceptual data store that allows networked devices to be managed using NETCONF [RFC6241]. YANG is proving relevant beyond its initial confines, as bindings to other interfaces (e.g., ReST) and encodings other than XML (e.g., JSON) are being defined. Furthermore, YANG data models can be used as the basis for implementation of other interfaces, such as CLI and programmatic APIs. Operators may find it useful to know what aspects of a protocol are implemented by a given node in their network. Historically this information has been provided in a Protocol Implementation Conformance Statement (PICS) which is available as an offline document. (An example of PICS for IS-IS can be found in [ISO10589] Qu, et al. Expires 24 April 2024 [Page 2] Internet-Draft IS-IS PICS YANG October 2023 Section 12.) However, there is no reason why this information could not be provided via YANG - which is what this document defines. This allows an operator to query nodes in real time as to what protocol features are supported. This in turn can assist with avoiding (or at least diagnosing) interoperability problems and/or determining when a feature can be safely deployed. The YANG modules in this document conform to the Network Management Datastore Architecture (NMDA) [RFC8342]. 1.1. Requirements Language The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119] [RFC8174]. 2. Tree Diagrams This document uses the graphical representation of data models defined in [RFC8340]. 3. Design of the Model 3.1. IANA IS-IS PICS YANG Module A new IANA registry will be created for IS-IS PICS, which maintains the list of RFCs that support IS-IS PICS. Module iana-isis-pics.yang is the initial version for IS-IS PICS identity type definitions. When a new identity is added to the "IS-IS PICS" registry, the iana- isis-pics YANG module is updated by IANA. 3.2. IS-IS PICS YANG Module Module ietf-isis-pics.yang is a device model and designed to query a node with IS-IS PICS status. The leaf-list of "isis-pics" lists all the supported PICS that defined in the iana-isis-pics module. The container "isis-pics-mptlv" is a place holder and meant to be augmented by individual RFC PICS module with multi-part tlv support. Qu, et al. Expires 24 April 2024 [Page 3] Internet-Draft IS-IS PICS YANG October 2023 3.3. IS-IS PICS YANG Module for IS-IS Support of SR MPLS The YANG module is used to query an IS-IS implementation of Segment Routing on MPLS data plane [RFC8667] for the conformance of the protocol implementation. Container "isis-pics-sr-mpls" only exists when "isis-pics-sr-mpls" is included in the list of "supported-isis-pics" in ietf-isis-pics module. The existence of a TLV support container means the support of a TLV. The details of the flags and features are included in the container. 4. IS-IS PICS YANG Trees 4.1. IETF ISIS PICS YANG Tree The following figure shows the tree diagram of the ietf-isis-pics module. module: ietf-isis-pics +--rw isis-pics +--rw supported-isis-pics* identityref +--rw isis-pics-mptlv 4.2. ISIS PICS for SR MPLS Tree The following figure shows the tree diagram of the ietf-isis-pics-sr- mpls module. Qu, et al. Expires 24 April 2024 [Page 4] Internet-Draft IS-IS PICS YANG October 2023 odule: ietf-isis-pics-sr-mpls +--rw isis-pics-sr-mpls +--rw sr-capability-sub-tlv-support! | +--rw i-bit-support? isis-pics:support | +--rw v-bit-support? isis-pics:support +--rw prefix-sid-sub-tlv-support? isis-pics:support +--rw adj-sid-sub-tlv-support? isis-pics:support +--rw lan-adj-sid-sub-tlv-support? isis-pics:support +--rw sid-label-tlv-support? isis-pics:support +--rw sid-label-binding-tlv-support? isis-pics:support +--rw mt-sid-label-binding-tlv-support? isis-pics:support +--rw sr-algorithm-tlv-support! | +--rw algo-support* uint8 +--rw sr-lb-tlv-support? isis-pics:support +--rw srms-preference-tlv-support? isis-pics:support augment /isis-pics:isis-pics/isis-pics:isis-pics-mptlv: +--rw sid-label-binding-support? isis-pics:support +--rw mt-sid-label-binding-support? isis-pics:support 5. IS-IS PICS YANG Modules 5.1. IANA ISIS PICS YANG Module file "iana-isis-pics@2023-10-18.yang" module iana-isis-pics { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:iana-isis-pics"; prefix iana-isis-pics; organization "IANA"; contact "Internet Assigned Numbers Authority Postal: ICANN 12025 Waterfront Drive, Suite 300 Los Angeles, CA 90094-2536 United States of America Tel: +1 310 301 5800 "; description "The YANG module defines the identities for IS-IS Protocol Implementation Conformance Statement (PICS). Copyright (c) 2023 IETF Trust and the persons identified as authors of the code. All rights reserved. Qu, et al. Expires 24 April 2024 [Page 5] Internet-Draft IS-IS PICS YANG October 2023 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 (https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself for full legal notices."; revision 2023-10-18 { description "Initial Version"; reference "RFC XXXX: YANG Data Model for IS-IS PICS."; } identity isis-pics { description "This identity is used as a base for all ISIS pics defined in the 'IS-IS PICS' registry."; } identity isis-pics-sr-mpls { base "isis-pics"; description "The identity for support of SR MPLS."; reference "RFC 8667: IS-IS Extensions for Segment Routing."; } } 5.2. ISIS PICS Module file "ietf-isis-pics@2023-10-18.yang" module ietf-isis-pics { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-isis-pics"; prefix isis-pics; import iana-isis-pics { prefix "iana-isis-pics"; } organization Qu, et al. Expires 24 April 2024 [Page 6] Internet-Draft IS-IS PICS YANG October 2023 "IETF LSR - Link State Routing Working Group"; contact "WG Web: WG List: Author: Yingzhen Qu Author: Les Ginsberg Author: Tony Przygienda "; description "The YANG module is used to query an IS-IS implementation for the conformance for the protocol implementation. A Protocol Implementation COnformance Statement (PICS) is defined in ISO 10589. This YANG model conforms to the Network Management Datastore Architecture (NMDA) as described in RFC 8342. 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 (https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself for full legal notices. 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."; reference "RFC XXXX: YANG Data Model for IS-IS PICS"; revision 2023-10-18 { description "Initial Version"; reference "RFC XXXX: YANG Data Model for IS-IS PICS."; Qu, et al. Expires 24 April 2024 [Page 7] Internet-Draft IS-IS PICS YANG October 2023 } typedef support { type boolean; default "false"; description "When set to True, it means a feature or definition is supported/implemented."; } container isis-pics { description "IS-IS Protocol Implementation Conformance Statement (PICS)."; leaf-list supported-isis-pics { type identityref { base iana-isis-pics:isis-pics; } description "List of supported isis pics."; } container isis-pics-mptlv { description "IS-IS Protocol Implementation Conformance Statement (PICS) for RFC xxxx: Multi-part TLVs in IS-IS. This container is meant to be augmented by RFC PICS module where a TLV is defined."; } } } 5.3. ISIS PICS Module for Support of SR MPLS file "ietf-isis-pics-sr-mpls@2023-10-18.yang" module ietf-isis-pics-sr-mpls { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-isis-pics-sr-mpls"; prefix isis-pics-sr-mpls; import iana-isis-pics { prefix "iana-isis-pics"; } import ietf-isis-pics { prefix "isis-pics"; } Qu, et al. Expires 24 April 2024 [Page 8] Internet-Draft IS-IS PICS YANG October 2023 organization "IETF LSR - Link State Routing Working Group"; contact "WG Web: WG List: Author: Yingzhen Qu Author: Les Ginsberg Author: Tony Przygienda "; description "ISIS Protocol Implementation Conformance Statement (PICS) is defined in ISO 10589. The YANG module is used to query an IS-IS PICS of Segment Routing for MPLS data plane. This YANG model conforms to the Network Management Datastore Architecture (NMDA) as described in RFC 8342. 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 (https://www.rfc-editor.org/info/rfcXXXX); see the RFC itself for full legal notices. 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."; reference "RFC XXXX: YANG Data Model for IS-IS PICS"; revision 2023-10-18 { description "Initial Version"; reference "RFC XXXX: YANG Data Model for IS-IS PICS."; Qu, et al. Expires 24 April 2024 [Page 9] Internet-Draft IS-IS PICS YANG October 2023 } container isis-pics-sr-mpls { when "/isis-pics:isis-pics/isis-pics:supported-isis-pics " + "= 'iana-isis-pics:isis-pics-sr-mpls'" { description "This container only exists when isis-pics-sr-mpls is present in the ietf-isis-pics module."; } description "IS-IS Protocol Implementation Conformance Statement (PICS) of Segment Routing on MPLS data plane."; reference "RFC 8667: IS-IS Extensions for Segment Routing"; container sr-capability-sub-tlv-support { presence "Support of sr-capability sub-tlv."; description "Support of sr-capability sub-tlv."; leaf i-bit-support { type isis-pics:support; description "support mpls-ipv4 capability."; } leaf v-bit-support { type isis-pics:support; description "support mpls-ipv6 capability."; } } leaf prefix-sid-sub-tlv-support { type isis-pics:support; description "Support of prefix-sid sub-tlv."; } leaf adj-sid-sub-tlv-support { type isis-pics:support; description "Support of Adjacency Segment Identifier sub-tlv."; } leaf lan-adj-sid-sub-tlv-support { type isis-pics:support; description Qu, et al. Expires 24 April 2024 [Page 10] Internet-Draft IS-IS PICS YANG October 2023 "Support of LAN adj-sid sub-tlv."; } leaf sid-label-tlv-support { type isis-pics:support; description "Support of SID/Label sub-tlv."; } leaf sid-label-binding-tlv-support { type isis-pics:support; description "Support of SID/Label Binding tlv."; } leaf mt-sid-label-binding-tlv-support { type isis-pics:support; description "Support of Multi-Topology SID/Label Binding TLV."; } container sr-algorithm-tlv-support { presence "Support of SR-Algorithm sub-tlv."; description "Support of SR-Algorithm sub-tlv."; leaf-list algo-support { type uint8; description "Supported algorithms."; } } leaf sr-lb-tlv-support { type isis-pics:support; description "Support of the SR Local Block sub-tlv."; } leaf srms-preference-tlv-support { type isis-pics:support; description "Support of the SRMS Preference sub-tlv."; } } augment "/isis-pics:isis-pics/isis-pics:isis-pics-mptlv" { Qu, et al. Expires 24 April 2024 [Page 11] Internet-Draft IS-IS PICS YANG October 2023 description "Augment isis-pics-mptlv container with the TLVs defined in RFC 8667."; leaf sid-label-binding-support { type isis-pics:support; description "MP-TLV support of Segment Identifier/Label Binding TLV (type 149)."; } leaf mt-sid-label-binding-support { type isis-pics:support; description "MP-TLV support of Multi-Topology Segment Identifier/Label Binding TLV(type 150)."; } } } 6. Security Considerations The YANG modules specified in this document define a schema for data that is designed to be accessed via network management protocols such as NETCONF [RFC6241] or RESTCONF [RFC8040]. The lowest NETCONF layer is the secure transport layer, and the mandatory-to-implement secure transport is Secure Shell (SSH) [RFC6242]. The lowest RESTCONF layer 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 pre- configured subset of all available NETCONF or RESTCONF protocol operations and content. Some of the readable data nodes in the ietf-isis-pics.yang module and ietf-isis-pics-sr-mpls.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. 7. IANA Considerations This document defines the initial version of the IANA-maintained iana-isis-pics YANG module. Qu, et al. Expires 24 April 2024 [Page 12] Internet-Draft IS-IS PICS YANG October 2023 The document requests IANA to create a "IS-IS PICS" registry, and iana-isis-pics YANG module is intended to reflect the the registry. When a IS-IS PICS is added to the registry, a new "identity" statement must be added to the iana-isis-pics YANG module. The name of the "identity" is the same as the RFC number. The following substatements to the "identity" statement should be defined: "base": contains the value of "isis-pic". "reference": the corresponding RFC information. When the iana-isis-pis YANG module is updated, a new "revision" statement must be added in from of the existing revision statements. This document registers a URI in the IETF XML registry [RFC3688]. Following the format in [RFC3688], the following registration is requested to be made: URI: urn:ietf:params:xml:ns:yang:iana-isis-pics Registrant Contact: IANA. XML: N/A, the requested URI is an XML namespace. URI: urn:ietf:params:xml:ns:yang:ietf-isis-pics Registrant Contact: The IESG. XML: N/A, the requested URI is an XML namespace. URI: urn:ietf:params:xml:ns:yang:ietf-isis-pics-sr-mpls Registrant Contact: The IESG. XML: N/A, the requested URI is an XML namespace. This document registers a YANG module in the YANG Module Names registry [RFC6020]. name: iana-isis-pics namespace: urn:ietf:params:xml:ns:yang:iana-isis-pics prefix: iana-isis-pics reference: RFC XXXX name: ietf-isis-pics namespace: urn:ietf:params:xml:ns:yang:ietf-isis-pics prefix: isis-pics reference: RFC XXXX name: ietf-isis-pics-sr-mpls namespace: urn:ietf:params:xml:ns:yang:ietf-isis-pics-sr-mpls prefix: isis-pics-sr-mpls reference: RFC XXXX Qu, et al. Expires 24 April 2024 [Page 13] Internet-Draft IS-IS PICS YANG October 2023 8. Acknowledgements The YANG model was developed using the suite of YANG tools written and maintained by numerous authors. 9. Normative References [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [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, . [RFC6241] Enns, R., Ed., Bjorklund, M., Ed., Schoenwaelder, J., Ed., and A. Bierman, Ed., "Network Configuration Protocol (NETCONF)", RFC 6241, DOI 10.17487/RFC6241, June 2011, . [RFC6242] Wasserman, M., "Using the NETCONF Protocol over Secure Shell (SSH)", RFC 6242, DOI 10.17487/RFC6242, June 2011, . [RFC6991] Schoenwaelder, J., Ed., "Common YANG Data Types", RFC 6991, DOI 10.17487/RFC6991, July 2013, . [RFC7950] Bjorklund, M., Ed., "The YANG 1.1 Data Modeling Language", RFC 7950, DOI 10.17487/RFC7950, August 2016, . [RFC8040] Bierman, A., Bjorklund, M., and K. Watsen, "RESTCONF Protocol", RFC 8040, DOI 10.17487/RFC8040, January 2017, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . Qu, et al. Expires 24 April 2024 [Page 14] Internet-Draft IS-IS PICS YANG October 2023 [RFC8341] Bierman, A. and M. Bjorklund, "Network Configuration Access Control Model", STD 91, RFC 8341, DOI 10.17487/RFC8341, March 2018, . [RFC8342] Bjorklund, M., Schoenwaelder, J., Shafer, P., Watsen, K., and R. Wilton, "Network Management Datastore Architecture (NMDA)", RFC 8342, DOI 10.17487/RFC8342, March 2018, . [RFC8446] Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018, . [RFC8667] Previdi, S., Ed., Ginsberg, L., Ed., Filsfils, C., Bashandy, A., Gredler, H., and B. Decraene, "IS-IS Extensions for Segment Routing", RFC 8667, DOI 10.17487/RFC8667, December 2019, . [ISO10589] ISO, "Intermediate system to Intermediate system routing information exchange protocol for use in conjunction with the Protocol for providing the Connectionless-mode Network Service (ISO 8473)", August 1987, . 10. Informative References [RFC8340] Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams", BCP 215, RFC 8340, DOI 10.17487/RFC8340, March 2018, . Authors' Addresses Yingzhen Qu Futurewei Email: yingzhen.qu@futurewei.com Les Ginsberg Cisco Systems Email: ginsberg@cisco.com.com Antoni Przygienda Juniper Networks Email: prz@juniper.net Qu, et al. Expires 24 April 2024 [Page 15]