From 2c632e28d2072c024ebbf3eba5c83169c0a4ab04 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Tue, 31 Aug 2021 12:12:44 +0000 Subject: [PATCH] blade-tuvok: switch from ECMP to metrics --- ops/nixos/blade-tuvok/default.nix | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/ops/nixos/blade-tuvok/default.nix b/ops/nixos/blade-tuvok/default.nix index 9bd71953b0..2033c84918 100644 --- a/ops/nixos/blade-tuvok/default.nix +++ b/ops/nixos/blade-tuvok/default.nix @@ -167,15 +167,25 @@ in { protocol static export4 { ipv4 {}; - route 92.118.30.0/24 - via 92.118.30.0 weight 1 bfd # Virgin Media - via 92.118.30.2 weight 2 bfd; # EE + route 92.118.30.0/24 via 92.118.30.0 bfd { + # Virgin Media + preference = 100; + }; + route 92.118.30.0/24 via 92.118.30.2 bfd { + # EE + preference = 10; + }; }; protocol static export6 { ipv6 {}; - route 2a09:a443::/32 - via 2a09:a442::1:1 weight 1 bfd # Virgin Media - via 2a09:a442::2:1 weight 2 bfd; # EE + route 2a09:a443::/32 via 2a09:a442::1:1 bfd { + # Virgin Media + preference = 100; + }; + route 2a09:a443::/32 via 2a09:a442::2:1 bfd { + # EE + preference = 10; + }; }; protocol bfd {