module ietf-mpls-static-extended {
namespace "urn:ietf:params:xml:ns:yang:ietf-mpls-static-extended";
prefix "mpls-static-ext";
import ietf-mpls {
prefix "mpls";
}
import ietf-routing {
prefix "rt";
}
import ietf-mpls-static {
prefix "mpls-static";
}
organization "IETF MPLS Working Group";
contact
"WG Web:
WG List:
WG Chair: Loa Andersson
WG Chair: Ross Callon
WG Chair: George Swallow
Editor: Tarek Saad
Editor: Kamran Raza
Editor: Rakesh Gandhi
Editor: Xufeng Liu
Editor: Vishnu Pavan Beeram
Editor: Himanshu Shah
Editor: Igor Bryskin
Editor: Xia Chen
Editor: Raqib Jones
Editor: Bin Wen
";
description
"This module contains the Extended MPLS YANG data model.";
revision 2017-03-10 {
description "Latest revision of MPLS extended yang module.";
reference "RFC2205";
}
/* RSVP features */
feature bandwidth {
description
"Indicates support for static LSP bandwidth allocation";
}
grouping static-lsp-extended_config {
description
"Configuration parameters for MPLS extended
parameters";
leaf bandwidth {
type uint32;
description
"bandwidth in Mbps, e.g., using offline calculation";
}
leaf lsp-priority-setup {
type uint8 {
range "0..7";
}
description "LSP setup priority";
}
leaf lsp-priority-hold {
type uint8 {
range "0..7";
}
description "LSP hold priority";
}
}
grouping bidir-static-lsp_config {
description "common definitions for static LSPs";
leaf forward-lsp {
type mpls-static:static-lsp-ref;
description
"Reference to a configured static forward LSP";
}
leaf reverse-lsp {
type mpls-static:static-lsp-ref;
description
"Reference to a configured static reverse LSP";
}
}
grouping bidir-static-lsp {
description "grouping for top level list of static LSPs";
container config {
description
"Holds the intended configuration";
uses bidir-static-lsp_config;
}
container state {
config false;
description
"Holds the state and inuse configuration";
uses bidir-static-lsp_config;
}
}
augment "/rt:routing/mpls:mpls/mpls-static:static-lsps" {
description
"RSVP signaling all interfaces configuration extensions";
uses static-lsp-extended_config;
}
augment "/rt:routing/mpls:mpls" {
description "Augmentations for MPLS Static LSPs";
container bidir-static-lsps {
description
"Statically configured LSPs, without dynamic signaling";
list bidir-static-lsp {
key name;
description "list of defined static LSPs";
leaf name {
type string;
description "name to identify the LSP";
}
uses bidir-static-lsp;
}
}
}
}