bgpwtf: add q3k's anycast subnet
Change-Id: I66d449c94b27b741e71da047bb1901b8fba6eb80
diff --git a/bgpwtf/machines/edge01.waw.bgp.wtf.nix b/bgpwtf/machines/edge01.waw.bgp.wtf.nix
index cf61bd9..b03606d 100644
--- a/bgpwtf/machines/edge01.waw.bgp.wtf.nix
+++ b/bgpwtf/machines/edge01.waw.bgp.wtf.nix
@@ -172,7 +172,7 @@
'';
hscloud.routing.originate = {
# WAW prefixes, exposed into internet BGP table.
- v4.waw = { table = "internet"; address = "185.236.240.0"; prefixLength = 23; };
+ v4.waw = { table = "internet"; address = "185.236.240.0"; prefixLength = 24; };
v6.waw = { table = "internet"; address = "2a0d:eb00::"; prefixLength = 32; };
# Default gateway via us, exposed into aggregated table.
@@ -325,6 +325,19 @@
reject;
'';
};
+ "waw_q3k" = {
+ description = "AGGREGATE CUSTOMER q3k";
+ table = "internet";
+ local = "185.236.240.64";
+ asn = 204880;
+ neighbors = [
+ { address = "185.236.240.65"; asn = 208521; }
+ ];
+ filterIn = ''
+ if net ~ [ 185.236.241.0/24 ] then accept;
+ reject;
+ '';
+ };
# backup LTE link to edge01.fra
"fra_edge01" = {
description = "IBGP edge01.fra";