Skip to content

New deviation for Cisco to decouple usage from existing deviation interface_ref_interface_id_format#5560

Open
karthikeya-remilla wants to merge 5 commits into
openconfig:mainfrom
b4firex:cisco_pbf_new_deviation
Open

New deviation for Cisco to decouple usage from existing deviation interface_ref_interface_id_format#5560
karthikeya-remilla wants to merge 5 commits into
openconfig:mainfrom
b4firex:cisco_pbf_new_deviation

Conversation

@karthikeya-remilla

@karthikeya-remilla karthikeya-remilla commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Goal:
Add one new narrow deviation for policy-forwarding interface keys and migrate Cisco TE/PBR tests that currently misuse interface_ref_interface_id_format for that purpose. Leave the existing interface_ref_interface_id_format name and all other vendors' usages intact.

Changes designed to be backward compatible.

Context for this change: https://partnerissuetracker.corp.google.com/issues/504497643#comment9

Note:
Will add similar changes changes for encap_frr, encap_frr_with_reencap_vrf_test and vrf_policy_driven_te in the existing open PR

@karthikeya-remilla karthikeya-remilla requested review from a team as code owners June 11, 2026 17:05
@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 introduces a specialized deviation to handle interface ID formatting requirements specifically for policy-forwarding. By decoupling this from the generic 'interface_ref_interface_id_format' deviation, the change allows for more granular control over device-specific behavior without impacting other vendors or existing test configurations. The update ensures that Cisco TE/PBR tests can correctly format interface keys as required by the platform.

Highlights

  • New Deviation Added: Introduced a new deviation 'interface_id_format_required_for_policy_forwarding' to decouple policy-forwarding interface key requirements from the existing 'interface_ref_interface_id_format' deviation.
  • Code Migration: Updated multiple test files and internal libraries to utilize the new deviation, ensuring backward compatibility while specifically targeting Cisco TE/PBR test cases.
  • Metadata Updates: Updated relevant metadata.textproto files across various test suites to incorporate the new deviation flag.
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 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 .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 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

  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

OpenConfigBot commented Jun 11, 2026

Copy link
Copy Markdown

