From f1118a9a04ea5847db3f83f3160f639600e1bd3f Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Thu, 19 Jan 2023 09:29:37 +0000 Subject: [PATCH] cofractal-ams01: support v4-on-v6 + ENH --- ops/nixos/cofractal-ams01/default.nix | 2 ++ ops/nixos/lib/bgp.nix | 1 + 2 files changed, 3 insertions(+) diff --git a/ops/nixos/cofractal-ams01/default.nix b/ops/nixos/cofractal-ams01/default.nix index 334e0cb8b6..3a83074591 100644 --- a/ops/nixos/cofractal-ams01/default.nix +++ b/ops/nixos/cofractal-ams01/default.nix @@ -146,10 +146,12 @@ routerID = "199.19.152.160"; }; export.v4 = [ ]; + export.v6 = [ "2a09:a446:1337::/48" ]; peering.cofractal = { local = local // { v6 = "2a09:a446:1337:ffff::10"; }; + v4onv6 = true; remote = { asn = 26073; export_community = 6000; diff --git a/ops/nixos/lib/bgp.nix b/ops/nixos/lib/bgp.nix index c3dab57294..0d6c56b5eb 100644 --- a/ops/nixos/lib/bgp.nix +++ b/ops/nixos/lib/bgp.nix @@ -98,6 +98,7 @@ let import all; export ${if ix.remote.is_route_collector then "all" else "filter bgp_export_${ixName}4"}; ${prefixLimitSnippet ix.remote.prefix_limit.v4} + extended next hop; }; ''} ipv6 {