-
Notifications
You must be signed in to change notification settings - Fork 20
Add support for SRv6 in gRIBI #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Carmine Scarpitta <[email protected]>
Signed-off-by: Carmine Scarpitta <[email protected]>
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Existing tree: |
|
Proposed tree: |
|
Diff from tree view: ➜ gribi git:(srv6_support) diff -prauwN ~/tmp/gribi-tree ~/tmp/gribi-tree-srv6
--- /Users/robjs/tmp/gribi-tree 2025-12-09 10:14:50
+++ /Users/robjs/tmp/gribi-tree-srv6 2025-12-09 10:15:16
@@ -51,6 +51,24 @@ module: gribi-aft
| +--ro entry-metadata? binary
| +--ro next-hop-group? uint64
| +--ro next-hop-group-network-instance? string
+ +--ro srv6
+ | +--ro srv6-sid-entry* [sid]
+ | +--ro sid -> ../state/sid
+ | +--ro state
+ | +--ro sid? oc-inet:ipv6-prefix
+ | +--ro sid-params
+ | | +--ro behavior-type uint16
+ | | +--ro lookup-network-instance? string
+ | | +--ro interface? if:interface-ref
+ | | +--ro next-hop? oc-inet:ip-address
+ | | +--ro encap-object-bsid
+ | | +--ro encap-type? enumeration
+ | | +--ro srv6-sidlist* oc-inet:ipv6-address
+ | | +--ro sr-mpls-label-stack* oc-mplst:mpls-label
+ | +--ro counters
+ | | +--ro packets-forwarded? oc-yang:counter64
+ | | +--ro octets-forwarded? oc-yang:counter64
+ | +--ro entry-metadata? binary
+--ro next-hop-groups
| +--ro next-hop-group* [id]
| +--ro id -> ../state/id
@@ -82,6 +100,10 @@ module: gribi-aft
| +--ro state
| +--ro src-ip? oc-inet:ip-address
| +--ro dst-ip? oc-inet:ip-address
+ | +--ro srv6-sid-list* oc-inet:ipv6-address
+ | +--ro flow-label? uint32
+ | +--ro traffic-class? uint8
+ | +--ro hop-limit? uint8
+--ro gre
| +--ro state
| +--ro src-ip? oc-inet:ip-address
@@ -102,10 +124,18 @@ module: gribi-aft
| | +--ro state
| | +--ro src-ip? oc-inet:ip-address
| | +--ro dst-ip? oc-inet:ip-address
+ | | +--ro srv6-sid-list* oc-inet:ipv6-address
+ | | +--ro flow-label? uint32
+ | | +--ro traffic-class? uint8
+ | | +--ro hop-limit? uint8
| +--ro ipv6
| | +--ro state
| | +--ro src-ip? oc-inet:ip-address
| | +--ro dst-ip? oc-inet:ip-address
+ | | +--ro srv6-sid-list* oc-inet:ipv6-address
+ | | +--ro flow-label? uint32
+ | | +--ro traffic-class? uint8
+ | | +--ro hop-limit? uint8
| +--ro mpls
| | +--ro state
| | +--ro traffic-class? oc-mplst:mpls-tc |
|
Paths diff: ➜ gribi git:(master) diff -prawuN /tmp/existing-paths /tmp/srv6-paths
--- /tmp/existing-paths 2025-12-09 10:19:29
+++ /tmp/srv6-paths 2025-12-09 10:19:15
@@ -50,6 +50,24 @@
/afts/ethernet/mac-entry/state/entry-metadata
/afts/ethernet/mac-entry/state/next-hop-group
/afts/ethernet/mac-entry/state/next-hop-group-network-instance
+/afts/srv6
+/afts/srv6/srv6-sid-entry
+/afts/srv6/srv6-sid-entry/sid
+/afts/srv6/srv6-sid-entry/state
+/afts/srv6/srv6-sid-entry/state/sid
+/afts/srv6/srv6-sid-entry/state/sid-params
+/afts/srv6/srv6-sid-entry/state/sid-params/behavior-type
+/afts/srv6/srv6-sid-entry/state/sid-params/lookup-network-instance
+/afts/srv6/srv6-sid-entry/state/sid-params/interface
+/afts/srv6/srv6-sid-entry/state/sid-params/next-hop
+/afts/srv6/srv6-sid-entry/state/sid-params/encap-object-bsid
+/afts/srv6/srv6-sid-entry/state/sid-params/encap-object-bsid/encap-type
+/afts/srv6/srv6-sid-entry/state/sid-params/encap-object-bsid/srv6-sidlist
+/afts/srv6/srv6-sid-entry/state/sid-params/encap-object-bsid/sr-mpls-label-stack
+/afts/srv6/srv6-sid-entry/state/counters
+/afts/srv6/srv6-sid-entry/state/counters/packets-forwarded
+/afts/srv6/srv6-sid-entry/state/counters/octets-forwarded
+/afts/srv6/srv6-sid-entry/state/entry-metadata
/afts/next-hop-groups
/afts/next-hop-groups/next-hop-group
/afts/next-hop-groups/next-hop-group/id
@@ -81,6 +99,10 @@
/afts/next-hops/next-hop/ip-in-ip/state
/afts/next-hops/next-hop/ip-in-ip/state/src-ip
/afts/next-hops/next-hop/ip-in-ip/state/dst-ip
+/afts/next-hops/next-hop/ip-in-ip/state/srv6-sid-list
+/afts/next-hops/next-hop/ip-in-ip/state/flow-label
+/afts/next-hops/next-hop/ip-in-ip/state/traffic-class
+/afts/next-hops/next-hop/ip-in-ip/state/hop-limit
/afts/next-hops/next-hop/gre
/afts/next-hops/next-hop/gre/state
/afts/next-hops/next-hop/gre/state/src-ip
@@ -101,10 +123,18 @@
/afts/next-hops/next-hop/encap-headers/encap-header/ipv4/state
/afts/next-hops/next-hop/encap-headers/encap-header/ipv4/state/src-ip
/afts/next-hops/next-hop/encap-headers/encap-header/ipv4/state/dst-ip
+/afts/next-hops/next-hop/encap-headers/encap-header/ipv4/state/srv6-sid-list
+/afts/next-hops/next-hop/encap-headers/encap-header/ipv4/state/flow-label
+/afts/next-hops/next-hop/encap-headers/encap-header/ipv4/state/traffic-class
+/afts/next-hops/next-hop/encap-headers/encap-header/ipv4/state/hop-limit
/afts/next-hops/next-hop/encap-headers/encap-header/ipv6
/afts/next-hops/next-hop/encap-headers/encap-header/ipv6/state
/afts/next-hops/next-hop/encap-headers/encap-header/ipv6/state/src-ip
/afts/next-hops/next-hop/encap-headers/encap-header/ipv6/state/dst-ip
+/afts/next-hops/next-hop/encap-headers/encap-header/ipv6/state/srv6-sid-list
+/afts/next-hops/next-hop/encap-headers/encap-header/ipv6/state/flow-label
+/afts/next-hops/next-hop/encap-headers/encap-header/ipv6/state/traffic-class
+/afts/next-hops/next-hop/encap-headers/encap-header/ipv6/state/hop-limit
/afts/next-hops/next-hop/encap-headers/encap-header/mpls
/afts/next-hops/next-hop/encap-headers/encap-header/mpls/state
/afts/next-hops/next-hop/encap-headers/encap-header/mpls/state/traffic-class |
|
A few comments:
|
This pull request introduces a YANG model necessary to support the configuration of SRv6 through gRIBI.