diff --git a/release/models/network-instance/openconfig-network-instance-static.yang b/release/models/network-instance/openconfig-network-instance-static.yang index b54c72f79..cb838a9b8 100644 --- a/release/models/network-instance/openconfig-network-instance-static.yang +++ b/release/models/network-instance/openconfig-network-instance-static.yang @@ -11,6 +11,7 @@ module openconfig-network-instance-static { import openconfig-aft { prefix "oc-aft"; } import openconfig-aft-types { prefix "oc-aftt"; } import openconfig-local-routing { prefix "oc-loc-rt"; } + import openconfig-inet-types { prefix "oc-inet"; } // meta organization "OpenConfig working group"; @@ -22,7 +23,13 @@ module openconfig-network-instance-static { description "Static configurations associated with a network instance"; - oc-ext:openconfig-version "0.2.1"; + oc-ext:openconfig-version "0.3.0"; + + revision "2026-07-07" { + description + "Add a global encapsulation header configurations for static next-hops."; + reference "0.3.0"; + } revision "2025-08-05" { description @@ -56,6 +63,12 @@ module openconfig-network-instance-static { statically configured next hop group"; } + uses static-global-encap-header-top { + description + "Configuration and state parameters relating to the global + encapsulation header."; + } + uses static-next-hops-top { description "Configuration and state parameters relating to @@ -151,6 +164,59 @@ module openconfig-network-instance-static { } } + grouping static-global-encap-header-top { + description + "Logical grouping for the global encapsulation header."; + + container encap-header { + description + "Surrounding container for the global encapsulation header."; + + container config { + description + "Configuration parameters relating to the global encapsulation header."; + + uses static-global-encap-header; + } + + container state { + config false; + description + "State parameters relating to the global encapsulation header."; + + uses static-global-encap-header; + } + } + } + + grouping static-global-encap-header { + description + "Configuration parameters for the global encapsulation header."; + + leaf ipv4-dst-udp-port { + type oc-inet:port-number; + description + "Destination UDP port to use when the encapsulated payload is an + IPv4 packet."; + } + + leaf ipv6-dst-udp-port { + type oc-inet:port-number; + description + "Destination UDP port to use when the encapsulated payload is an + IPv6 packet."; + } + + leaf mpls-dst-udp-port { + type oc-inet:port-number; + description + "Destination UDP port to use when the encapsulated payload is an + MPLS packet."; + reference + "RFC 7510: Encapsulating MPLS in UDP"; + } + } + grouping static-nhg-next-hop { description "Configuration parameters relating to an individual next-hop