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