Skip to content

Update remote_syslog_test.go#5257

Open
AmrNJ wants to merge 1 commit intomainfrom
AmrNJ-patch-3
Open

Update remote_syslog_test.go#5257
AmrNJ wants to merge 1 commit intomainfrom
AmrNJ-patch-3

Conversation

@AmrNJ
Copy link
Copy Markdown
Contributor

@AmrNJ AmrNJ commented Mar 25, 2026

Removing loopback delete as it may disrupt management connectivity.

@AmrNJ AmrNJ marked this pull request as ready for review March 25, 2026 09:37
@AmrNJ AmrNJ requested a review from a team as a code owner March 25, 2026 09:37
@OpenConfigBot
Copy link
Copy Markdown

Pull Request Functional Test Report for #5257 / ec7d852

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
TR-6.1: Remote Syslog feature config
648d8f07 Log
Cisco 8000E status
TR-6.1: Remote Syslog feature config
13ba5ec0 Log
Cisco XRd status
TR-6.1: Remote Syslog feature config
364c448a Log
Juniper ncPTX status
TR-6.1: Remote Syslog feature config
3976cb35 Log
Nokia SR Linux status
TR-6.1: Remote Syslog feature config
42ba9917 Log
Openconfig Lemming status
TR-6.1: Remote Syslog feature config
8d6e6ec7 Log

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
TR-6.1: Remote Syslog feature config
Cisco 8808 status
TR-6.1: Remote Syslog feature config
Juniper PTX10008 status
TR-6.1: Remote Syslog feature config
Nokia 7250 IXR-10e status
TR-6.1: Remote Syslog feature config

Help

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, 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 refines the cleanup procedure for the TestRemoteSyslog test by removing a step that could inadvertently impact network device management. By no longer deleting the loopback interface as part of the test teardown, the change ensures the stability of management connectivity, which is crucial for ongoing device operations.

Highlights

  • Test Cleanup Logic: Removed the deletion of the loopback interface (lb) from the test cleanup function in TestRemoteSyslog to prevent potential disruption of management connectivity.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize 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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. 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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request modifies the remote_syslog_test.go file by removing the cleanup operation for the loopback interface configuration. The feedback highlights that this change could lead to resource leaks and test flakiness, as the loopback interface configuration will persist after the test run. It is suggested that if the loopback interface is system-critical, the configureDUTLoopback function should be adjusted to apply only incremental changes, with corresponding explicit cleanup for those specific changes.

t.Cleanup(func() {
gnmi.Delete(t, dut, gnmi.OC().Interface(p1.Name()).Config())
gnmi.Delete(t, dut, gnmi.OC().Interface(p2.Name()).Config())
gnmi.Delete(t, dut, gnmi.OC().Interface(lb).Config())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Removing the deletion of the loopback interface (lb) from the cleanup function means that any configurations applied to it by configureDUTLoopback will persist after the test. This can lead to resource leaks and potential test flakiness or interference with other tests.

If lb is a system-critical interface that cannot be fully deleted, the configureDUTLoopback function should be modified to only apply incremental changes (e.g., adding specific IP addresses) and the cleanup should then explicitly revert only those specific changes, rather than attempting to replace or delete the entire interface configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants