Repository navigation
Introduce "egress-enabled" for sflow per-interface config - #1593
travisc-arista wants to merge 10 commits into
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the openconfig-sampling-sflow model by introducing granular control over sFlow sampling on interfaces. By adding an egress-enabled leaf and refining the documentation for the existing enabled leaf, the model now explicitly distinguishes between ingress and egress sampling configurations. These changes maintain backward compatibility while providing better alignment with network monitoring requirements. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the openconfig-sampling-sflow.yang model to introduce support for egress sFlow sampling on interfaces via a new egress-enabled leaf, while clarifying that the existing enabled leaf controls ingress sFlow. The review feedback points out that only Arista EOS strongly supports egress sFlow among the compared network operating systems. To align with vendor-neutral modeling guidelines, the reviewer suggests adding a note to the egress-enabled description indicating that support is platform-dependent.
|
Industry implementation references:
|
|
Thanks Darren on spotting this, I have updated the description |
|
/gcbrun |
|
No major YANG version changes in commit fbe5f18 |
|
/gcbrun |
|
Oh fixed the trailing whitespace, just saw that job failed |
|
/gcbrun |
1 similar comment
|
/gcbrun |
dplore
left a comment
There was a problem hiding this comment.
LGTM. Please push a commit to the repository to re-trigger the checks. There appeared to be a temporary github issue that stalled checks on your last update.
|
Setting last call to Nov 24, 2026 |
Change Scope
Note: This is a revision of #1569. We have decided to discard the old PR and create this new PR.
Platform Implementations
Tree View
module: openconfig-sampling-sflow augment /oc-sampling:sampling: +--rw sflow +--rw config | +--rw enabled? boolean | +--rw agent-id-ipv4? oc-inet:ipv4-address | +--rw agent-id-ipv6? oc-inet:ipv6-address | +--rw dscp? oc-inet:dscp | +--rw sample-size? uint16 | +--rw polling-interval? uint16 | +--rw ingress-sampling-rate? uint32 | +--rw egress-sampling-rate? uint32 +--ro state | +--ro enabled? boolean | +--ro agent-id-ipv4? oc-inet:ipv4-address | +--ro agent-id-ipv6? oc-inet:ipv6-address | +--ro dscp? oc-inet:dscp | +--ro sample-size? uint16 | +--ro polling-interval? uint16 | +--ro ingress-sampling-rate? uint32 | +--ro egress-sampling-rate? uint32 +--rw collectors | +--rw collector* [address port] | +--rw address -> ../config/address | +--rw port -> ../config/port | +--rw config | | +--rw address? oc-inet:ip-address | | +--rw port? oc-inet:port-number | | +--rw source-address? oc-inet:ip-address | | +--rw max-datagram-size? uint16 | | +--rw network-instance? oc-netinst:network-instance-ref | +--ro state | +--ro address? oc-inet:ip-address | +--ro port? oc-inet:port-number | +--ro source-address? oc-inet:ip-address | +--ro max-datagram-size? uint16 | +--ro network-instance? oc-netinst:network-instance-ref | +--ro packets-sent? oc-yang:counter64 +--rw interfaces +--rw interface* [name] +--rw name -> ../config/name +--rw config | +--rw name? oc-if:base-interface-ref | +--rw enabled? boolean + | +--rw egress-enabled? boolean | +--rw polling-interval? uint16 | +--rw ingress-sampling-rate? uint32 | +--rw egress-sampling-rate? uint32 +--ro state +--ro name? oc-if:base-interface-ref +--ro enabled? boolean + +--ro egress-enabled? boolean +--ro polling-interval? uint16 +--ro ingress-sampling-rate? uint32 +--ro egress-sampling-rate? uint32 +--ro packets-sampled? oc-yang:counter64