chore(router02/networking): Update routes syntax

This commit is contained in:
sinavir 2024-11-19 12:38:14 +01:00
parent 5bc548944a
commit 3e6719c684
No known key found for this signature in database

View file

@ -40,18 +40,14 @@
};
routes = [
{
routeConfig = {
Destination = "::/0";
Table = "he";
Scope = "global";
};
Destination = "::/0";
Table = "he";
Scope = "global";
}
{
# Use HE tunnel for router trafic as well
routeConfig = {
Destination = "::/0";
Scope = "global";
};
Destination = "::/0";
Scope = "global";
}
];
routingPolicyRules = [
@ -82,41 +78,31 @@
};
routes = [
{
routeConfig = {
Gateway = "2a0b:cbc0:1::215";
PreferredSource = "2a0e:e701:1120::1";
};
Gateway = "2a0b:cbc0:1::215";
PreferredSource = "2a0e:e701:1120::1";
}
{
# Local route
routeConfig = {
Table = "mwan";
Destination = "2a0e:e701:1120::/64";
};
Table = "mwan";
Destination = "2a0e:e701:1120::/64";
}
{
# Default unreachable route for unattributed prefixes of our /48
routeConfig = {
Table = "mwan";
Metric = 9999;
Destination = "2a0e:e701:1120::/48";
Type = "unreachable";
};
Table = "mwan";
Metric = 9999;
Destination = "2a0e:e701:1120::/48";
Type = "unreachable";
}
{
routeConfig = {
Table = "mwan";
Gateway = "2a0b:cbc0:1::215";
PreferredSource = "2a0e:e701:1120::1";
};
Table = "mwan";
Gateway = "2a0b:cbc0:1::215";
PreferredSource = "2a0e:e701:1120::1";
}
# IPv4
{
routeConfig = {
Scope = "global";
Table = "mwan";
Gateway = "10.1.1.49";
};
Scope = "global";
Table = "mwan";
Gateway = "10.1.1.49";
}
];
routingPolicyRules = [
@ -165,10 +151,8 @@
];
routes = [
{
routeConfig = {
Table = "mwan";
Destination = "2a0e:e701:1120:1000::/64";
};
Table = "mwan";
Destination = "2a0e:e701:1120:1000::/64";
}
];
};
@ -188,11 +172,9 @@
];
routes = [
{
routeConfig = {
Table = "he";
Scope = "global";
Destination = "2001:470:1f13:187::/64";
};
Table = "he";
Scope = "global";
Destination = "2001:470:1f13:187::/64";
}
];
};