Bug Gateway is '<nil>' in route
@@ -832,6 +832,9 @@ func (v *validator) hasDefaultRoute(c *validationContext) ValidationStatus {
func (v *validator) validateDefaultRoute(routes []*models.Route) bool {
for _, r := range routes {
+ if len(r.Destination) == 0 || len(r.Gateway) == 0 {
+ continue
+ }
dst := net.ParseIP(r.Destination)
if dst == nil {
v.log.Errorf("unable to parse destination IP: %s", r.Destination)
