remove cisco sflow deviation - #6052
karthikeya-remilla wants to merge 4 commits into
Conversation
Pull Request Functional Test Report for #6052 / 61378caVirtual Devices
Hardware Devices
|
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 cleans up the codebase by removing a specific Cisco sFlow deviation that is no longer required due to the addition of native feature support. The changes involve updating the metadata definitions, removing associated helper functions, and simplifying the sFlow configuration logic in the plugin layer. 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 removes the sflow_ingress_min_sampling_rate deviation from the metadata protobuf definitions, generated Go code, deviations package, and sflow configuration plugin. In internal/cfgplugins/sflow.go, the ingress sampling rate is now set directly using p.MinSamplingRate. Feedback was provided to add a nil check for the parameter p before accessing its fields to prevent a potential nil pointer dereference and runtime panic.
Removing Cisco's sflow rate deviation as support is now added via feature.
Details are in https://partnerissuetracker.corp.google.com/issues/402672689