forked from tsaad-dev/te
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ietf-mpls-static-extended.yang
133 lines (110 loc) · 3.58 KB
/
ietf-mpls-static-extended.yang
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
module ietf-mpls-static-extended {
yang-version 1.1;
namespace "urn:ietf:params:xml:ns:yang:ietf-mpls-static-extended";
prefix "mpls-static-ext";
import ietf-mpls {
prefix "mpls";
reference "draft-ietf-mpls-base-yang: MPLS Base YANG Data Model";
}
import ietf-routing {
prefix "rt";
reference "RFC8349: A YANG Data Model for Routing Management";
}
import ietf-routing-types {
prefix "rt-types";
reference "RFC8294: Common YANG Data Types for the Routing Area";
}
import ietf-mpls-static {
prefix "mpls-static";
reference "RFC XXXX: A YANG Data Model for MPLS Static LSPs";
}
organization "IETF MPLS Working Group";
contact
"WG Web: <http://tools.ietf.org/wg/mpls/>
WG List: <mailto:[email protected]>
Editor: Tarek Saad
<mailto:[email protected]>
Editor: Rakesh Gandhi
<mailto:[email protected]>
Editor: Xufeng Liu
<mailto: [email protected]>
Editor: Vishnu Pavan Beeram
<mailto:[email protected]>
Editor: Igor Bryskin
<mailto: [email protected]>";
description
"This YANG module contains the Extended MPLS Static LSP YANG
data model. The model fully conforms to the Network Management
Datastore Architecture (NMDA).
Copyright (c) 2018 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.";
// 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 "2019-09-12" {
description
"Latest revision of MPLS Static LSP Extended YANG module";
reference "RFC XXXX: A YANG Data Model for MPLS Static LSPs";
}
grouping bidir-static-lsp {
description
"grouping for top level list of static bidirectional 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";
}
}
augment "/rt:routing/mpls:mpls/mpls-static:static-lsps" {
description
"Augmentation for static MPLS LSPs";
leaf bandwidth {
type rt-types:bandwidth-ieee-float32;
units "Bytes per second";
description
"Bandwidth 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";
}
}
augment "/rt:routing/mpls:mpls" {
description "Augmentations for MPLS Static LSPs";
container bidir-static-lsps {
description
"Statically configured bidirectional LSPs";
list bidir-static-lsp {
key name;
description "List of static bidirectional LSPs";
leaf name {
type string;
description "Name that identifies the bidirectional LSP";
}
uses bidir-static-lsp;
}
}
}
}