Skip to content

Commit

Permalink
Do a speed change with speed on record when setting media for a port.
Browse files Browse the repository at this point in the history
Signed-off-by: Don Lobete <dlobete@platinasystems.com>
  • Loading branch information
dlobete committed Feb 3, 2017
1 parent 8d5722d commit 6fa4a9f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vnet/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,10 @@ func (hw *HwIf) SetMedia(pi string) (err error) {
err = h.SetMedia(pi)
if err == nil {
hw.media = pi

// In case media is set after speed do a speed change with
// speed on record
err = hw.SetSpeed(hw.speed)
}
return
}
Expand Down

0 comments on commit 6fa4a9f

Please sign in to comment.