|
|
@@ -152,6 +152,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["a"].Subnet},
|
|
|
hostnames: []string{"a"},
|
|
|
privateIPs: []net.IP{nodes["a"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w1,
|
|
|
},
|
|
|
{
|
|
|
@@ -163,6 +164,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["b"].Subnet, nodes["c"].Subnet},
|
|
|
hostnames: []string{"b", "c"},
|
|
|
privateIPs: []net.IP{nodes["b"].InternalIP.IP, nodes["c"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil, nil},
|
|
|
wireGuardIP: w2,
|
|
|
allowedLocationIPs: nodes["b"].AllowedLocationIPs,
|
|
|
},
|
|
|
@@ -175,6 +177,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["d"].Subnet},
|
|
|
hostnames: []string{"d"},
|
|
|
privateIPs: nil,
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w3,
|
|
|
},
|
|
|
},
|
|
|
@@ -203,6 +206,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["a"].Subnet},
|
|
|
hostnames: []string{"a"},
|
|
|
privateIPs: []net.IP{nodes["a"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w1,
|
|
|
},
|
|
|
{
|
|
|
@@ -214,6 +218,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["b"].Subnet, nodes["c"].Subnet},
|
|
|
hostnames: []string{"b", "c"},
|
|
|
privateIPs: []net.IP{nodes["b"].InternalIP.IP, nodes["c"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil, nil},
|
|
|
wireGuardIP: w2,
|
|
|
allowedLocationIPs: nodes["b"].AllowedLocationIPs,
|
|
|
},
|
|
|
@@ -226,6 +231,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["d"].Subnet},
|
|
|
hostnames: []string{"d"},
|
|
|
privateIPs: nil,
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w3,
|
|
|
},
|
|
|
},
|
|
|
@@ -254,6 +260,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["a"].Subnet},
|
|
|
hostnames: []string{"a"},
|
|
|
privateIPs: []net.IP{nodes["a"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w1,
|
|
|
},
|
|
|
{
|
|
|
@@ -265,6 +272,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["b"].Subnet, nodes["c"].Subnet},
|
|
|
hostnames: []string{"b", "c"},
|
|
|
privateIPs: []net.IP{nodes["b"].InternalIP.IP, nodes["c"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil, nil},
|
|
|
wireGuardIP: w2,
|
|
|
allowedLocationIPs: nodes["b"].AllowedLocationIPs,
|
|
|
},
|
|
|
@@ -277,6 +285,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["d"].Subnet},
|
|
|
hostnames: []string{"d"},
|
|
|
privateIPs: nil,
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w3,
|
|
|
},
|
|
|
},
|
|
|
@@ -305,6 +314,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["a"].Subnet},
|
|
|
hostnames: []string{"a"},
|
|
|
privateIPs: []net.IP{nodes["a"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w1,
|
|
|
},
|
|
|
{
|
|
|
@@ -316,6 +326,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["b"].Subnet},
|
|
|
hostnames: []string{"b"},
|
|
|
privateIPs: []net.IP{nodes["b"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w2,
|
|
|
allowedLocationIPs: nodes["b"].AllowedLocationIPs,
|
|
|
},
|
|
|
@@ -328,6 +339,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["c"].Subnet},
|
|
|
hostnames: []string{"c"},
|
|
|
privateIPs: []net.IP{nodes["c"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w3,
|
|
|
},
|
|
|
{
|
|
|
@@ -339,6 +351,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["d"].Subnet},
|
|
|
hostnames: []string{"d"},
|
|
|
privateIPs: nil,
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w4,
|
|
|
},
|
|
|
},
|
|
|
@@ -367,6 +380,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["a"].Subnet},
|
|
|
hostnames: []string{"a"},
|
|
|
privateIPs: []net.IP{nodes["a"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w1,
|
|
|
},
|
|
|
{
|
|
|
@@ -378,6 +392,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["b"].Subnet},
|
|
|
hostnames: []string{"b"},
|
|
|
privateIPs: []net.IP{nodes["b"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w2,
|
|
|
allowedLocationIPs: nodes["b"].AllowedLocationIPs,
|
|
|
},
|
|
|
@@ -390,6 +405,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["c"].Subnet},
|
|
|
hostnames: []string{"c"},
|
|
|
privateIPs: []net.IP{nodes["c"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w3,
|
|
|
},
|
|
|
{
|
|
|
@@ -401,6 +417,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["d"].Subnet},
|
|
|
hostnames: []string{"d"},
|
|
|
privateIPs: nil,
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w4,
|
|
|
},
|
|
|
},
|
|
|
@@ -429,6 +446,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["a"].Subnet},
|
|
|
hostnames: []string{"a"},
|
|
|
privateIPs: []net.IP{nodes["a"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w1,
|
|
|
},
|
|
|
{
|
|
|
@@ -440,6 +458,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["b"].Subnet},
|
|
|
hostnames: []string{"b"},
|
|
|
privateIPs: []net.IP{nodes["b"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w2,
|
|
|
allowedLocationIPs: nodes["b"].AllowedLocationIPs,
|
|
|
},
|
|
|
@@ -452,6 +471,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["c"].Subnet},
|
|
|
hostnames: []string{"c"},
|
|
|
privateIPs: []net.IP{nodes["c"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w3,
|
|
|
},
|
|
|
{
|
|
|
@@ -463,6 +483,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["d"].Subnet},
|
|
|
hostnames: []string{"d"},
|
|
|
privateIPs: nil,
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w4,
|
|
|
},
|
|
|
},
|
|
|
@@ -491,6 +512,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["a"].Subnet},
|
|
|
hostnames: []string{"a"},
|
|
|
privateIPs: []net.IP{nodes["a"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w1,
|
|
|
},
|
|
|
{
|
|
|
@@ -502,6 +524,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["b"].Subnet},
|
|
|
hostnames: []string{"b"},
|
|
|
privateIPs: []net.IP{nodes["b"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w2,
|
|
|
allowedLocationIPs: nodes["b"].AllowedLocationIPs,
|
|
|
},
|
|
|
@@ -514,6 +537,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["c"].Subnet},
|
|
|
hostnames: []string{"c"},
|
|
|
privateIPs: []net.IP{nodes["c"].InternalIP.IP},
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w3,
|
|
|
},
|
|
|
{
|
|
|
@@ -525,6 +549,7 @@ func TestNewTopology(t *testing.T) {
|
|
|
cidrs: []*net.IPNet{nodes["d"].Subnet},
|
|
|
hostnames: []string{"d"},
|
|
|
privateIPs: nil,
|
|
|
+ cniCompatibilityIPs: []*net.IPNet{nil},
|
|
|
wireGuardIP: w4,
|
|
|
},
|
|
|
},
|