Skip to content

fixing remote_syslog_test partially for Nokia by adding deviations#5083

Open
ram-mac wants to merge 2 commits intoopenconfig:mainfrom
ram-mac:remote_sys
Open

fixing remote_syslog_test partially for Nokia by adding deviations#5083
ram-mac wants to merge 2 commits intoopenconfig:mainfrom
ram-mac:remote_sys

Conversation

@ram-mac
Copy link
Contributor

@ram-mac ram-mac commented Feb 12, 2026

Added deviation specific changes that are required for Nokia

@ram-mac ram-mac requested a review from a team as a code owner February 12, 2026 10:07
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @ram-mac, 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 aims to improve the robustness and compatibility of remote syslog tests, particularly for Nokia devices. It introduces necessary platform-specific deviations and refactors the test suite to correctly apply these deviations during interface configuration and cleanup, ensuring that tests run accurately across different network device behaviors. The changes ensure that the test environment correctly reflects the operational characteristics of Nokia platforms when testing remote syslog functionality.

Highlights

  • Nokia Platform Deviations: Added specific platform exceptions for Nokia devices in the metadata.textproto file, including explicit_interface_in_default_vrf, interface_enabled, and static_protocol_name.
  • Remote Syslog Test Adjustments: Modified the remote_syslog_test.go file to incorporate Nokia-specific deviations, adjust packet counts, refine interface configuration and cleanup logic, and update packet capture naming and validation.
  • Test Cleanup and Configuration Logic: Enhanced the test cleanup process to handle VRF-specific interface deletions and introduced conditional logic in configureDUT and configureDUTLoopback functions to apply deviations only when relevant to the default VRF.
Changelog
  • feature/system/logging/otg_tests/remote_syslog/metadata.textproto
    • Added a new platform_exceptions block for the NOKIA vendor.
    • Included explicit_interface_in_default_vrf: true in Nokia deviations.
    • Included interface_enabled: true in Nokia deviations.
    • Included static_protocol_name: "static" in Nokia deviations.
  • feature/system/logging/otg_tests/remote_syslog/remote_syslog_test.go
    • Reduced the totalPackets constant from 30000 to 10000.
    • Modified the configureDUTLoopback function signature to accept a vrfName parameter.
    • Updated the TestRemoteSyslog cleanup logic to conditionally delete interfaces based on VRF and ExplicitInterfaceInDefaultVRF deviation.
    • Added a 30-second sleep after stopping capture in TestRemoteSyslog.
    • Deleted gnmi.OC().System().Logging().Config() during cleanup.
    • Modified configureDUT to conditionally configure the default network instance and assign interfaces based on ExplicitInterfaceInDefaultVRF and vrfName.
    • Modified configureDUTLoopback to conditionally assign the loopback interface to the default network instance based on ExplicitInterfaceInDefaultVRF and vrfName.
    • Renamed the packet capture name from 'sFlowpacketCapture' to 'syslogPacketCapture'.
    • Removed a 30-second time.Sleep call from the processCapture function.
    • Updated validatePackets error message to check for both IPv4 and IPv6 syslog packets and corrected the packet type from 'sflow' to 'syslog'.
Activity
  • No specific activity (comments, reviews, progress updates) was provided in the context for this pull request.
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.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

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.

@OpenConfigBot
Copy link

OpenConfigBot commented Feb 12, 2026

Pull Request Functional Test Report for #5083 / 69ab62f

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
TR-6.1: Remote Syslog feature config
fabb741e Log
Cisco 8000E status
TR-6.1: Remote Syslog feature config
7f77d82d Log
Cisco XRd status
TR-6.1: Remote Syslog feature config
fb2211ec Log
Juniper ncPTX status
TR-6.1: Remote Syslog feature config
de5c3056 Log
Nokia SR Linux status
TR-6.1: Remote Syslog feature config
6abd6e1f Log
Openconfig Lemming status
TR-6.1: Remote Syslog feature config
a6a35497 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

Copy link
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 introduces deviations to support Nokia devices for the remote syslog test. The changes include updating the test logic to handle VRF configurations and cleanup correctly based on the new deviations. Several good bug fixes and clarity improvements were made, such as correcting the packet validation logic and renaming the packet capture. However, there are a few areas for improvement. There is some commented-out code that should be removed, and a significant change to the number of test packets lacks an explanatory comment. Addressing these points will improve the test's robustness and maintainability.

@coveralls
Copy link

coveralls commented Feb 12, 2026

Pull Request Test Coverage Report for Build 21942836214

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 10.114%

Totals Coverage Status
Change from base Build 21941007643: 0.0%
Covered Lines: 2300
Relevant Lines: 22741

💛 - Coveralls

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.

3 participants