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

feat(anta.tests): Add new BGP tests #381

Merged
merged 8 commits into from
Sep 13, 2023

Conversation

carl-baillargeon
Copy link
Contributor

@carl-baillargeon carl-baillargeon commented Sep 8, 2023

Description

  • Add the following BGP tests:
anta.tests.routing:
  bgp:
    - VerifyBGPPeerCount:
        address_families:
          - afi: "evpn"
            num_peers: 2
          - afi: "ipv4"
            safi: "unicast"
            vrf: "PROD"
            num_peers: 2
          - afi: "ipv4"
            safi: "unicast"
            vrf: "default"
            num_peers: 3
          - afi: "ipv4"
            safi: "unicast"
            vrf: "all"
            num_peers: 5
          - afi: "ipv4"
            safi: "multicast"
            vrf: "DEV"
            num_peers: 3

    - VerifyBGPPeersHealth:
        address_families:
          - afi: "evpn"
          - afi: "ipv4"
            safi: "unicast"
            vrf: "default"
          - afi: "ipv6"
            safi: "unicast"
            vrf: "DEV"
    
    - VerifyBGPSpecificPeer:
        address_families:
          - afi: "evpn"
            peers:
              - 10.1.0.1
              - 10.1.0.2
          - afi: "ipv4"
            safi: "unicast"
            peers:
              - 10.1.254.1
              - 10.1.255.0
              - 10.1.255.2
              - 10.1.255.4

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have run pre-commit for code linting and typing (pre-commit run)
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes (tox -e testenv)
  • Add a note to existing BGP tests for deprecation in a future release

@carl-baillargeon carl-baillargeon marked this pull request as draft September 10, 2023 13:09
anta/decorators.py Outdated Show resolved Hide resolved
anta/decorators.py Outdated Show resolved Hide resolved
@carl-baillargeon carl-baillargeon changed the title feat(anta.tests)!: Update BGP IPv4 test feat(anta.tests): Add new BGP tests Sep 11, 2023
@carl-baillargeon carl-baillargeon marked this pull request as ready for review September 11, 2023 21:31
docs/advanced_usages/custom-tests.md Outdated Show resolved Hide resolved
anta/tests/routing/bgp.py Show resolved Hide resolved
anta/tests/routing/bgp.py Show resolved Hide resolved
@gmuloc gmuloc merged commit 8b10fef into aristanetworks:main Sep 13, 2023
17 checks passed
@carl-baillargeon carl-baillargeon deleted the feat/bgp-tests branch May 18, 2024 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants