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(eos_cli_config_gen): Add support for IPv4 BGP Labeled-Unicast (BGP-LU) #4412

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
31814d3
Create initial schema
colinmacgiolla Aug 29, 2024
6c25fb1
Cleanup
colinmacgiolla Aug 29, 2024
afa21dd
Schema updates
colinmacgiolla Aug 29, 2024
ec57854
Fix template
colinmacgiolla Aug 29, 2024
903c6c3
Enhanced testing
colinmacgiolla Aug 29, 2024
6511f26
update molecule outputs
colinmacgiolla Aug 29, 2024
599fb7c
Generate documentation
colinmacgiolla Aug 29, 2024
e5d8044
Add handling for peer-groups
colinmacgiolla Aug 29, 2024
e00a61a
doc update
colinmacgiolla Aug 29, 2024
f75a17b
Peer groups enabled
colinmacgiolla Aug 29, 2024
6ee5a29
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 29, 2024
a285249
fix missing newline
colinmacgiolla Aug 29, 2024
2da951a
Merge branch 'devel' into bgp-labeled-unicast
colinmacgiolla Sep 2, 2024
1e1f0bb
Update generated documentation
colinmacgiolla Sep 2, 2024
0769e1e
Fix cli output
colinmacgiolla Sep 2, 2024
bdd0cab
Merge branch 'devel' into bgp-labeled-unicast
colinmacgiolla Sep 6, 2024
84dc284
Handle include options for bgp missing-policy
colinmacgiolla Sep 6, 2024
cc69907
Fix GR ordering
colinmacgiolla Sep 6, 2024
ed7197d
Apply suggestions from code review
ClausHolbechArista Sep 6, 2024
dbe5a41
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Sep 6, 2024
86a5ca2
Adding new data model for bgp additional paths.
Sep 6, 2024
7e7b458
Merge branch 'devel' into bgp-labeled-unicast
ClausHolbechArista Sep 9, 2024
8d49cbc
Update ansible_collections/arista/avd/molecule/eos_cli_config_gen/inv…
ClausHolbechArista Sep 9, 2024
33e822d
update CI artifacts
ClausHolbechArista Sep 9, 2024
95b869d
Merge branch 'devel' into bgp-labeled-unicast
ClausHolbechArista Sep 13, 2024
8ca9b54
Merge branch 'devel' into bgp-labeled-unicast
gmuloc Sep 13, 2024
d26e42c
Fix tunnel-rib-colored to tunnel-rib colored
Sep 18, 2024
45fd83b
Merge branch 'devel' into bgp-labeled-unicast
laxmikantchintakindi Sep 18, 2024
c44bf4b
Fixing inputs.
Sep 18, 2024
c9f2586
Merge branch 'devel' into bgp-labeled-unicast
gmuloc Sep 18, 2024
52d296e
Merge branch 'devel' into bgp-labeled-unicast
ClausHolbechArista Sep 19, 2024
6a9994e
Apply suggestions from code review
MaheshGSLAB Sep 23, 2024
468fedd
Fix order
Sep 23, 2024
2c29343
Merge branch 'devel' into bgp-labeled-unicast
ClausHolbechArista Sep 24, 2024
0542dcf
Merge branch 'devel' into bgp-labeled-unicast
ClausHolbechArista Sep 25, 2024
9964f6f
Merge branch 'devel' into bgp-labeled-unicast
colinmacgiolla Sep 26, 2024
a1fbf37
Merge branch 'devel' into bgp-labeled-unicast
ClausHolbechArista Sep 27, 2024
93a1b2b
Apply suggestions from code review
ClausHolbechArista Sep 27, 2024
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,106 @@
# router-bgp-ipv4-labeled-unicast

## 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 | - |

#### Router BGP IPv4 Labeled Unicast

##### General Settings

| Settings | Value |
| -------- | ----- |
| Update wait-for-convergence | Enabled |
| Next-hop Unchanged | True |
| Label local-termination | implicit-null |

##### IPv4 BGP-LU Peer-groups

| Peer-group | Activate | Route-map In | Route-map Out | RCF In | RCF Out |
| ---------- | -------- | ------------ | ------------- | ------ | ------- |
| PG-BGP-LU | True | - | - | - | - |

##### IPv4 BGP-LU Neighbors

| Neighbor | Activate | Route-map In | Route-map Out | RCF In | RCF Out |
| -------- | -------- | ------------ | ------------- | ------ | ------- |
| 198.51.100.1 | True | - | - | RCF_TEST(ARGS) | - |
| 198.51.100.2 | False | - | RM_OUT_TEST | - | - |

