mirror of
https://github.com/luscis/openlan.git
synced 2025-10-06 17:17:00 +08:00
20 lines
321 B
Go
Executable File
20 lines
321 B
Go
Executable File
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)
|
|
}
|