@@ -35,7 +35,7 @@ import (
3535 "time"
3636
3737 "github.com/avast/retry-go"
38- uuid "github.com/nu7hatch/gouuid "
38+ uuid "github.com/satori/go.uuid "
3939
4040 "github.com/skydive-project/skydive/config"
4141 "github.com/skydive-project/skydive/graffiti/graph"
@@ -194,29 +194,20 @@ func (probe *OfctlProbe) parseEvent(line string) (Event, error) {
194194// prefix is a unique string per bridge using bridge and host names.
195195func fillRawUUID (rule * RawRule , prefix string ) {
196196 id := prefix + rule .Filter + "-" + strconv .Itoa (rule .Table )
197- u , err := uuid .NewV5 (uuid .NamespaceOID , []byte (id ))
198- if err == nil {
199- rule .UUID = u .String ()
200- }
197+ rule .UUID = uuid .NewV5 (uuid .NamespaceOID , id ).String ()
201198}
202199
203200// fillRawUUID Generates a unique UUID for the rule
204201// prefix is a unique string per bridge using bridge and host names.
205202func fillUUID (rule * jsonof.JSONRule , prefix string ) {
206203 id := prefix + rule .RawFilter + "-" + strconv .Itoa (rule .Table ) + "-" + strconv .Itoa (rule .Priority )
207- u , err := uuid .NewV5 (uuid .NamespaceOID , []byte (id ))
208- if err == nil {
209- rule .UUID = u .String ()
210- }
204+ rule .UUID = uuid .NewV5 (uuid .NamespaceOID , id ).String ()
211205}
212206
213207// Generate a unique UUID for the group
214208func fillGroupUUID (group * jsonof.JSONGroup , prefix string ) {
215209 id := prefix + "-" + strconv .Itoa (int (group .GroupID ))
216- u , err := uuid .NewV5 (uuid .NamespaceOID , []byte (id ))
217- if err == nil {
218- group .UUID = u .String ()
219- }
210+ group .UUID = uuid .NewV5 (uuid .NamespaceOID , id ).String ()
220211}
221212
222213func makeFilter (rule * RawRule ) string {
0 commit comments