change checks before route adding to not only check for default gateway (test missing)

This commit is contained in:
Pascal Fischer
2023-06-09 12:35:57 +02:00
parent a0296f7839
commit 3ef33874b1
2 changed files with 100 additions and 14 deletions

View File

@ -2,14 +2,20 @@ package routemanager
import (
"fmt"
"github.com/netbirdio/netbird/iface"
"github.com/pion/transport/v2/stdnet"
"github.com/stretchr/testify/require"
"net"
"net/netip"
"testing"
"github.com/pion/transport/v2/stdnet"
"github.com/stretchr/testify/require"
"github.com/netbirdio/netbird/iface"
)
// func TestAddRoute(t *testing.T) {
// addToRouteTableIfNoExists()
// }
func TestAddRemoveRoutes(t *testing.T) {
testCases := []struct {
name string