Skip to content

Commit

Permalink
Updated based on 2020-07-03 TEAS Call
Browse files Browse the repository at this point in the history
Models updated based on feedbacks received during the 2020-07-03 TEAS Call
  • Loading branch information
italobusi committed Jul 10, 2020
1 parent 2609e72 commit bd2e35e
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 250 deletions.
29 changes: 7 additions & 22 deletions ietf-mpls-te-types.yang
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module ietf-mpls-te-types {
This version of this YANG module is part of RFC XXXX; see
the RFC itself for full legal notices.";

revision 2020-06-26 {
revision 2020-07-03 {
description
"Initial Version";
reference
Expand Down Expand Up @@ -83,8 +83,6 @@ module ietf-mpls-te-types {
*/

typedef load-balancing-type {
description
"The type of load balancing used on bundled links.";
type enumeration {
enum per-flow {
description
Expand All @@ -104,6 +102,8 @@ module ietf-mpls-te-types {
forwarded on the same component link.";
}
}
description
"The type of load balancing used on bundled links.";
} // typedef load-balancing-type

/*
Expand Down Expand Up @@ -182,27 +182,12 @@ module ietf-mpls-te-types {

grouping te-mpls-label-hop {
description
"MPLS-TE Label. ";
"MPLS-TE Label Hop.";

choice mpls-hop-type {
leaf mpls-label {
type rt-types:mpls-label;
description
"Whether the label-hop is a normal MPLS-TE
label-hop or a PHP hop";

case php {
leaf mpls-php {
type empty;
description
"MPLS-TE PHP Label Hop.";
}
}
case label-hop {
leaf mpls-label {
type rt-types:mpls-label-general-use;
description
"MPLS-TE Label Hop.";
}
}
"MPLS Label.";
}
} // grouping te-mpls-label-hop
}
75 changes: 52 additions & 23 deletions ietf-mpls-te.tree
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,30 @@ module: ietf-te-mpls
| +--rw load-share? uint32
| +--rw policy-class? uint8
+--rw bandwidth-mpls
+--rw specification-type?
| te-packet-types:te-bandwidth-requested-type
+--rw set-bandwidth? te-packet-types:bandwidth-kbps
+--rw class-type? te-types:te-ds-class
+--ro state
| +--ro signaled-bandwidth? te-packet-types:bandwidth-kbps
+--rw auto-bandwidth
+--rw enabled? boolean
+--rw min-bw? te-packet-types:bandwidth-kbps
+--rw max-bw? te-packet-types:bandwidth-kbps
+--rw adjust-interval? uint32
+--rw adjust-threshold? rt-types:percentage
+--rw overflow
| +--rw enabled? boolean
| +--rw overflow-threshold? rt-types:percentage
| +--rw trigger-event-count? uint16
+--rw underflow
+--rw enabled? boolean
+--rw underflow-threshold? rt-types:percentage
+--rw trigger-event-count? uint16
augment /te:te/te:tunnels/te:tunnel/te:primary-paths/te:primary-path:
| +--rw specification-type?
| | te-packet-types:te-bandwidth-requested-type
| +--rw set-bandwidth? te-packet-types:bandwidth-kbps
| +--rw class-type? te-types:te-ds-class
| +--ro state
| | +--ro signaled-bandwidth? te-packet-types:bandwidth-kbps
| +--rw auto-bandwidth
| +--rw enabled? boolean
| +--rw min-bw? te-packet-types:bandwidth-kbps
| +--rw max-bw? te-packet-types:bandwidth-kbps
| +--rw adjust-interval? uint32
| +--rw adjust-threshold? rt-types:percentage
| +--rw overflow
| | +--rw enabled? boolean
| | +--rw overflow-threshold? rt-types:percentage
| | +--rw trigger-event-count? uint16
| +--rw underflow
| +--rw enabled? boolean
| +--rw underflow-threshold? rt-types:percentage
| +--rw trigger-event-count? uint16
+--rw load-balancing-type? mte-types:load-balancing-type
+--rw uhp-required? empty
augment /te:te/te:tunnels/te:tunnel/te:primary-paths
/te:primary-path:
+--rw static-lsp-name? mpls-static:static-lsp-ref
augment /te:te/te:tunnels/te:tunnel/te:secondary-paths
/te:secondary-path:
Expand All @@ -102,8 +105,8 @@ module: ietf-te-mpls
+--rw class-type? te-types:te-ds-class
+--ro state
+--ro signaled-bandwidth? te-packet-types:bandwidth-kbps
augment /te:te/te:tunnels/te:tunnel/te:primary-paths/te:primary-path
/te:lsps/te:lsp:
augment /te:te/te:tunnels/te:tunnel/te:primary-paths
/te:primary-path/te:lsps/te:lsp:
+--ro performance-metrics-one-way
| +--ro one-way-delay? uint32
| +--ro one-way-delay-normality?
Expand Down Expand Up @@ -148,3 +151,29 @@ module: ietf-te-mpls
+--ro two-way-packet-loss? decimal64
+--ro two-way-packet-loss-normality?
te-types:performance-metrics-normality
augment /te:te/te:tunnels/te:tunnel/te:primary-paths
/te:primary-path/te:computed-paths-properties
/te:computed-path-properties/te:path-properties
/te:path-route-objects/te:path-route-object/te:type
/te:label/te:label-hop/te:te-label/te:technology:
+--:(mpls)
+--ro mpls-label? rt-types:mpls-label
augment /te:te/te:tunnels/te:tunnel/te:primary-paths
/te:primary-path/te:lsps/te:lsp/te:path-properties
/te:path-route-objects/te:path-route-object/te:type
/te:label/te:label-hop/te:te-label/te:technology:
+--:(mpls)
+--ro mpls-label? rt-types:mpls-label
augment /te:te/te:tunnels/te:tunnel/te:secondary-paths
/te:secondary-path/te:computed-paths-properties
/te:computed-path-properties/te:path-properties
/te:path-route-objects/te:path-route-object/te:type
/te:label/te:label-hop/te:te-label/te:technology:
+--:(mpls)
+--ro mpls-label? rt-types:mpls-label
augment /te:te/te:tunnels/te:tunnel/te:secondary-paths
/te:secondary-path/te:lsps/te:lsp/te:path-properties
/te:path-route-objects/te:path-route-object/te:type
/te:label/te:label-hop/te:te-label/te:technology:
+--:(mpls)
+--ro mpls-label? rt-types:mpls-label
197 changes: 0 additions & 197 deletions ietf-te-mpls.tree

This file was deleted.

13 changes: 5 additions & 8 deletions ietf-te-mpls.yang
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ module ietf-te-mpls {
// RFC Ed.: update the date below with the date of RFC publication
// and remove this note.

revision "2020-06-26" {
revision "2020-07-03" {
description "Latest update to MPLS TE YANG module.";
reference
"RFCXXXX: A YANG Data Model for MPLS-TE Tunnels and LSP(s)";
Expand Down Expand Up @@ -411,9 +411,9 @@ module ietf-te-mpls {
}
}

grouping te-mpls-path-constraints {
grouping te-mpls-tunnel-attributes {
description
"Path constraints for MPLS-TE LSP attributes";
"MPLS-TE Tunnel attributes.";

leaf load-balancing-type {
type mte-types:load-balancing-type;
Expand Down Expand Up @@ -451,14 +451,11 @@ module ietf-te-mpls {
uses tunnel-igp-shortcuts;
uses tunnel-forwarding-adjacency;
uses tunnel-bandwidth_top;
uses te-mpls-tunnel-attributes;
}

/* MPLS TE path augmentations */
augment "/te:te/te:tunnels/te:tunnel/" +
"te:primary-paths/te:primary-path" {
description "Augment primary path constraints.";
uses te-mpls-path-constraints;
}


/* MPLS TE LSPs augmentations */
augment "/te:te/te:tunnels/te:tunnel/" +
Expand Down

0 comments on commit bd2e35e

Please sign in to comment.