module ietf-fgotn-types { yang-version 1.1; namespace "urn:ietf:params:xml:ns:yang:ietf-fgotn-types"; prefix fgotn-types; import ietf-layer1-types { prefix l1-types; reference "RFC YYYY: A YANG Data Model for Layer 1 Types."; } /* Note: The RFC Editor will replace YYYY with the number assigned to the RFC once draft-ietf-ccamp-layer1-types becomes an RFC.*/ organization "Internet Engineering Task Force (IETF) CCAMP WG"; contact " ID-draft editor: Yanxia Tan (tanyx11@chinaunicom.cn); Yanlei Zheng (zhengyanlei@chinaunicom.cn); Italo Busi (italo.busi@huawei.com); Chaode Yu (yuchaode@huawei.com); Xing Zhao (zhaoxing@caict.ac.cn); "; description "This module contains a collection of YANG data types considered generally useful for fine grain Optical Transport Network (fgOTN) networks. Copyright (c) 2026 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; 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."; // RFC Ed.: replace XXXX with actual RFC number and remove this // note. // RFC Ed.: update the date below with the date of RFC publication // and remove this note. revision 2026-10-29 { description "initial version"; reference "RFC XXXX: YANG Data Models for fine grain Optical Transport Network"; } identity fgODUflex { base l1-types:odu-type; description "fgODUflex type (fine grain flexible bit rate, resizable)."; } typedef ts-list { type string { pattern '([1-9][0-9]{0,3}(-[1-9][0-9]{0,3})?' + '(,[1-9][0-9]{0,3}(-[1-9][0-9]{0,3})?)*)?'; } description "A list of Tributary Slots (TS) ranging between 1 and 4095. If multiple values or ranges are given, they all MUST be disjoint and MUST be in ascending order. For example 1-20,25,50-1000."; reference "RFC 7139: GMPLS Signaling Extensions for Control of Evolving G.709 Optical Transport Networks"; } typedef ts-list-or-empty { type string { pattern '([1-9][0-9]{0,3}(-[1-9][0-9]{0,3})?' + '(,[1-9][0-9]{0,3}(-[1-9][0-9]{0,3})?)*)?'; } description "A list of Tributary Slots (TS) ranging between 1 and 4095. If multiple values or ranges are given, they all MUST be disjoint and MUST be in ascending order. For example 1-20,25,50-1000."; reference "RFC 7139: GMPLS Signaling Extensions for Control of Evolving G.709 Optical Transport Networks"; } grouping fgotn-label-hop { description "This grouping defines the additional information to be added to the 'otn-label' container, defined in the 'otn-label-hop' grouping of the 'ietf-layer1-types' YANG module, when used to represent an fgOTN label hop."; leaf fgts-numbers { type fgotn-types:ts-list; description "The list of the fine grain Tributary Slots (fgTSs) allocated to the fgOTN tunnel. When the fgODUflex tunnel is setup over a LO-ODUj server layer tunnel, the 'ts-list' (together with the tsg) represents the TSs assigned to the LO-ODUj server layer tunnel, while the 'fgts-numbers' represents the fgTSs assigned to the fgOTN client layer tunnel."; } } }