Adding udp-v6 encap#1496
Closed
danielbarney wants to merge 2 commits into
Closed
Conversation
danielbarney
commented
May 18, 2026
```
grouping static-encap-headers
+-- encap-headers
+-- encap-header* [index]
+-- index? -> ../config/index
+-- config
| +-- index? uint8
| +-- type? oc-aftt:encapsulation-header-type
+--ro state
| +--ro index? uint8
| +--ro type? oc-aftt:encapsulation-header-type
+-- udp-v4
| +-- config
| | +-- src-ip? oc-inet:ipv4-address
| | +-- dst-ip? oc-inet:ipv4-address
| | +-- dscp? oc-inet:dscp
| | +-- src-udp-port? oc-inet:port-number
| | +-- dst-udp-port? oc-inet:port-number
| | +-- ip-ttl? uint8
| +--ro state
| +--ro src-ip? oc-inet:ipv4-address
| +--ro dst-ip? oc-inet:ipv4-address
| +--ro dscp? oc-inet:dscp
| +--ro src-udp-port? oc-inet:port-number
| +--ro dst-udp-port? oc-inet:port-number
| +--ro ip-ttl? uint8
+-- udp-v6
| +-- config
| | +-- src-ip? oc-inet:ipv6-address
| | +-- dst-ip? oc-inet:ipv6-address
| | +-- dscp? oc-inet:dscp
| | +-- src-udp-port? oc-inet:port-number
| | +-- dst-udp-port? oc-inet:port-number
| | +-- ip-ttl? uint8
| +--ro state
| +--ro src-ip? oc-inet:ipv6-address
| +--ro dst-ip? oc-inet:ipv6-address
| +--ro dscp? oc-inet:dscp
| +--ro src-udp-port? oc-inet:port-number
| +--ro dst-udp-port? oc-inet:port-number
| +--ro ip-ttl? uint8
+-- gre
| +-- config
| | +-- src-ip? oc-inet:ip-address
| | +-- dst-ip? oc-inet:ip-address
| | +-- ttl? uint8
| +--ro state
| +--ro src-ip? oc-inet:ip-address
| +--ro dst-ip? oc-inet:ip-address
| +--ro ttl? uint8
+-- mpls
+-- config
| +-- traffic-class? oc-mplst:mpls-tc
| +-- label? oc-mplst:mpls-label
+--ro state
+--ro traffic-class? oc-mplst:mpls-tc
+--ro label? oc-mplst:mpls-label
```
Diffs
```
--- scratch/original_tree.txt 2026-05-18 17:16:44.000000000 +0000
+++ scratch/modified_tree.txt 2026-05-18 17:16:56.000000000 +0000
@@ -57,6 +57,21 @@
| +--ro src-udp-port? oc-inet:port-number
| +--ro dst-udp-port? oc-inet:port-number
| +--ro ip-ttl? uint8
+ +-- udp-v6
+ | +-- config
+ | | +-- src-ip? oc-inet:ipv6-address
+ | | +-- dst-ip? oc-inet:ipv6-address
+ | | +-- dscp? oc-inet:dscp
+ | | +-- src-udp-port? oc-inet:port-number
+ | | +-- dst-udp-port? oc-inet:port-number
+ | | +-- ip-ttl? uint8
+ | +--ro state
+ | +--ro src-ip? oc-inet:ipv6-address
+ | +--ro dst-ip? oc-inet:ipv6-address
+ | +--ro dscp? oc-inet:dscp
+ | +--ro src-udp-port? oc-inet:port-number
+ | +--ro dst-udp-port? oc-inet:port-number
+ | +--ro ip-ttl? uint8
+-- gre
| +-- config
| | +-- src-ip? oc-inet:ip-address
@@ -134,6 +149,21 @@
| +--ro src-udp-port? oc-inet:port-number
| +--ro dst-udp-port? oc-inet:port-number
| +--ro ip-ttl? uint8
+ +-- udp-v6
+ | +-- config
+ | | +-- src-ip? oc-inet:ipv6-address
+ | | +-- dst-ip? oc-inet:ipv6-address
+ | | +-- dscp? oc-inet:dscp
+ | | +-- src-udp-port? oc-inet:port-number
+ | | +-- dst-udp-port? oc-inet:port-number
+ | | +-- ip-ttl? uint8
+ | +--ro state
+ | +--ro src-ip? oc-inet:ipv6-address
+ | +--ro dst-ip? oc-inet:ipv6-address
+ | +--ro dscp? oc-inet:dscp
+ | +--ro src-udp-port? oc-inet:port-number
+ | +--ro dst-udp-port? oc-inet:port-number
+ | +--ro ip-ttl? uint8
+-- gre
| +-- config
| | +-- src-ip? oc-inet:ip-address
@@ -174,6 +204,21 @@
| +--ro dscp? oc-inet:dscp
| +--ro src-udp-port? oc-inet:port-number
| +--ro dst-udp-port? oc-inet:port-number
+ | +--ro ip-ttl? uint8
+ +-- udp-v6
+ | +-- config
+ | | +-- src-ip? oc-inet:ipv6-address
+ | | +-- dst-ip? oc-inet:ipv6-address
+ | | +-- dscp? oc-inet:dscp
+ | | +-- src-udp-port? oc-inet:port-number
+ | | +-- dst-udp-port? oc-inet:port-number
+ | | +-- ip-ttl? uint8
+ | +--ro state
+ | +--ro src-ip? oc-inet:ipv6-address
+ | +--ro dst-ip? oc-inet:ipv6-address
+ | +--ro dscp? oc-inet:dscp
+ | +--ro src-udp-port? oc-inet:port-number
+ | +--ro dst-udp-port? oc-inet:port-number
| +--ro ip-ttl? uint8
+-- gre
| +-- config
```
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a new udp-v6 container to the openconfig-network-instance-static.yang model, enabling support for UDP in IPv6 encapsulation within static network instances. The addition includes both configuration and state containers that utilize the common UDP-v6 encapsulation grouping. I have no feedback to provide as there were no review comments.
Member
|
/gcbrun |
|
No major YANG version changes in commit 5c6bd2b |
Member
|
@danielbarney note, you can refer to #1234 for implementation references and update your description for this pull request. |
Member
|
#1492 looks like it's adding the same? |
Author
|
Yes, same. Closing this as duplciate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.