nixos/estuary: Fix missing routes from own AS
This commit is contained in:
parent
97de7f4f49
commit
7df91a6243
@ -1,6 +1,7 @@
|
|||||||
{ lib, pkgs, config, assignments, allAssignments, ... }:
|
{ lib, pkgs, config, assignments, allAssignments, ... }:
|
||||||
let
|
let
|
||||||
securebitSpace = "2a0e:97c0:4d0::/44";
|
securebitSpace = "2a0e:97c0:4d0::/44";
|
||||||
|
amsnet6 = "2a0e:97c0:4d2::/48";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
config = {
|
config = {
|
||||||
@ -11,17 +12,16 @@ in
|
|||||||
config = ''
|
config = ''
|
||||||
define OWNAS = 211024;
|
define OWNAS = 211024;
|
||||||
define OWNIP4 = ${assignments.internal.ipv4.address};
|
define OWNIP4 = ${assignments.internal.ipv4.address};
|
||||||
define OWNNETSET4 = [${assignments.internal.ipv4.address}/32];
|
define OWNNETSET4 = [ ${assignments.internal.ipv4.address}/32 ];
|
||||||
|
|
||||||
define OWNIP6 = ${assignments.internal.ipv6.address};
|
|
||||||
define OWNNET6 = ${securebitSpace};
|
|
||||||
define OWNNETSET6 = [${securebitSpace}+];
|
|
||||||
#define TRANSSET6 = [::1/128];
|
|
||||||
|
|
||||||
define INTNET6 = 2a0e:97c0:4df::/48;
|
define INTNET6 = 2a0e:97c0:4df::/48;
|
||||||
define AMSNET6 = 2a0e:97c0:4d2::/48;
|
define AMSNET6 = ${amsnet6};
|
||||||
define HOMENET6 = 2a0e:97c0:4d0::/48;
|
define HOMENET6 = 2a0e:97c0:4d0::/48;
|
||||||
|
|
||||||
|
define OWNIP6 = ${assignments.internal.ipv6.address};
|
||||||
|
define OWNNETSET6 = [ ${amsnet6} ];
|
||||||
|
#define TRANSSET6 = [ ::1/128 ];
|
||||||
|
|
||||||
define DUB1IP6 = 2a0e:97c0:4df:0:2::1;
|
define DUB1IP6 = 2a0e:97c0:4df:0:2::1;
|
||||||
|
|
||||||
#function should_export6() {
|
#function should_export6() {
|
||||||
@ -95,6 +95,7 @@ in
|
|||||||
template bgp base_bgp4 {
|
template bgp base_bgp4 {
|
||||||
local as OWNAS;
|
local as OWNAS;
|
||||||
direct;
|
direct;
|
||||||
|
allow local as;
|
||||||
ipv4 {
|
ipv4 {
|
||||||
export none;
|
export none;
|
||||||
};
|
};
|
||||||
@ -115,6 +116,8 @@ in
|
|||||||
template bgp base_bgp6 {
|
template bgp base_bgp6 {
|
||||||
local as OWNAS;
|
local as OWNAS;
|
||||||
direct;
|
direct;
|
||||||
|
# So we can see routes we announce from other routers
|
||||||
|
allow local as;
|
||||||
ipv6 {
|
ipv6 {
|
||||||
export filter bgp_export;
|
export filter bgp_export;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user