mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-23 17:03:17 +08:00
cleaning up old grpc functionality
This commit is contained in:
@@ -303,22 +303,6 @@ func WipeLocal(network string) error {
|
||||
|
||||
}
|
||||
|
||||
func WipeGRPCClient() error {
|
||||
home := "/etc/netclient"
|
||||
_ = os.Remove(home + "/netconfig-global-001")
|
||||
|
||||
ipExec, err := exec.LookPath("ip")
|
||||
|
||||
cmdIPLinkDel := &exec.Cmd{
|
||||
Path: ipExec,
|
||||
Args: []string{ipExec, "link", "del", "grpc-wg-001"},
|
||||
Stdout: os.Stdout,
|
||||
Stderr: os.Stdout,
|
||||
}
|
||||
err = cmdIPLinkDel.Run()
|
||||
return err
|
||||
}
|
||||
|
||||
func HasNetwork(network string) bool {
|
||||
|
||||
return FileExists("/etc/systemd/system/netclient-"+network+".timer") ||
|
||||
|
Reference in New Issue
Block a user