clone from danieldin95

This commit is contained in:
sicheng
2022-07-29 23:38:54 +08:00
commit ac4f79bbf4
1931 changed files with 568263 additions and 0 deletions

19
pkg/database/utils.go Executable file
View 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)
}