Skip to content

Commit

Permalink
Ignore invalid ofport returned in ovsdb query
Browse files Browse the repository at this point in the history
  • Loading branch information
gkvijay committed Aug 31, 2017
1 parent 21fd7ee commit 832f1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ovsd/ovsdbDriver.go
Original file line number Diff line number Diff line change
Expand Up @@ -839,7 +839,7 @@ func (d *OvsdbDriver) GetOfpPortNo(intfName string) (uint32, error) {

if err == nil && len(row) > 0 && len(row[0].Rows) > 0 {
value := row[0].Rows[0]["ofport"]
if reflect.TypeOf(value).Kind() == reflect.Float64 {
if value != -1 && reflect.TypeOf(value).Kind() == reflect.Float64 {
//retry few more time. Due to asynchronous call between
//port creation and populating ovsdb entry for the interface
//may not be populated instantly.
Expand Down

0 comments on commit 832f1ac

Please sign in to comment.