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

fixing bgp_afi_safi_defaults_test with deviations #3603

Merged
merged 4 commits into from
Nov 23, 2024

Conversation

ram-mac
Copy link
Contributor

@ram-mac ram-mac commented Nov 20, 2024

  1. BGP Neighbor Configuration: The script currently configures both IPv4 and IPv6 address families as "true" for both v4 and v6 BGP peers. The Readme specifies that only the corresponding address family should be set to "true" for each peer type. This is fixed now

  2. BGP Capabilities Verification: The script currently retrieves all capabilities for a neighbor and iterates through them. We should instead only retrieve and check the capabilities for the relevant AFI/SAFI family (IPv4 or IPv6). I have implemented a fix for this as well.
    Cisco does not support GetAll/Wildcard capability for AFI/SAFI and hence added deviation

  3. Test Case: Validate AFI-SAFI OC Defaults at Peer Group Level:
    The argument for BGPv4 peers is incorrectly setting the "isV4Only" parameter to "false."
    This is corrected now.

  4. Validate AFI-SAFI Not Enabled: New subsection added to verify only the BGP session and keep validating BGP capabilities as another subtest.

  5. Enabling the extNh.ExtendedNextHopEncoding
    This feature is enabled by default for Cisco and we do not have to explicitly enable it via OC path.
    Currently added a deviation to set this leaf.

@ram-mac ram-mac requested review from dplore and a team as code owners November 20, 2024 05:51
@ram-mac ram-mac removed the request for review from dplore November 20, 2024 05:51
@OpenConfigBot
Copy link

OpenConfigBot commented Nov 20, 2024

Pull Request Functional Test Report for #3603 / f35a4ac

Virtual Devices

Device Test Test Documentation Job Raw Log
Arista cEOS status
RT-1.23: BGP AFI SAFI OC DEFAULTS
ba333ffb Log
Cisco 8000E status
RT-1.23: BGP AFI SAFI OC DEFAULTS
44b995fe Log
Cisco XRd status
RT-1.23: BGP AFI SAFI OC DEFAULTS
f95e9a97 Log
Juniper ncPTX status
RT-1.23: BGP AFI SAFI OC DEFAULTS
3b4d5728 Log
Nokia SR Linux status
RT-1.23: BGP AFI SAFI OC DEFAULTS
1200eaba Log
Openconfig Lemming status
RT-1.23: BGP AFI SAFI OC DEFAULTS
84384f9a Log

Hardware Devices

Device Test Test Documentation Raw Log
Arista 7808 status
RT-1.23: BGP AFI SAFI OC DEFAULTS
Cisco 8808 status
RT-1.23: BGP AFI SAFI OC DEFAULTS
Juniper PTX10008 status
RT-1.23: BGP AFI SAFI OC DEFAULTS
Nokia 7250 IXR-10e status
RT-1.23: BGP AFI SAFI OC DEFAULTS

Help

@coveralls
Copy link

coveralls commented Nov 20, 2024

Pull Request Test Coverage Report for Build 11964289415

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.268%

Totals Coverage Status
Change from base Build 11944003776: 0.0%
Covered Lines: 1983
Relevant Lines: 3588

💛 - Coveralls

@dplore dplore self-assigned this Nov 20, 2024
…the validation is only required for IPv4 unicast at neighbor level
Copy link
Member

@dplore dplore left a comment

Choose a reason for hiding this comment

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

Thanks for the changes. Couple of suggestions on intent/description update.

The deviation BgpExtendedNextHopEncodingLeafUnsupported should not be added unless we can confirm why it is there. See inline comments.

internal/deviations/deviations.go Outdated Show resolved Hide resolved
internal/deviations/deviations.go Show resolved Hide resolved
dplore
dplore previously approved these changes Nov 21, 2024
@ram-mac ram-mac merged commit 3b0a8a5 into openconfig:main Nov 23, 2024
13 checks passed
ANISH-GOTTAPU pushed a commit to open-traffic-generator/featureprofiles that referenced this pull request Nov 28, 2024
* fixing bgp_afi_safi_defaults_test with deviations

* README modified to add validation for extended nexthop encoding, and the validation is only required for IPv4 unicast at neighbor level

* deviations format fix
alshabib pushed a commit to alshabib/featureprofiles that referenced this pull request Jan 19, 2025
* fixing bgp_afi_safi_defaults_test with deviations

* README modified to add validation for extended nexthop encoding, and the validation is only required for IPv4 unicast at neighbor level

* deviations format fix
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.

4 participants