-
Notifications
You must be signed in to change notification settings - Fork 19
/
ietf-te-sr-mpls.yang
161 lines (129 loc) · 3.94 KB
/
ietf-te-sr-mpls.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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
module ietf-te-sr-mpls {
namespace "urn:ietf:params:xml:ns:yang:ietf-te-sr-mpls";
/* Replace with IANA when assigned */
prefix "te-sr-mpls";
/* Import TE generic types */
import ietf-te {
prefix te;
}
/* Import TE generic types */
import ietf-te-types {
prefix te-types;
}
organization
"IETF Traffic Engineering Architecture and Signaling (TEAS)
Working Group";
contact
"WG Web: <http://tools.ietf.org/wg/teas/>
WG List: <mailto:[email protected]>
WG Chair: Lou Berger
<mailto:[email protected]>
WG Chair: Vishnu Pavan Beeram
<mailto:[email protected]>
Editor: Tarek Saad
<mailto:[email protected]>
Editor: Rakesh Gandhi
<mailto:[email protected]>
Editor: Vishnu Pavan Beeram
<mailto:[email protected]>
Editor: Himanshu Shah
<mailto:[email protected]>
Editor: Xufeng Liu
<mailto:[email protected]>
Editor: Xia Chen
<mailto:[email protected]>
Editor: Raqib Jones
<mailto:[email protected]>
Editor: Bin Wen
<mailto:[email protected]>";
description
"YANG data module for MPLS TE configurations,
state, RPC and notifications.";
revision "2018-02-15" {
description "Latest update to MPLS TE YANG module.";
reference "TBD";
}
identity sr-protection-type {
description
"The Adj-SID base protection types";
}
identity sr-protection-type-protected {
base sr-protection-type;
description
"The Adj-SID is eligible if protected";
}
identity sr-protection-type-unprotected {
base sr-protection-type;
description
"The Adj-SID is eligible if unprotected";
}
identity sr-protection-type-any {
base sr-protection-type;
description
"The Adj-SID is eligible if protected or unprotected";
}
typedef te-sid-selection-mode {
type enumeration {
enum ADJ_SID_ONLY {
description
"The SR-TE tunnel should only use adjacency SIDs
to build the SID stack to be pushed for the LSP";
}
enum MIXED_MODE {
description
"The SR-TE tunnel can use a mix of adjacency
and prefix SIDs to build the SID stack to be pushed
to the LSP";
}
}
description "SID selection mode type";
}
/* MPLS SR-TE tunnel properties*/
grouping tunnel-sr-mpls-properties_config {
description "MPLS TE SR tunnel properties";
leaf path-signaling-type {
type identityref {
base te-types:path-signaling-type;
}
description "TE tunnel path signaling type";
}
}
grouping te-sr-named-path-constraints_config {
description
"Configuration parameters relating to SR-TE LSPs";
leaf sid-selection-mode {
type te-sid-selection-mode;
default MIXED_MODE;
description
"The restrictions placed on the SIDs to be selected by the
calculation method for the explicit path when it is
instantiated for a SR-TE LSP";
}
leaf sid-protection {
type identityref {
base sr-protection-type;
}
default sr-protection-type-any;
description
"When set to protected only SIDs that are
protected are to be selected by the calculating method
when the explicit path is instantiated by a SR-TE LSP.";
}
}
grouping te-sr-named-path-constraints {
description "Named TE SR path constraints grouping";
uses te-sr-named-path-constraints_config;
}
/*** End of MPLS SR-TE tunnel configuration/state */
/**
* MPLS TE augmentations
*/
augment "/te:te/te:globals/te:named-path-constraints" +
"/te:named-path-constraint" {
description
"Augmentations for MPLS SR-TE config named constraints";
uses te-sr-named-path-constraints;
}
/* MPLS TE tunnel augmentations */
/* MPLS TE LSPs augmentations */
}