mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-04 00:17:21 +08:00
adding logic for key checks, OS on server
This commit is contained in:
@@ -127,17 +127,6 @@ func IsNetworkDisplayNameUnique(name string) (bool, error) {
|
||||
return isunique, nil
|
||||
}
|
||||
|
||||
// IsMacAddressUnique - checks if mac is unique
|
||||
func IsMacAddressUnique(macaddress string, networkName string) (bool, error) {
|
||||
|
||||
_, err := database.FetchRecord(database.NODES_TABLE_NAME, macaddress+"###"+networkName)
|
||||
if err != nil {
|
||||
return database.IsEmptyRecord(err), err
|
||||
}
|
||||
|
||||
return true, nil
|
||||
}
|
||||
|
||||
// IsKeyValidGlobal - checks if a key is valid globally
|
||||
func IsKeyValidGlobal(keyvalue string) bool {
|
||||
|
||||
|
Reference in New Issue
Block a user