Removed interface manipulation via os.Exec into

rtnetlink calls
This commit is contained in:
Tim Beatham
2023-11-07 19:48:53 +00:00
parent 4c19ebd81f
commit 1a864b7c80
15 changed files with 618 additions and 99 deletions

View File

@@ -32,6 +32,7 @@ func getMeshManager() *MeshManagerImpl {
IPAllocator: &ip.ULABuilder{},
InterfaceManipulator: &wg.WgInterfaceManipulatorStub{},
ConfigApplyer: &MeshConfigApplyerStub{},
RouteManager: &RouteManagerStub{},
})
return manager
@@ -186,7 +187,7 @@ func TestLeaveMeshDeletesMesh(t *testing.T) {
err = manager.LeaveMesh(meshId)
if err != nil {
t.Error(err)
t.Fatalf("%s", err.Error())
}
_, exists := manager.Meshes[meshId]