-
Notifications
You must be signed in to change notification settings - Fork 696
Expand file tree
/
Copy pathopenconfig-pf-interfaces.yang
More file actions
226 lines (186 loc) · 6.01 KB
/
openconfig-pf-interfaces.yang
File metadata and controls
226 lines (186 loc) · 6.01 KB
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
submodule openconfig-pf-interfaces {
belongs-to openconfig-policy-forwarding {
prefix "oc-pf";
}
import openconfig-extensions { prefix "oc-ext"; }
import openconfig-interfaces { prefix "oc-if"; }
include openconfig-pf-forwarding-policies;
organization
"OpenConfig working group";
contact
"OpenConfig working group
www.openconfig.net";
description
"This submodule contains groupings related to the association
between interfaces and policy forwarding rules.";
oc-ext:openconfig-version "1.2.0";
revision "2026-03-13" {
description
"Add count as a policy-forwarding action.";
reference "1.2.0";
}
revision "2025-12-16" {
description
"Add MATCH_ACTION_POLICY type and set conditions for actions which
intended to be used by MATCH_ACTION_POLICY and PBR_POLICY.";
reference "1.1.0";
}
revision "2025-12-15" {
description
"Set model version to 1.0.0 as it is noted that multiple implementations
support this model and have production deployments.";
reference "1.0.0";
}
revision "2025-09-30" {
description
"Add global decapsulation policy to policy-forwarding.";
reference "0.10.0";
}
revision "2025-09-19" {
description
"Add action to set IP TTL.";
reference "0.9.0";
}
revision "2025-07-08" {
description
"Add policy-forwarding action next-hop-group.";
reference "0.8.0";
}
revision "2024-11-14" {
description
"Clarify that if no rules are present, all packets will be matched.";
reference "0.7.0";
}
revision "2023-04-25" {
description
"Clarify use of interface-ref.";
reference "0.6.1";
}
revision "2023-03-27" {
description
"Add support for decap in one NI and further actions in other NIs.";
reference "0.6.0";
}
revision "2022-01-25" {
description
"Add GUE and MPLS-in-UDP decapsulation actions.";
reference "0.5.0";
}
revision "2021-08-06" {
description
"Update path to the network instance action to allow references
to other NIs.";
reference "0.4.0";
}
revision "2021-05-19" {
description
"Add a VRF selection policy type, and means to apply the
policy.";
reference "0.3.0";
}
revision "2018-11-21" {
description
"Add OpenConfig module metadata extensions.";
reference "0.2.1";
}
revision "2017-06-21" {
description
"Amend policy forwarding model based on ACL changes.";
reference "0.2.0";
}
revision "2017-02-28" {
description
"Initial public release of policy forwarding.";
reference "0.1.0";
}
revision "2016-11-08" {
description
"Initial revision";
reference "0.0.1";
}
grouping pf-interfaces-structural {
description
"Structural grouping for interface to forwarding policy bindings
within the policy-forwarding model.";
container interfaces {
description
"Configuration and operational state relating policy
forwarding on interfaces.";
list interface {
key "interface-id";
description
"Configuration and operationals state relating to the
relationship between interfaces and policy-based forwarding
rules.
The interface referenced is based on the interface and
subinterface leaves within the interface-ref container -
which reference an entry in the /interfaces/interface list -
and should not rely on the value of the list key.";
leaf interface-id {
type leafref {
path "../config/interface-id";
}
description
"A reference to the unique identifier for the interface
being referenced by the policy.";
}
container config {
description
"Configuration parameters relating to an interface to
policy forwarding rule binding.";
uses pf-interface-config;
}
container state {
config false;
description
"Operational state parameters relating to an interface to
policy forwarding rule binding.";
uses pf-interface-config;
}
uses oc-if:interface-ref;
}
}
}
grouping pf-interface-config {
description
"Configuration parameters relating to an interface to policy
forwarding rule binding.";
leaf interface-id {
type oc-if:interface-id;
description
"A unique identifier for the interface.";
}
leaf apply-forwarding-policy {
type leafref {
// We are at /network-instances/network-instance/
// policy-forwarding/interfaces/interface/config/
// apply-forwarding-policy
path "../../../../policies/policy/config/policy-id";
}
description
"The policy to be applied on the interface. Packets ingress on
the referenced interface should be compared to the match
criteria within the specified policy, and in the case that
these criteria are met, the forwarding actions specified
applied. These policies should be applied following quality of
service classification, and ACL actions if such entities are
referenced by the corresponding interface.";
}
leaf apply-vrf-selection-policy {
type leafref {
// We are at /network-instances/network-instance/
// policy-forwarding/interfaces/interface/config/
// apply-vrf-selection-policy
path "../../../../policies/policy/config/policy-id";
}
description
"Apply the specific VRF selection policy on the interface.
The referenced Interface must be resolved using the Interface
and Sub-interface leaves.
The referenced policy MUST be of the type VRF_SELECTION_POLICY.
The VRF selection policy may coexist with a policy-forwarding policy.
The policy specified in this leaf is used to specifically choose the L3VRF network
instance that is used for specific input criteria of packets.";
}
}
}