Pull Request Functional Test Report for #5560 / e3246b3

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
status
status
status
status
status
status
status
status
status
status
status
status
status
status
TE-11.3: Backup NHG: Actions
TE-3.3: Hierarchical weight resolution
TE-17.1: VRF selection policy driven TE
PF-1.24: Add and remove interface bound to PBF
RT-3.2: Multiple <Protocol, DSCP> Rules for VRF Selection
TE-18.4: ECMP hashing on outer and inner packets with MPLSoUDP encapsulation
TE-3.7: Base Hierarchical NHG Update
TE-16.1: basic encapsulation tests
TE-14.1: gRIBI Scaling
TE-3.31: Hierarchical weight resolution with PBF
TE-18.1: gRIBI MPLS-in-UDP Encapsulation
TE-11.31: Backup NHG: Actions with PBF
TE-11.21: Backup NHG: Multiple NH with PBF
TE-3.1: Base Hierarchical Route Installation
RT-3.1: Policy based VRF selection
Cisco 8000E status
status
status
status
status
status
status
status
status
status
status
status
status
status
status
TE-11.3: Backup NHG: Actions
TE-3.3: Hierarchical weight resolution
TE-17.1: VRF selection policy driven TE
PF-1.24: Add and remove interface bound to PBF
RT-3.2: Multiple <Protocol, DSCP> Rules for VRF Selection
TE-18.4: ECMP hashing on outer and inner packets with MPLSoUDP encapsulation
TE-3.7: Base Hierarchical NHG Update
TE-16.1: basic encapsulation tests
TE-14.1: gRIBI Scaling
TE-3.31: Hierarchical weight resolution with PBF
TE-18.1: gRIBI MPLS-in-UDP Encapsulation
TE-11.31: Backup NHG: Actions with PBF
TE-11.21: Backup NHG: Multiple NH with PBF
TE-3.1: Base Hierarchical Route Installation
RT-3.1: Policy based VRF selection
Cisco XRd status
status
status
status
status
status
status
status
status
status
status
status
status
status
status
TE-11.3: Backup NHG: Actions
TE-3.3: Hierarchical weight resolution
TE-17.1: VRF selection policy driven TE
PF-1.24: Add and remove interface bound to PBF
RT-3.2: Multiple <Protocol, DSCP> Rules for VRF Selection
TE-18.4: ECMP hashing on outer and inner packets with MPLSoUDP encapsulation
TE-3.7: Base Hierarchical NHG Update
TE-16.1: basic encapsulation tests
TE-14.1: gRIBI Scaling
TE-3.31: Hierarchical weight resolution with PBF
TE-18.1: gRIBI MPLS-in-UDP Encapsulation
TE-11.31: Backup NHG: Actions with PBF
TE-11.21: Backup NHG: Multiple NH with PBF
TE-3.1: Base Hierarchical Route Installation
RT-3.1: Policy based VRF selection
Juniper ncPTX status
status
status
status
status
status
status
status
status
status
status
status
status
status
status
TE-11.3: Backup NHG: Actions
TE-3.3: Hierarchical weight resolution
TE-17.1: VRF selection policy driven TE
PF-1.24: Add and remove interface bound to PBF
RT-3.2: Multiple <Protocol, DSCP> Rules for VRF Selection
TE-18.4: ECMP hashing on outer and inner packets with MPLSoUDP encapsulation
TE-3.7: Base Hierarchical NHG Update
TE-16.1: basic encapsulation tests
TE-14.1: gRIBI Scaling
TE-3.31: Hierarchical weight resolution with PBF
TE-18.1: gRIBI MPLS-in-UDP Encapsulation
TE-11.31: Backup NHG: Actions with PBF
TE-11.21: Backup NHG: Multiple NH with PBF
TE-3.1: Base Hierarchical Route Installation
RT-3.1: Policy based VRF selection
Nokia SR Linux status
status
status
status
status
status
status
status
status
status
status
status
status
status
status
TE-11.3: Backup NHG: Actions
TE-3.3: Hierarchical weight resolution
TE-17.1: VRF selection policy driven TE
PF-1.24: Add and remove interface bound to PBF
RT-3.2: Multiple <Protocol, DSCP> Rules for VRF Selection
TE-18.4: ECMP hashing on outer and inner packets with MPLSoUDP encapsulation
TE-3.7: Base Hierarchical NHG Update
TE-16.1: basic encapsulation tests
TE-14.1: gRIBI Scaling
TE-3.31: Hierarchical weight resolution with PBF
TE-18.1: gRIBI MPLS-in-UDP Encapsulation
TE-11.31: Backup NHG: Actions with PBF
TE-11.21: Backup NHG: Multiple NH with PBF
TE-3.1: Base Hierarchical Route Installation
RT-3.1: Policy based VRF selection
Openconfig Lemming status
status
status
status
status
status
status
status
status
status
status
status
status
status
status
TE-11.3: Backup NHG: Actions
TE-3.3: Hierarchical weight resolution
TE-17.1: VRF selection policy driven TE
PF-1.24: Add and remove interface bound to PBF
RT-3.2: Multiple <Protocol, DSCP> Rules for VRF Selection
TE-18.4: ECMP hashing on outer and inner packets with MPLSoUDP encapsulation
TE-3.7: Base Hierarchical NHG Update
TE-16.1: basic encapsulation tests
TE-14.1: gRIBI Scaling
TE-3.31: Hierarchical weight resolution with PBF
TE-18.1: gRIBI MPLS-in-UDP Encapsulation
TE-11.31: Backup NHG: Actions with PBF
TE-11.21: Backup NHG: Multiple NH with PBF
TE-3.1: Base Hierarchical Route Installation
RT-3.1: Policy based VRF selection

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
status
status
status
status
status
status
status
status
status
status
status
status
status
status
TE-11.3: Backup NHG: Actions
TE-3.3: Hierarchical weight resolution
TE-17.1: VRF selection policy driven TE
PF-1.24: Add and remove interface bound to PBF
RT-3.2: Multiple <Protocol, DSCP> Rules for VRF Selection
TE-18.4: ECMP hashing on outer and inner packets with MPLSoUDP encapsulation
TE-3.7: Base Hierarchical NHG Update
TE-16.1: basic encapsulation tests
TE-14.1: gRIBI Scaling
TE-3.31: Hierarchical weight resolution with PBF
TE-18.1: gRIBI MPLS-in-UDP Encapsulation
TE-11.31: Backup NHG: Actions with PBF
TE-11.21: Backup NHG: Multiple NH with PBF
TE-3.1: Base Hierarchical Route Installation
RT-3.1: Policy based VRF selection
Cisco 8808 status
status
status
status
status
status
status
status
status
status
status
status
status
status
status
TE-11.3: Backup NHG: Actions
TE-3.3: Hierarchical weight resolution
TE-17.1: VRF selection policy driven TE
PF-1.24: Add and remove interface bound to PBF
RT-3.2: Multiple <Protocol, DSCP> Rules for VRF Selection
TE-18.4: ECMP hashing on outer and inner packets with MPLSoUDP encapsulation
TE-3.7: Base Hierarchical NHG Update
TE-16.1: basic encapsulation tests
TE-14.1: gRIBI Scaling
TE-3.31: Hierarchical weight resolution with PBF
TE-18.1: gRIBI MPLS-in-UDP Encapsulation
TE-11.31: Backup NHG: Actions with PBF
TE-11.21: Backup NHG: Multiple NH with PBF
TE-3.1: Base Hierarchical Route Installation
RT-3.1: Policy based VRF selection
Juniper PTX10008 status
status
status
status
status
status
status
status
status
status
status
status
status
status
status
TE-11.3: Backup NHG: Actions
TE-3.3: Hierarchical weight resolution
TE-17.1: VRF selection policy driven TE
PF-1.24: Add and remove interface bound to PBF
RT-3.2: Multiple <Protocol, DSCP> Rules for VRF Selection
TE-18.4: ECMP hashing on outer and inner packets with MPLSoUDP encapsulation
TE-3.7: Base Hierarchical NHG Update
TE-16.1: basic encapsulation tests
TE-14.1: gRIBI Scaling
TE-3.31: Hierarchical weight resolution with PBF
TE-18.1: gRIBI MPLS-in-UDP Encapsulation
TE-11.31: Backup NHG: Actions with PBF
TE-11.21: Backup NHG: Multiple NH with PBF
TE-3.1: Base Hierarchical Route Installation
RT-3.1: Policy based VRF selection
Nokia 7250 IXR-10e status
status
status
status
status
status
status
status
status
status
status
status
status
status
status
TE-11.3: Backup NHG: Actions
TE-3.3: Hierarchical weight resolution
TE-17.1: VRF selection policy driven TE
PF-1.24: Add and remove interface bound to PBF
RT-3.2: Multiple <Protocol, DSCP> Rules for VRF Selection
TE-18.4: ECMP hashing on outer and inner packets with MPLSoUDP encapsulation
TE-3.7: Base Hierarchical NHG Update
TE-16.1: basic encapsulation tests
TE-14.1: gRIBI Scaling
TE-3.31: Hierarchical weight resolution with PBF
TE-18.1: gRIBI MPLS-in-UDP Encapsulation
TE-11.31: Backup NHG: Actions with PBF
TE-11.21: Backup NHG: Multiple NH with PBF
TE-3.1: Base Hierarchical Route Installation
RT-3.1: Policy based VRF selection

Help

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

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.

Code Review

This pull request introduces a new deviation interface_id_format_required_for_policy_forwarding and its accessor InterfaceIDFormatRequiredForPolicyForwarding to support devices requiring policy-forwarding interface keys to use the interface name with a subinterface index. This deviation is integrated across various test files and metadata configurations. Feedback on the changes highlights that the new deviation accessor function in internal/deviations/deviations.go is missing a comment containing a URL link to an issue tracker tracking its removal, which violates the repository's deviation guidelines.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread internal/deviations/deviations.go Outdated
@karthikeya-remilla karthikeya-remilla requested a review from AmrNJ June 11, 2026 17:07
@karthikeya-remilla

Copy link
Copy Markdown
Contributor Author

Update: new deviation already added in other TE PRs by me and they are now merged. This PR is only for migrating tests from older interface_ref_interface_id_format to new interface_id_format_required_for_policy_forwarding required for PBR/PBF Cisco usecases.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants