Skip to content
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

SFLOW-1: loopback sub-interface index and handling of source-address when configuring sflow collector #3445

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

sgirishj
Copy link
Contributor

  1. Parametrized the loopback sub-interface index; in Juniper's case, loopback sub-interface 0 is typically already configured/present on the device, so reusing that number. For other vendors, left the index as 1 (no change from before).

  2. Removed the defer func where a part of the config used in the test was cleaned up (the NetworkInstance config block). Cleaning up just a part of the config ends up leaving unresolved dependencies behind, causing errors. Also, cleanup of config is typically not done by the tests anyway.

  3. Added support in sflow.go func NewSFlowCollector() to take v4 and v6 source addresses as arguments, to be used when creating the collector instead of picking the address from the loopback interface For vendors that don't support update of source address, picking the source address from the loopback interface is used (no change from before).

@sgirishj sgirishj requested a review from a team as a code owner September 20, 2024 23:42
@OpenConfigBot
Copy link

OpenConfigBot commented Sep 20, 2024

Pull Request Functional Test Report for #3445 / dfa8cb5

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
SFLOW-1: sFlow Configuration and Sampling
26ce5a46 Log
Cisco 8000E status
SFLOW-1: sFlow Configuration and Sampling
25834393 Log
Cisco XRd status
SFLOW-1: sFlow Configuration and Sampling
a811ce34 Log
Juniper ncPTX status
SFLOW-1: sFlow Configuration and Sampling
b28af0e9 Log
Nokia SR Linux status
SFLOW-1: sFlow Configuration and Sampling
bd50613c Log
Openconfig Lemming status
SFLOW-1: sFlow Configuration and Sampling
2b7bb208 Log

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
SFLOW-1: sFlow Configuration and Sampling
Cisco 8808 status
SFLOW-1: sFlow Configuration and Sampling
Juniper PTX10008 status
SFLOW-1: sFlow Configuration and Sampling
Nokia 7250 IXR-10e status
SFLOW-1: sFlow Configuration and Sampling

Help

@coveralls
Copy link

coveralls commented Sep 20, 2024

Pull Request Test Coverage Report for Build 10967717593

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 55.314%

Totals Coverage Status
Change from base Build 10956306422: 0.0%
Covered Lines: 1983
Relevant Lines: 3585

💛 - Coveralls

@dplore
Copy link
Member

dplore commented Sep 24, 2024

/fptest virtual

@self-maurya self-maurya merged commit 3177cd5 into openconfig:main Sep 24, 2024
13 checks passed
@sgirishj sgirishj deleted the sflow1-2-1 branch September 24, 2024 04:38
ANISH-GOTTAPU pushed a commit to open-traffic-generator/featureprofiles that referenced this pull request Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants