mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
routes for different OSs should be handled, cleaned up apply conf
This commit is contained in:
@@ -20,3 +20,7 @@ func deleteRoute(iface string, addr *net.IPNet, address string) error {
|
||||
_, err = ncutils.RunCmd(fmt.Sprintf("ip route del %s dev %s", addr.String(), iface), true)
|
||||
return err
|
||||
}
|
||||
|
||||
func setCidr(iface, address string, addr *net.IPNet) {
|
||||
ncutils.RunCmd("ip -4 route add "+addr.String()+" dev "+iface, false)
|
||||
}
|
||||
|
Reference in New Issue
Block a user