#### Router BGP Device Configuration

```eos
!
router bgp 65101
!
address-family ipv4 labeled-unicast
update wait-for-convergence
bgp missing-policy include community-list direction in action deny
bgp additional-paths receive
bgp additional-paths send ecmp limit 20
bgp next-hop-unchanged
next-hop resolution ribs tunnel-rib colored system-colored-tunnel-rib tunnel-rib test-rib system-connected
neighbor PG-BGP-LU activate
neighbor 198.51.100.1 activate
neighbor 198.51.100.1 additional-paths receive
neighbor 198.51.100.1 graceful-restart
neighbor 198.51.100.1 rcf in RCF_TEST(ARGS)
neighbor 198.51.100.1 additional-paths send ecmp
neighbor 198.51.100.1 maximum-advertised-routes 0
no neighbor 198.51.100.2 activate
neighbor 198.51.100.2 graceful-restart-helper stale-route route-map RM_STALE
neighbor 198.51.100.2 route-map RM_OUT_TEST out
neighbor 198.51.100.2 next-hop-unchanged
neighbor 198.51.100.2 aigp-session
neighbor 198.51.100.2 multi-path
network 203.0.113.0/25 route-map RM-TEST
network 203.0.113.128/25
label local-termination implicit-null
tunnel source-protocol isis segment-routing
tunnel source-protocol ldp rcf TEST(ARGS)
aigp-session confederation
aigp-session ebgp
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
!
interface Management1
description OOB_MANAGEMENT
vrf MGMT
ip address 10.73.255.122/24
!
router bgp 65101
!
address-family ipv4 labeled-unicast
update wait-for-convergence
bgp missing-policy include community-list direction in action deny
bgp additional-paths receive
bgp additional-paths send ecmp limit 20
bgp next-hop-unchanged
next-hop resolution ribs tunnel-rib colored system-colored-tunnel-rib tunnel-rib test-rib system-connected
neighbor PG-BGP-LU activate
neighbor 198.51.100.1 activate
neighbor 198.51.100.1 additional-paths receive
neighbor 198.51.100.1 graceful-restart
neighbor 198.51.100.1 rcf in RCF_TEST(ARGS)
neighbor 198.51.100.1 additional-paths send ecmp
neighbor 198.51.100.1 maximum-advertised-routes 0
no neighbor 198.51.100.2 activate
neighbor 198.51.100.2 graceful-restart-helper stale-route route-map RM_STALE
neighbor 198.51.100.2 route-map RM_OUT_TEST out
neighbor 198.51.100.2 next-hop-unchanged
neighbor 198.51.100.2 aigp-session
neighbor 198.51.100.2 multi-path
network 203.0.113.0/25 route-map RM-TEST
network 203.0.113.128/25
label local-termination implicit-null
tunnel source-protocol isis segment-routing
tunnel source-protocol ldp rcf TEST(ARGS)
aigp-session confederation
aigp-session ebgp
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
router_bgp:
as: 65101
address_family_ipv4_labeled_unicast:
update_wait_for_convergence: true
aigp_session:
ebgp: true
confederation: true
bgp:
additional_paths:
receive: true
send: ecmp
send_ecmp_limit: 20
missing_policy:
direction_in:
action: deny
ClausHolbechArista marked this conversation as resolved.
Show resolved Hide resolved
include_community_list: true
next_hop_unchanged: true
next_hop_resolution_ribs:
- rib_type: "tunnel-rib-colored"
- rib_type: "tunnel-rib"
rib_name: "test-rib"
- rib_type: "system-connected"
label_local_termination: implicit-null
networks:
- prefix: 203.0.113.0/25
route_map: RM-TEST
- prefix: 203.0.113.128/25
tunnel_source_protocols:
- protocol: isis segment-routing
- protocol: ldp
rcf: TEST(ARGS)
neighbors:
- ip_address: 198.51.100.1
activate: true
additional_paths:
receive: true
send: ecmp
graceful_restart: true
maximum_advertised_routes: 0
rcf_in: RCF_TEST(ARGS)
- ip_address: 198.51.100.2
aigp_session: true
multi_path: true
graceful_restart_helper:
stale_route_map: RM_STALE
next_hop_unchanged: true
route_map_out: RM_OUT_TEST
peer_groups:
- name: PG-BGP-LU
activate: true
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ router-bgp-base
router-bgp-evpn
router-bgp-evpn-vpn-import-pruning
router-bgp-evpn-mpls
router-bgp-ipv4-labeled-unicast
router-bgp-link-state
router-bgp-path-selection
router-bgp-rtc
Expand Down
Loading
Loading