Debug messages. Squashed Add Route bugs and few others.

This commit is contained in:
Milos Gajdos
2019-06-18 18:33:05 +01:00
parent 2674294cbe
commit d3525ebab3
4 changed files with 91 additions and 6 deletions

View File

@@ -10,6 +10,18 @@ const (
ClosestMatch
)
// String returns human representation of LookupPolicy
func (lp LookupPolicy) String() string {
switch lp {
case DiscardNoRoute:
return "DISCARD"
case ClosestMatch:
return "CLOSEST"
default:
return "UNKNOWN"
}
}
// QueryOption sets routing table query options
type QueryOption func(*QueryOptions)