8000 Feat(eos_cli_config_gen): Add support additional-paths to root context of BGP using new DM by ccsnw · Pull Request #4519 · aristanetworks/avd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feat(eos_cli_config_gen): Add support additional-paths to root context of BGP using new DM #4519

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# router-bgp-additional-paths

## Table of Contents

- [Management](#management)
- [Management Interfaces](#management-interfaces)
- [Routing](#routing)
- [Router BGP](#router-bgp)

## Management

### Management Interfaces

#### Management Interfaces Summary

##### IPv4

| Management Interface | Description | Type | VRF | IP Address | Gateway |
| -------------------- | ----------- | ---- | --- | ---------- | ------- |
| Management1 | OOB_MANAGEMENT | oob | MGMT | 10.73.255.122/24 | 10.73.255.2 |

##### IPv6

| Management Interface | Description | Type | VRF | IPv6 Address | IPv6 Gateway |
| -------------------- | ----------- | ---- | --- | ------------ | ------------ |
| Management1 | OOB_MANAGEMENT | oob | MGMT | - | - |

#### Management Interfaces Device Configuration

```eos
!
interface Management1
description OOB_MANAGEMENT
vrf MGMT
ip address 10.73.255.122/24
```

## Routing

### Router BGP

ASN Notation: asplain

#### Router BGP Summary

| BGP AS | Router ID |
| ------ | --------- |
| 65101 | 192.168.255.42 |

| BGP Tuning |
| ---------- |
| no bgp additional-paths receive |
| bgp additional-paths send ecmp limit 30 |

#### Router BGP Device Configuration

```eos
!
router bgp 65101
router-id 192.168.255.42
no bgp additional-paths receive
bgp additional-paths send ecmp limit 30
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
!
interface Management1
description OOB_MANAGEMENT
vrf MGMT
ip address 10.73.255.122/24
!
router bgp 65101
router-id 192.168.255.42
no bgp additional-paths receive
bgp additional-paths send ecmp limit 30
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### Routing - BGP ###
# Testing for additional-paths new datamodel model
router_bgp:
as: 65101
router_id: 192.168.255.42
bgp:
additional_paths:
receive: false
send: ecmp
send_ecmp_limit: 30
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ router-adaptive-virtual-topology
router-adaptive-virtual-topology-2
router-bfd-1
router-bfd-2
router-bgp-additional-paths
router-bgp-base
router-bgp-evpn
router-bgp-evpn-vpn-import-pruning
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,27 @@ ASN Notation: {{ router_bgp.as_notation | arista.avd.default('asplain') }}
{% if router_bgp.bgp.bestpath.d_path is arista.avd.defined(true) %}
| bgp bestpath d-path |
{% endif %}
{% if router_bgp.bgp.additional_paths.receive is arista.avd.defined(true) %}
| bgp additional-paths receive |
{% endif %}
{% if router_bgp.bgp.additional_paths.receive is arista.avd.defined(false) %}
| no bgp additional-paths receive |
{% endif %}
{% if router_bgp.bgp.additional_paths.send is arista.avd.defined %}
{% if router_bgp.bgp.additional_paths.send is arista.avd.defined('disabled') %}
| no bgp additional-paths send |
{% elif router_bgp.bgp.additional_paths.send is arista.avd.defined('any') %}
| bgp additional-paths send any |
{% elif router_bgp.bgp.additional_paths.send is arista.avd.defined('backup') %}
| bgp additional-paths send backup |
{% elif router_bgp.bgp.additional_paths.send_ecmp_limit is arista.avd.defined and router_bgp.bgp.additional_paths.send is arista.avd.defined('ecmp') %}
| bgp additional-paths send ecmp limit {{ router_bgp.bgp.additional_paths.send_ecmp_limit }} |
{% elif router_bgp.bgp.additional_paths.send is arista.avd.defined('ecmp') %}
| bgp additional-paths send ecmp |
{% elif router_bgp.bgp.additional_paths.send_limit is arista.avd.defined and router_bgp.bgp.additional_paths.send is arista.avd.defined('limit') %}
| bgp additional-paths send {{ router_bgp.bgp.additional_paths.send_limit }} |
{% endif %}
{% endif %}
{% if router_bgp.updates.wait_for_convergence is arista.avd.defined(true) %}
| update wait-for-convergence |
{% endif %}
Expand Down
Loading
Loading
0