TEAS Working Group V. Beeram Internet-Draft T. Saad Intended status: Standards Track Juniper Networks Expires: January 13, 2022 July 12, 2021 YANG Data Model for Topology Filter draft-bestbar-teas-yang-topology-filter-00 Abstract This document defines a YANG data model for the management of topology filters/filter-sets on network elements and controllers. Requirements Language 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 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. 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 January 13, 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 Beeram & Saad Expires January 13, 2022 [Page 1] Internet-Draft Topology Filter YANG Data Model July 2021 carefully, as they describe your rights and restrictions with respect to this document. Code Components 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 1.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 2 1.2. Tree Structure . . . . . . . . . . . . . . . . . . . . . 3 2. Topology Filter Data Model . . . . . . . . . . . . . . . . . 3 2.1. Model Structure . . . . . . . . . . . . . . . . . . . . . 3 2.1.1. Topology Filters . . . . . . . . . . . . . . . . . . 3 2.1.1.1. Topology Reference . . . . . . . . . . . . . . . 3 2.1.1.2. Filters . . . . . . . . . . . . . . . . . . . . . 4 2.1.2. Topology Filter-Sets . . . . . . . . . . . . . . . . 5 2.2. YANG Module . . . . . . . . . . . . . . . . . . . . . . . 5 3. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 11 4. Contributors . . . . . . . . . . . . . . . . . . . . . . . . 11 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 12 6. Security Considerations . . . . . . . . . . . . . . . . . . . 12 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 13 7.1. Normative References . . . . . . . . . . . . . . . . . . 13 7.2. Informative References . . . . . . . . . . . . . . . . . 14 Appendix A. Complete Model Tree Structure . . . . . . . . . . . 15 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 17 1. Introduction A topology filter is a data construct that can be applied on either a native topology or a customized topology to produce a filtered set of topological elements. A topology filter-set is a union of multiple topology filters that can be applied in tandem on a topology. This document defines a YANG data model for the management of topology filters/filter-sets on network elements and controllers. 1.1. Terminology The terminology for describing YANG data models is found in [RFC7950]. The reader is expected to be familiar with the topology modeling terminology specified in [RFC8345], [RFC8776] and [RFC8795]. Beeram & Saad Expires January 13, 2022 [Page 2] Internet-Draft Topology Filter YANG Data Model July 2021 1.2. Tree Structure A simplified graphical representation of the data model is presented in Appendix A of this document. The tree format defined in [RFC8340] is used for the YANG data model tree representation. 2. Topology Filter Data Model 2.1. Model Structure The high-level model structure defined by this document is as shown below: module: ietf-topology-filter augment /rt:routing: +--rw topology-filters! | +--rw topology-filter* [name] | +--rw name string | +--rw topology-ref | | .......... | +--rw include-any | | .......... | +--rw include-all | | .......... | +--rw exclude | .......... +--rw topology-filter-sets! +--rw topology-filter-set* [name] +--rw name string + .......... The top-level 'routing' container [RFC8349] is augmented with a set of topology filters and a set of topology filter-sets. 2.1.1. Topology Filters The 'topology-filters' container carries a list of topology filters. Each topology-filter entry specifies a set of include-any, include- all and exclude filtering rules that can be applied on either the native topology or a user specified topology. 2.1.1.1. Topology Reference The 'topology-reference' container indicates the topology on which the filtering rules need to be applied. The referenced topology could be a predefined TE topology and/or a specific IGP domain. The absence of the 'topology-reference' indicates that the filtering rules are to be applied on the native topology. Beeram & Saad Expires January 13, 2022 [Page 3] Internet-Draft Topology Filter YANG Data Model July 2021 +--rw topology-ref +--rw igp-domain-identifier | +--rw protocol-id? igp-protocol | +--rw instance-id? uint32 | +--rw division-id? uint32 | +--rw algo-id? uint8 | +--rw mt-id? uint16 +--rw te-topology-identifier +--rw provider-id? te-global-id +--rw client-id? te-global-id +--rw topology-id? te-topology-id 2.1.1.2. Filters The 'include-any', 'include-all' and 'exclude' containers carry a varied set of attributes that can be used as rules to filter the topology. If the topology-filter entry carries no filtering rules and only references a specific topology, then the set of filtered topological elements produced is the same as the one defined by the referenced topology. +--rw include-any | +--rw link-affinity* string | +--rw link-name* string | +--rw node-prefix* inet:ip-prefix | +--rw as* inet:as-number | +--rw info-source* [source-id instance-id division-id] | +--rw source-id tet:te-info-source | +--rw instance-id uint32 | +--rw division-id uint32 +--rw include-all | +--rw link-affinity* string | +--rw link-name* string | +--rw node-prefix* inet:ip-prefix | +--rw as* inet:as-number | +--rw info-source* [source-id instance-id division-id] | +--rw source-id tet:te-info-source | +--rw instance-id uint32 | +--rw division-id uint32 +--rw exclude +--rw link-affinity* string +--rw link-name* string +--rw node-prefix* inet:ip-prefix +--rw as* inet:as-number +--rw info-source* [source-id instance-id division-id] +--rw source-id tet:te-info-source +--rw instance-id uint32 +--rw division-id uint32 Beeram & Saad Expires January 13, 2022 [Page 4] Internet-Draft Topology Filter YANG Data Model July 2021 2.1.2. Topology Filter-Sets The 'topology-filter-sets' container carries a list of topology filter-sets. Each topology-filter-set entry constitutes a list of topology-filter references. This is used when there is a need to create a union of multiple topology filters. +--rw topology-filter-sets! +--rw topology-filter-set* [name] +--rw name string +--rw topology-filter* -> ../../../topology-filters/topology-filter/name 2.2. YANG Module file "ietf-topology-filter@2021-07-12.yang" module ietf-topology-filter { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-topology-filter"; prefix "topo-filt"; import ietf-inet-types { prefix "inet"; reference "RFC 6991: Common YANG Data Types"; } import ietf-routing { prefix rt; reference "RFC 8349: A YANG Data Model for Routing Management (NMDA Version)"; } import ietf-te-types { prefix te-types; reference "RFC 8776: Common YANG Data Types for Traffic Engineering"; } import ietf-te-topology { prefix tet; reference "RFC 8795: YANG Data Model for Traffic Engineering Topologies"; } organization "IETF Traffic Engineering Architecture and Signaling (TEAS) Beeram & Saad Expires January 13, 2022 [Page 5] Internet-Draft Topology Filter YANG Data Model July 2021 Working Group."; contact "WG Web: WG List: Editor: Vishnu Pavan Beeram Editor: Tarek Saad "; description "This YANG module defines data definitions for managing topology filters. Copyright (c) 2021 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 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; see the RFC itself for full legal notices."; revision "2021-07-11" { description "Initial revision."; reference "RFC XXXX: YANG Data Model for Topology Filters."; } /* * T Y P E D E F S */ typedef igp-protocol { type enumeration { enum ospfv2 { description "OSPFv2."; } enum ospfv3 { description "OSPFv3."; Beeram & Saad Expires January 13, 2022 [Page 6] Internet-Draft Topology Filter YANG Data Model July 2021 } enum isis { description "IS-IS."; } } description "IGP Protocol Type."; } /* * G R O U P I N G S */ /* * Grouping - Topology Information Source. */ grouping igp-topology-info-source { description "Grouping for igp topology information source."; leaf protocol-id { type igp-protocol; description "IGP Protocol Type."; } leaf instance-id { type uint32; description "Information Source Instance."; } leaf division-id { type uint32; description "Information Source Division."; } } /* * Grouping - IGP Domain Identifier. */ grouping igp-domain-identifier { description "Grouping for igp domain identifier."; container igp-domain-identifier { description "Container for igp domain identifier."; uses igp-topology-info-source; leaf algo-id { Beeram & Saad Expires January 13, 2022 [Page 7] Internet-Draft Topology Filter YANG Data Model July 2021 type uint8; description "Algorithm ID."; } leaf mt-id { type uint16; description "Multi Topology ID."; } } } /* * Grouping - Topology Reference */ grouping topology-reference { description "Grouping for topology reference."; container topology-ref { description "Container for topology reference."; uses igp-domain-identifier; uses te-types:te-topology-identifier; } } /* * Grouping - Topology Information Sources */ grouping topology-info-sources { description "Grouping for topology information sources."; list info-source { key "source-id instance-id division-id"; description "List of information-sources."; leaf source-id { type tet:te-info-source; description "Information Source."; } leaf instance-id { type uint32; description "Information Source Instance."; } leaf division-id { type uint32; Beeram & Saad Expires January 13, 2022 [Page 8] Internet-Draft Topology Filter YANG Data Model July 2021 description "Information Source Division."; } } } /* * Grouping - Custom Topology Filters */ grouping custom-topology-filters { description "Grouping for custom topology filters."; leaf-list link-affinity { type string; description "List of link affinities."; } leaf-list link-name { type string; description "List of link names."; } leaf-list node-prefix { type inet:ip-prefix; description "List of node IDs."; } leaf-list as { type inet:as-number; description "List of AS numbers."; } uses topology-info-sources; } /* * Grouping - Topology Filters */ grouping topology-filters { description "Grouping for topology filters."; container topology-filters { presence "Enable Topology Filters."; description "Container for topology filters."; list topology-filter { key "name"; description Beeram & Saad Expires January 13, 2022 [Page 9] Internet-Draft Topology Filter YANG Data Model July 2021 "List of topology filters."; leaf name { type string; description "A string that uniquely identifies the topology filter."; } uses topology-reference; container include-any { description "Include-any filters."; uses custom-topology-filters; } container include-all { description "Include-all filters."; uses custom-topology-filters; } container exclude { description "Exclude filters."; uses custom-topology-filters; } } } } /* * Grouping - Topology Filter Sets */ grouping topology-filter-sets { description "Grouping for topology filter sets."; container topology-filter-sets { presence "Enable Topology Filter-Sets."; description "Container for topology filter sets."; list topology-filter-set { key "name"; description "List of topology filter sets."; leaf name { type string; description "A string that uniquely identifies the topology filter-set."; } leaf-list topology-filter { type leafref { Beeram & Saad Expires January 13, 2022 [Page 10] Internet-Draft Topology Filter YANG Data Model July 2021 path "../../../topo-filt:topology-filters/" + "topo-filt:topology-filter/topo-filt:name"; } description "Reference to a specific topology filter from the list of topology filters."; } } } } /* * Augment - Topology Filters / Topology Filter-Sets */ augment "/rt:routing" { description "Augment routing with topology-filters and topology-filter-sets."; uses topology-filters; uses topology-filter-sets; } } 3. Acknowledgements The authors would like to thank Sudharsana Venkatraman for her input from discussions. 4. Contributors The following individuals contributed to this document: Colby Barth Juniper Networks Email: cbarth@juniper.net Srihari R. Sangli Juniper Networks Email: ssangli@juniper.net Chandra Ramachandran Juniper Networks Email: csekar@juniper.net Beeram & Saad Expires January 13, 2022 [Page 11] Internet-Draft Topology Filter YANG Data Model July 2021 5. IANA Considerations This document registers the following 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:ietf-topology-filter Registrant Contact: The TEAS WG of the IETF. XML: N/A, the requested URI is an XML namespace. This document registers a YANG module in the YANG Module Names registry [RFC6020]. name: ietf-topology-filter namespace: urn:ietf:params:xml:ns:yang:ietf-topology-filter prefix: ns-phd reference: RFCXXXX 6. Security Considerations The YANG module specified in this document defines 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 Network Configuration Access Control Model (NACM) [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 data nodes defined in this YANG module that are writable/creatable/deletable (i.e., config true, which is the default) 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: * "/routing/topology-filters/": This subtree specifies the configurations for topology filters. By manipulating these data nodes, a malicious attacker may cause unauthorized and improper behavior to any service that is making use of the filtered set of topological elements produced by the application of the compromised topology filter. Beeram & Saad Expires January 13, 2022 [Page 12] Internet-Draft Topology Filter YANG Data Model July 2021 * "/routing/topology-filter-sets": This subtree specifies the configurations for topology filter-sets. By manipulating these data nodes, a malicious attacker may cause unauthorized and improper behavior to any service that is making use of the filtered set of topological elements produced by the application of the compromised topology filter-set. 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: * "/routing/topology-filter": Unauthorized access to this subtree can disclose the topology filters used in the network. * "/routing/topology-filter-sets": Unauthorized access to this subtree can disclose the topology filter-sets used in the network. 7. References 7.1. 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, . Beeram & Saad Expires January 13, 2022 [Page 13] Internet-Draft Topology Filter YANG Data Model July 2021 [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, . [RFC8341] Bierman, A. and M. Bjorklund, "Network Configuration Access Control Model", STD 91, RFC 8341, DOI 10.17487/RFC8341, March 2018, . [RFC8345] Clemm, A., Medved, J., Varga, R., Bahadur, N., Ananthakrishnan, H., and X. Liu, "A YANG Data Model for Network Topologies", RFC 8345, DOI 10.17487/RFC8345, March 2018, . [RFC8349] Lhotka, L., Lindem, A., and Y. Qu, "A YANG Data Model for Routing Management (NMDA Version)", RFC 8349, DOI 10.17487/RFC8349, March 2018, . [RFC8446] Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018, . [RFC8776] Saad, T., Gandhi, R., Liu, X., Beeram, V., and I. Bryskin, "Common YANG Data Types for Traffic Engineering", RFC 8776, DOI 10.17487/RFC8776, June 2020, . [RFC8795] Liu, X., Bryskin, I., Beeram, V., Saad, T., Shah, H., and O. Gonzalez de Dios, "YANG Data Model for Traffic Engineering (TE) Topologies", RFC 8795, DOI 10.17487/RFC8795, August 2020, . 7.2. Informative References [RFC8340] Bjorklund, M. and L. Berger, Ed., "YANG Tree Diagrams", BCP 215, RFC 8340, DOI 10.17487/RFC8340, March 2018, . Beeram & Saad Expires January 13, 2022 [Page 14] Internet-Draft Topology Filter YANG Data Model July 2021 Appendix A. Complete Model Tree Structure Beeram & Saad Expires January 13, 2022 [Page 15] Internet-Draft Topology Filter YANG Data Model July 2021 module: ietf-topology-filter augment /rt:routing: +--rw topology-filters! | +--rw topology-filter* [name] | +--rw name string | +--rw topology-ref | | +--rw igp-domain-identifier | | | +--rw protocol-id? igp-protocol | | | +--rw instance-id? uint32 | | | +--rw division-id? uint32 | | | +--rw algo-id? uint8 | | | +--rw mt-id? uint16 | | +--rw te-topology-identifier | | +--rw provider-id? te-global-id | | +--rw client-id? te-global-id | | +--rw topology-id? te-topology-id | +--rw include-any | | +--rw link-affinity* string | | +--rw link-name* string | | +--rw node-prefix* inet:ip-prefix | | +--rw as* inet:as-number | | +--rw info-source* [source-id instance-id division-id] | | +--rw source-id tet:te-info-source | | +--rw instance-id uint32 | | +--rw division-id uint32 | +--rw include-all | | +--rw link-affinity* string | | +--rw link-name* string | | +--rw node-prefix* inet:ip-prefix | | +--rw as* inet:as-number | | +--rw info-source* [source-id instance-id division-id] | | +--rw source-id tet:te-info-source | | +--rw instance-id uint32 | | +--rw division-id uint32 | +--rw exclude | +--rw link-affinity* string | +--rw link-name* string | +--rw node-prefix* inet:ip-prefix | +--rw as* inet:as-number | +--rw info-source* [source-id instance-id division-id] | +--rw source-id tet:te-info-source | +--rw instance-id uint32 | +--rw division-id uint32 +--rw topology-filter-sets! +--rw topology-filter-set* [name] +--rw name string +--rw topology-filter* -> ../../../topology-filters/topology-filter/name Beeram & Saad Expires January 13, 2022 [Page 16] Internet-Draft Topology Filter YANG Data Model July 2021 Authors' Addresses Vishnu Pavan Beeram Juniper Networks Email: vbeeram@juniper.net Tarek Saad Juniper Networks Email: tsaad@juniper.net Beeram & Saad Expires January 13, 2022 [Page 17]