@@ -11,7 +11,6 @@ module openconfig-network-instance-static {
1111 import openconfig-aft { prefix "oc-aft" ; }
1212 import openconfig-aft-types { prefix "oc-aftt" ; }
1313 import openconfig-local-routing { prefix "oc-loc-rt" ; }
14- import openconfig-inet-types { prefix "oc-inet" ; }
1514
1615 // meta
1716 organization "OpenConfig working group" ;
@@ -23,13 +22,7 @@ module openconfig-network-instance-static {
2322 description
2423 "Static configurations associated with a network instance" ;
2524
26- oc-ext:openconfig-version "0.2.0" ;
27-
28- revision "2025-03-20" {
29- description
30- "Add template for static encap header fields." ;
31- reference "0.2.0" ;
32- }
25+ oc-ext:openconfig-version "0.1.0" ;
3326
3427 revision "2025-02-20" {
3528 description
@@ -51,12 +44,6 @@ module openconfig-network-instance-static {
5144 statically configured next hop group" ;
5245 }
5346
54- uses encap-header-templates-top {
55- description
56- "Configuration and state parameters relating to
57- statically configured encap-header templates" ;
58- }
59-
6047 uses static-next-hops-top {
6148 description
6249 "Configuration and state parameters relating to
@@ -263,8 +250,6 @@ module openconfig-network-instance-static {
263250 "Config parameters relating to encapsulation headers." ;
264251
265252 uses oc-aft:aft-common-nexthop-encap-headers-state;
266-
267- uses encap-header-template-ref;
268253 }
269254
270255 container state {
@@ -273,8 +258,6 @@ module openconfig-network-instance-static {
273258 "State parameters relating to encapsulation headers." ;
274259
275260 uses oc-aft:aft-common-nexthop-encap-headers-state;
276-
277- uses encap-header-template-ref;
278261 }
279262
280263 container udp-v4 {
@@ -304,100 +287,4 @@ module openconfig-network-instance-static {
304287 }
305288 }
306289
307- grouping encap-header-templates-top {
308- description
309- "Logical grouping for encap-header templates." ;
310-
311- container encap-header-templates {
312- description
313- "Surrounding container for groups of encap-header templates." ;
314-
315- list encap-header-template {
316- key "name" ;
317- description
318- "A list of user defined templates for encap-headers.next-hop-groups." ;
319-
320- leaf name {
321- type leafref {
322- path "../config/name" ;
323- }
324- description
325- "A reference to a unique identifier for the encap-header-template." ;
326- }
327-
328- container config {
329- description
330- "Configuration parameters relating to encap-header template." ;
331- uses encap-header-template-group;
332- }
333-
334- container state {
335- config false ;
336- description
337- "State parameters relating to encap-header template." ;
338- uses encap-header-template-group;
339- }
340-
341-
342- }
343- }
344- }
345-
346- grouping encap-header-template-group {
347- description
348- "Logical grouping for statically configured encap-header template." ;
349-
350- leaf name {
351- type string ;
352- description
353- "A user defined name that uniquely identifies the encap-header template." ;
354- }
355-
356- leaf dst-udp-port {
357- type oc-inet:port-number;
358- description
359- "Destination UDP port number to use for the UDP header of the encapsulated
360- packet.
361-
362- When the payload packet is MPLS, then RFC 7510 - Encapsulating MPLS
363- in UDP should be followed." ;
364- reference
365- "RFC 7510 - Encapsulating MPLS in UDP specifies that 6635 must be
366- used for MPLS-in-UDP and 6636 must be used for MPLS-in-UDP with DTLS.
367- Because of this condition, no default is defined in OpenConfig. The
368- system is expected to utilize the appropriate port." ;
369- }
370-
371- leaf ip-ttl {
372- type uint8 ;
373- description
374- "This leaf reflects the configured/default IP TTL value that is used
375- in the outer header during packet encapsulation. When this leaf is
376- not set, the TTL value of the inner packet is copied over as the
377- outer packet's IP TTL value during encapsulation." ;
378- }
379-
380- leaf dscp {
381- type oc-inet:dscp;
382- description
383- "DSCP value to use for the UDP header of the encapsulated
384- packet." ;
385- }
386-
387- }
388-
389- grouping encap-header-template-ref {
390- description
391- "Logical grouping for reference to an encap-header template." ;
392-
393- leaf encap-header-template {
394- type string ;
395- description
396- "A user defined name that uniquely identifies the encap-header template.
397- If the encap header already has its fields already configured
398- explicitly, that should take precendence over the template fields." ;
399- }
400- }
401-
402-
403290}
0 commit comments