P4RT-5.3: Cisco fix#5650
Conversation
# Conflicts: # feature/p4rt/otg_tests/traceroute_packetin_with_vrf_selection_test/metadata.textproto # feature/p4rt/otg_tests/traceroute_packetin_with_vrf_selection_test/traceroute_packetin_with_vrf_selection_test.go
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 introduces critical fixes and platform-specific adjustments to the P4RT traceroute packet-in test suite. The changes focus on improving test reliability through better packet counting, expanding protocol coverage by supporting both IPv4 and IPv6 P4RT rules, and ensuring compatibility with Cisco hardware through necessary configuration deviations. 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
|
Pull Request Functional Test Report for #5650 / fb5ea4fVirtual Devices
Hardware Devices
|
There was a problem hiding this comment.
Code Review
This pull request introduces several platform-specific deviations and exceptions for CISCO, including single topology requirements for ISIS, interface name usage for IBGP transport, and static ARP overrides. It also refactors packet tracking in packetin_test.go to measure packet differences per flow and loops over IPv4/IPv6 table programming. Feedback on the changes suggests avoiding the use of defer inside the loop in packetin_test.go to prevent resource accumulation and potential linter warnings, recommending sequential programming instead.
…3-cisco-fix # Conflicts: # feature/p4rt/otg_tests/traceroute_packetin_with_vrf_selection_test/traceroute_packetin_with_vrf_selection_test.go
|
/gemini review |
There was a problem hiding this comment.
Code Review
This pull request updates the traceroute packet-in with VRF selection test to support Cisco-specific platform deviations. It adds deviations for ISIS single topology, BGP neighbor transport local address, and GRIBI MAC override with static ARP. Additionally, packetin_test.go is refactored to measure traffic per flow, program both IPv4 and IPv6 ACL entries, and validate TTL/HopLimit based on the Ethernet type. I have no feedback to provide as there are no review comments.
Changes done to fix this test:
rule) and IPv6-in-IPv4 (matched by IPv6 rule) are correctly redirected to the controller.
etherType(IPv4 vs IPv6) instead ofrelying on the hardcoded
isIPv4test parameter.