From 2095494531784cf9417110cb231d7f9a43686898 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 3 Apr 2024 15:48:16 +0200 Subject: [PATCH] proxmox: only advertise local routes Of course. --- roles/proxmox/templates/frr.conf.j2 | 8 ++++++++ setup.yml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/proxmox/templates/frr.conf.j2 b/roles/proxmox/templates/frr.conf.j2 index 1af1a64..e5dd7f0 100644 --- a/roles/proxmox/templates/frr.conf.j2 +++ b/roles/proxmox/templates/frr.conf.j2 @@ -20,17 +20,25 @@ router bgp {{ asn.asn }} address-family ipv4 unicast redistribute connected route-map loopback neighbor fabric activate + neighbor fabric route-map local out exit-address-family address-family ipv6 unicast redistribute connected route-map loopback neighbor fabric activate + neighbor fabric route-map local out exit-address-family address-family l2vpn evpn neighbor fabric activate + neighbor fabric route-map local out advertise-all-vni exit-address-family +bgp as-path access-list local permit ^$ + route-map loopback permit 1 match interface lo + +route-map local permit 1 + match as-path local diff --git a/setup.yml b/setup.yml index bc0c41b..65ce675 100644 --- a/setup.yml +++ b/setup.yml @@ -3,7 +3,7 @@ - debian - ceph -- hosts: proxmox-rc-* +- hosts: pve-rc-*, pve-lab-* roles: - proxmox