Building configuration...

Current configuration:
!
frr version 10.4.1_git
frr defaults traditional
hostname pe1
domainname localdomain
service integrated-vtysh-config
!
ip prefix-list OWN seq 10 permit 192.0.2.0/24
ip prefix-list CUSTOMER-IN seq 10 permit 10.100.0.0/16 le 24
!
route-map FROM-CUSTOMER permit 10
 match ip address prefix-list CUSTOMER-IN
 set community 65000:100
 set local-preference 300
exit
!
route-map FROM-UPSTREAM permit 10
 set community 65000:200
 set local-preference 100
exit
!
route-map TO-UPSTREAM permit 10
 match community CUSTOMER
exit
!
route-map TO-UPSTREAM permit 20
 match ip address prefix-list OWN
exit
!
route-map TO-CUSTOMER permit 10
exit
!
ip route 192.0.2.0/24 blackhole
!
interface eth1
 description to-customer-ce1
 ip address 10.0.1.1/30
exit
!
interface eth2
 description to-upstream-up1
 ip address 10.0.2.1/30
exit
!
interface eth3
 description to-pe2
 ip address 10.0.3.1/30
exit
!
interface lo
 ip address 10.255.0.1/32
exit
!
router bgp 65000
 bgp router-id 10.255.0.1
 neighbor 10.0.1.2 remote-as 65100
 neighbor 10.0.1.2 description ce1
 neighbor 10.0.2.2 remote-as 65200
 neighbor 10.0.2.2 description up1
 neighbor 10.0.3.2 remote-as 65000
 neighbor 10.0.3.2 description pe2
 !
 address-family ipv4 unicast
  network 192.0.2.0/24
  neighbor 10.0.1.2 maximum-prefix 50 restart 1
  neighbor 10.0.1.2 route-map FROM-CUSTOMER in
  neighbor 10.0.1.2 route-map TO-CUSTOMER out
  neighbor 10.0.2.2 route-map FROM-UPSTREAM in
  neighbor 10.0.2.2 route-map TO-UPSTREAM out
  neighbor 10.0.3.2 next-hop-self
 exit-address-family
exit
!
bgp community-list standard CUSTOMER seq 5 permit 65000:100
!
end
