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_designs): GTSM configuration to limit the TTL permitted for bgp peering to 1 for WAN #3607

Merged
merged 6 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Expand Up @@ -127,6 +127,7 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS remote-as 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS remote-as 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,15 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS route-reflector-client
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
neighbor WAN-RR-OVERLAY-PEERS peer group
neighbor WAN-RR-OVERLAY-PEERS remote-as 65000
neighbor WAN-RR-OVERLAY-PEERS update-source Dps1
neighbor WAN-RR-OVERLAY-PEERS bfd
neighbor WAN-RR-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-RR-OVERLAY-PEERS send-community
neighbor WAN-RR-OVERLAY-PEERS maximum-routes 0
neighbor 192.168.131.2 peer group WAN-RR-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,15 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS route-reflector-client
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
neighbor WAN-RR-OVERLAY-PEERS peer group
neighbor WAN-RR-OVERLAY-PEERS remote-as 65000
neighbor WAN-RR-OVERLAY-PEERS update-source Dps1
neighbor WAN-RR-OVERLAY-PEERS bfd
neighbor WAN-RR-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-RR-OVERLAY-PEERS send-community
neighbor WAN-RR-OVERLAY-PEERS maximum-routes 0
neighbor 192.168.131.1 peer group WAN-RR-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS remote-as 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS remote-as 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,7 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS remote-as 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS route-reflector-client
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,13 +287,15 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS route-reflector-client
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
neighbor WAN-RR-OVERLAY-PEERS peer group
neighbor WAN-RR-OVERLAY-PEERS remote-as 65000
neighbor WAN-RR-OVERLAY-PEERS update-source Dps1
neighbor WAN-RR-OVERLAY-PEERS bfd
neighbor WAN-RR-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-RR-OVERLAY-PEERS send-community
neighbor WAN-RR-OVERLAY-PEERS maximum-routes 0
neighbor 6.6.6.6 peer group WAN-RR-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,13 +300,15 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS route-reflector-client
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
neighbor WAN-RR-OVERLAY-PEERS peer group
neighbor WAN-RR-OVERLAY-PEERS remote-as 65000
neighbor WAN-RR-OVERLAY-PEERS update-source Dps1
neighbor WAN-RR-OVERLAY-PEERS bfd
neighbor WAN-RR-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-RR-OVERLAY-PEERS send-community
neighbor WAN-RR-OVERLAY-PEERS maximum-routes 0
neighbor 6.6.6.6 peer group WAN-RR-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ router bgp 65000
neighbor WAN-OVERLAY-PEERS remote-as 65000
neighbor WAN-OVERLAY-PEERS update-source Dps1
neighbor WAN-OVERLAY-PEERS bfd
neighbor WAN-OVERLAY-PEERS ttl maximum-hops 1
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ==
neighbor WAN-OVERLAY-PEERS send-community
neighbor WAN-OVERLAY-PEERS maximum-routes 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
address_family_evpn:
peer_groups:
- name: WAN-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
address_family_evpn:
peer_groups:
- name: WAN-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
route_reflector_client: true
- name: WAN-RR-OVERLAY-PEERS
type: wan
Expand All @@ -35,6 +36,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
address_family_evpn:
peer_groups:
- name: WAN-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
route_reflector_client: true
- name: WAN-RR-OVERLAY-PEERS
type: wan
Expand All @@ -35,6 +36,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
address_family_evpn:
peer_groups:
- name: WAN-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
address_family_evpn:
peer_groups:
- name: WAN-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
address_family_evpn:
peer_groups:
- name: WAN-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
address_family_evpn:
peer_groups:
- name: WAN-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
route_reflector_client: true
address_family_evpn:
peer_groups:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
route_reflector_client: true
- name: WAN-RR-OVERLAY-PEERS
type: wan
Expand All @@ -38,6 +39,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
address_family_evpn:
peer_groups:
- name: WAN-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
route_reflector_client: true
- name: WAN-RR-OVERLAY-PEERS
type: wan
Expand All @@ -38,6 +39,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
address_family_evpn:
peer_groups:
- name: WAN-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ router_bgp:
send_community: all
maximum_routes: 0
remote_as: '65000'
ttl_maximum_hops: 1
address_family_evpn:
peer_groups:
- name: WAN-OVERLAY-PEERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def _peer_groups(self) -> list | None:
peer_group_config = {"remote_as": self.shared_utils.bgp_as}
if self.shared_utils.wan_role:
# WAN OVERLAY peer group
# TODO Add TTL max hop to the peer group on the Pathfinder once agreed upon
peer_group_config["ttl_maximum_hops"] = 1
if self.shared_utils.wan_role == "server":
peer_group_config["route_reflector_client"] = True
peer_groups.append(
Expand All @@ -147,10 +147,12 @@ def _peer_groups(self) -> list | None:
peer_groups.append({**self._generate_base_peer_group("mpls", "rr_overlay_peers"), "remote_as": self.shared_utils.bgp_as})

if self._is_wan_server_with_peers:
wan_rr_overlay_peer_grp_config = {"remote_as": self.shared_utils.bgp_as}
wan_rr_overlay_peer_grp_config["ttl_maximum_hops"] = 1
amitsagar-arsita marked this conversation as resolved.
Show resolved Hide resolved
peer_groups.append(
amitsagar-arsita marked this conversation as resolved.
Show resolved Hide resolved
{
**self._generate_base_peer_group("wan", "wan_rr_overlay_peers", update_source=self.shared_utils.vtep_loopback),
"remote_as": self.shared_utils.bgp_as,
**wan_rr_overlay_peer_grp_config,
}
)

Expand Down
Loading