From a8bb05ba1ecf97b870d1bb6db4cbb8ff5bcf1ecf Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Wed, 17 Aug 2022 00:50:45 +0100 Subject: [PATCH] blade-router: add ovh --- ops/nixos/lib/bgp.nix | 2 ++ ops/nixos/lib/blade-router.nix | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/ops/nixos/lib/bgp.nix b/ops/nixos/lib/bgp.nix index 46ec0dded0..f2baa8a3f7 100644 --- a/ops/nixos/lib/bgp.nix +++ b/ops/nixos/lib/bgp.nix @@ -312,6 +312,7 @@ in { bgp_ext_community.add((ro, 205479, 5007)); bgp_ext_community.add((ro, 205479, 5008)); bgp_ext_community.add((ro, 205479, 5009)); # fastly from blade-tuvok + bgp_ext_community.add((ro, 205479, 5010)); # ovh from blade-tuvok bgp_ext_community.add((ro, 205479, 6000)); # EMF: EMF-IX Route Server # do not export to clouvider; they do... strange things. @@ -345,6 +346,7 @@ in { bgp_ext_community.add((ro, 205479, 5007)); # google from blade-tuvok bgp_ext_community.add((ro, 205479, 5008)); # cloudflare from blade-tuvok bgp_ext_community.add((ro, 205479, 5009)); # fastly from blade-tuvok + bgp_ext_community.add((ro, 205479, 5010)); # ovh from blade-tuvok bgp_ext_community.add((ro, 205479, 6000)); # EMF: EMF-IX Route Server # do not export to clouvider; they do... strange things. diff --git a/ops/nixos/lib/blade-router.nix b/ops/nixos/lib/blade-router.nix index 93ae3584c7..7e431f9397 100644 --- a/ops/nixos/lib/blade-router.nix +++ b/ops/nixos/lib/blade-router.nix @@ -335,6 +335,25 @@ in prefix_limit.v6 = 250; }; }; + peering.ovh = linx // { + remote = { + asn = 16276; + export_community = 5010; + passive = true; # pending + routers = [{ + enabled = cfg.linx.enable; + v4 = "195.66.224.220"; + v6 = "2001:7f8:4::3f94:1"; + } { + enabled = cfg.linx.enable; + v4 = "195.66.225.6"; + v6 = "2001:7f8:4::3f94:2"; + }]; + }]; + bgp_local_pref = 120; + prefix_limit.v4 = 1000; + prefix_limit.v6 = 200; + }; export.v4 = [ "92.118.28.0/24" ]; export.v6 = [ "2a09:a441::/32" ]; };