module ietf-te-mpls-topology {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-te-mpls-topology";
prefix "tet-mpls";
import ietf-network {
prefix "nw";
}
import ietf-network-topology {
prefix "nt";
}
import ietf-te-topology {
prefix "tet";
}
import ietf-te-topology-packet {
prefix "tet-pkt";
}
import ietf-mpls-te-types {
prefix "mte-types";
}
organization
"Internet Engineering Task Force (IETF) TEAS WG";
contact
"WG Web:
WG List:
Editor: Italo Busi
Editor: Haomian Zheng
Editor: Aihua Guo
Editor: Xufeng Liu
";
description
"This module defines technology-specific MPLS-TE topology
data model.
Copyright (c) 2020 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
(http://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 2020-07-13 {
description
"Initial Version";
reference
"draft-busizheng-teas-yang-te-mpls-topology";
}
/*
* Augment TE bandwidth (to be moved to te-topology-packet?)
*/
augment "/nw:networks/nw:network/nw:node/nt:termination-point/"
+ "tet:te/"
+ "tet:interface-switching-capability/tet:max-lsp-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment maximum LSP TE bandwidth for the link termination
point (LTP).";
case packet {
uses mte-types:te-packet-path-bandwidth;
}
}
augment "/nw:networks/nw:network/nw:node/tet:te/"
+ "tet:te-node-attributes/tet:connectivity-matrices/"
+ "tet:path-constraints/tet:te-bandwidth/tet:technology" {
when "../../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment TE bandwidth path constraints of the TE node
connectivity matrices.";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nw:node/tet:te/"
+ "tet:te-node-attributes/tet:connectivity-matrices/"
+ "tet:connectivity-matrix/"
+ "tet:path-constraints/tet:te-bandwidth/tet:technology" {
when "../../../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment TE bandwidth path constraints of the
connectivity matrix entry.";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nw:node/tet:te/"
+ "tet:information-source-entry/tet:connectivity-matrices/"
+ "tet:path-constraints/tet:te-bandwidth/tet:technology" {
when "../../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment TE bandwidth path constraints of the TE node
connectivity matrices information source.";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nw:node/tet:te/"
+ "tet:information-source-entry/tet:connectivity-matrices/"
+ "tet:connectivity-matrix/"
+ "tet:path-constraints/tet:te-bandwidth/tet:technology" {
when "../../../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment TE bandwidth path constraints of the
connectivity matrix entry information source";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nw:node/tet:te/"
+ "tet:tunnel-termination-point/"
+ "tet:client-layer-adaptation/tet:switching-capability/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment client TE bandwidth of the tunnel termination point
(TTP)";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nw:node/tet:te/"
+ "tet:tunnel-termination-point/"
+ "tet:local-link-connectivities/tet:path-constraints/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment TE bandwidth path constraints for the TTP
Local Link Connectivities.";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nw:node/tet:te/"
+ "tet:tunnel-termination-point/"
+ "tet:local-link-connectivities/"
+ "tet:local-link-connectivity/tet:path-constraints/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment TE bandwidth path constraints for the TTP
Local Link Connectivity entry.";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nt:link/tet:te/"
+ "tet:te-link-attributes/"
+ "tet:interface-switching-capability/tet:max-lsp-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment maximum LSP TE bandwidth for the TE link.";
case packet {
uses mte-types:te-packet-path-bandwidth;
}
}
augment "/nw:networks/nw:network/nt:link/tet:te/"
+ "tet:te-link-attributes/"
+ "tet:max-link-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment maximum TE bandwidth for the TE link";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nt:link/tet:te/"
+ "tet:te-link-attributes/"
+ "tet:max-resv-link-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment maximum reservable TE bandwidth for the TE link";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nt:link/tet:te/"
+ "tet:te-link-attributes/"
+ "tet:unreserved-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment unreserved TE bandwidth for the TE Link";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nt:link/tet:te/"
+ "tet:information-source-entry/"
+ "tet:interface-switching-capability/"
+ "tet:max-lsp-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment maximum LSP TE bandwidth for the TE link
information source";
case packet {
uses mte-types:te-packet-path-bandwidth;
}
}
augment "/nw:networks/nw:network/nt:link/tet:te/"
+ "tet:information-source-entry/"
+ "tet:max-link-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment maximum TE bandwidth for the TE link
information source";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nt:link/tet:te/"
+ "tet:information-source-entry/"
+ "tet:max-resv-link-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment maximum reservable TE bandwidth for the TE link
information-source";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/nw:network/nt:link/tet:te/"
+ "tet:information-source-entry/"
+ "tet:unreserved-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
when "../../../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet" {
description
"Augmentation parameters apply only for networks with
Packet TE topology type.";
}
description
"Augment unreserved TE bandwidth of the TE link
information source";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/tet:te/tet:templates/"
+ "tet:link-template/tet:te-link-attributes/"
+ "tet:interface-switching-capability/"
+ "tet:max-lsp-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
description
"Augment maximum LSP TE bandwidth of the TE link
template";
case packet {
uses mte-types:te-packet-path-bandwidth;
}
}
augment "/nw:networks/tet:te/tet:templates/"
+ "tet:link-template/tet:te-link-attributes/"
+ "tet:max-link-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
description
"Augment maximum TE bandwidth the TE link template";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/tet:te/tet:templates/"
+ "tet:link-template/tet:te-link-attributes/"
+ "tet:max-resv-link-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
description
"Augment maximum reservable TE bandwidth for the TE link
template.";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
augment "/nw:networks/tet:te/tet:templates/"
+ "tet:link-template/tet:te-link-attributes/"
+ "tet:unreserved-bandwidth/"
+ "tet:te-bandwidth/tet:technology" {
description
"Augment unreserved TE bandwidth the TE link template";
case packet {
uses mte-types:te-packet-link-bandwidth;
}
}
/*
* Augmentations
*/
augment "/nw:networks/nw:network/nw:network-types/"
+ "tet:te-topology/tet-pkt:packet" {
description
"Augment network types to include MPLS-TE Topology Type";
container mpls-topology {
presence
"Indicates an MPLS-TE Topology Type.";
description
"Its presence indicates an MPLS-TE Topology";
}
}
augment "/nw:networks/nw:network/nt:link/tet:te" {
when "../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet/tet-mpls:mpls-topology" {
description
"Augment MPLS-TE Topology.";
}
description
"Augment TE Link.";
leaf load-balancing-type {
type mte-types:load-balancing-type;
default 'per-flow';
description
"Indicates the type of load-balancing (per-flow or per-LSP)
performed by the bundled TE Link.
This leaf is not present when the TE Link is not bundled.";
} // leaf load-balancing-type
}
augment "/nw:networks/nw:network/nw:node/nt:termination-point/"
+ "tet:te" {
when "../../../nw:network-types/tet:te-topology/"
+ "tet-pkt:packet/tet-mpls:mpls-topology" {
description "Augment MPLS-TE Topology.";
}
description "Augment LTP.";
leaf uhp-incapable {
type empty;
config false;
description
"When present, indicates that the LTP is not capable to
support Ultimate Hop Popping (UHP).";
} // leaf uhp-incapable
}
}