mirror of
https://github.com/luscis/openlan.git
synced 2025-10-06 17:17:00 +08:00
clone from danieldin95
This commit is contained in:
19
pkg/database/utils.go
Executable file
19
pkg/database/utils.go
Executable file
@@ -0,0 +1,19 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
"github.com/luscis/openlan/pkg/libol"
|
||||
"github.com/ovn-org/libovsdb/ovsdb"
|
||||
)
|
||||
|
||||
func PrintError(result []ovsdb.OperationResult) {
|
||||
for _, ret := range result {
|
||||
if len(ret.Error) == 0 {
|
||||
continue
|
||||
}
|
||||
libol.Info("%s", ret.Details)
|
||||
}
|
||||
}
|
||||
|
||||
func GenUUID() string {
|
||||
return libol.GenRandom(32)
|
||||
}
|
Reference in New Issue
Block a user