Skip to content

Commit

Permalink
Convert NHs to string explicitly
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
  • Loading branch information
BarbarossaTM committed Aug 22, 2023
1 parent 9b6aeee commit 38e7126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions route/static.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ func (s *StaticPath) String() string {
return "path not present."
}

return fmt.Sprintf("Next hop: %s", s.NextHop)
return fmt.Sprintf("Next hop: %s", s.NextHop.String())
}

// Print all known information about a route in human readable form
func (s *StaticPath) Print() string {
buf := &strings.Builder{}

fmt.Fprintf(buf, "\t\tNext hop: %s\n", s.NextHop)
fmt.Fprintf(buf, "\t\tNext hop: %s\n", s.NextHop.String())

return buf.String()
}
Expand Down

0 comments on commit 38e7126

Please sign in to comment.