| 1 | --- |
| 2 | title: ANTA Tests for BGP |
| 3 | hide: |
| 4 | - tags |
| 5 | tags: |
| 6 | - API |
| 7 | - Tests |
| 8 | - Routing |
| 9 | --- |
| 10 | |
| 11 | <!-- |
| 12 | ~ Copyright (c) 2023-2026 Arista Networks, Inc. |
| 13 | ~ Use of this source code is governed by the Apache License 2.0 |
| 14 | ~ that can be found in the LICENSE file. |
| 15 | --> |
| 16 | |
| 17 | !!! info "BGP Test Compatibility Note" |
| 18 | ANTA BGP tests are designed for the `multi-agent` routing protocol model. Starting from EOS 4.30.1F, `service routing protocols models` is set to `multi-agent` by default, and from EOS 4.32.0F it becomes the only supported model. |
| 19 | |
| 20 | The following tests are available for devices using the legacy `ribd` model on earlier EOS versions: |
| 21 | |
| 22 | - `VerifyBGPPeerSessionRibd` |
| 23 | - `VerifyBGPPeersHealthRibd` |
| 24 | |
| 25 | ## Tests |
| 26 | |
| 27 | ::: anta.tests.routing.bgp |
| 28 | |
| 29 | options: |
| 30 | extra: |
| 31 | anta_hide_test_module_description: true |
| 32 | filters: |
| 33 | - "!test" |
| 34 | - "!render" |
| 35 | - "!^_[^_]" |
| 36 | heading_level: 3 |
| 37 | merge_init_into_class: false |
| 38 | show_bases: false |
| 39 | show_labels: true |
| 40 | show_root_heading: false |
| 41 | show_root_toc_entry: false |
| 42 | show_symbol_type_heading: false |
| 43 | show_symbol_type_toc: false |
| 44 | |
| 45 | ## Input models |
| 46 | |
| 47 | ::: anta.input_models.routing.bgp |
| 48 | |
| 49 | options: |
| 50 | extra: |
| 51 | anta_hide_test_module_description: true |
| 52 | filters: |
| 53 | - "!^__init__" |
| 54 | - "!^__str__" |
| 55 | - "!AFI_SAFI_EOS_KEY" |
| 56 | - "!eos_key" |
| 57 | - "!BgpAfi" |
| 58 | heading_level: 3 |
| 59 | merge_init_into_class: false |
| 60 | show_bases: false |
| 61 | show_labels: true |
| 62 | show_root_heading: false |
| 63 | show_root_toc_entry: false |
| 64 | show_symbol_type_heading: false |
| 65 | show_symbol_type_toc: false |