Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P42710
CloudLB Eqiad Example Conf
Active
Public
Actions
Authored by
cmooney
on Dec 14 2022, 4:33 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
None
Referenced Files
F35864290: CloudLB Eqiad Example Conf
Dec 14 2022, 4:33 PM
2022-12-14 16:33:32 (UTC+0)
Subscribers
None
router id 172.20.186.10; # This should be unique IP of system, cloud-private here but doesn't matter as long as unique.
protocol device {
scan time 10;
}
define LOOPBACK_VIPS = [
185.15.56.0/23{32,32}
];
filter DIRECT_IN {
if net ~ LOOPBACK_VIPS then {
accept;
}
}
filter CLOUD_OUT_PRI {
if proto = "DIRECT" && net ~ LOOPBACK_VIPS then {
accept;
}
}
filter CLOUD_OUT_SEC {
if proto = "DIRECT" && net ~ LOOPBACK_VIPS then {
bgp_path.prepend(64712);
bgp_path.prepend(64712);
bgp_path.prepend(64712);
accept;
}
}
protocol direct DIRECT {
ipv4 {
import filter DIRECT_IN;
};
}
protocol kernel KERNEL {
scan time 10;
ipv4 {
import none;
export where source = RTS_BGP;
};
learn;
}
protocol bfd BFD {
interface "*" {
interval 300 ms;
multiplier 3;
};
}
protocol bgp CLOUDSW1_C8 {
bfd yes;
ipv4 {
import all;
export filter CLOUD_OUT_PRI; ### This should be CLOUD_OUT_PRI or CLOUD_OUT_SEC depending on host's role
};
local as 64712; ### Should be ok to hard-code, need to confirm ok to use within netops
neighbor 172.20.186.1 as 64710 external; ### IP and ASN is for cloudsw1-eqiad, will vary between switches
}
Event Timeline
cmooney
created this paste.
Dec 14 2022, 4:33 PM
2022-12-14 16:33:32 (UTC+0)
cmooney
mentioned this in
T324992: cloudlb: create PoC on codfw
.
Dec 14 2022, 4:36 PM
2022-12-14 16:36:34 (UTC+0)
Log In to Comment