Skip to content

Commit

Permalink
log subnetworks and routes if no subnet can't be suggested
Browse files Browse the repository at this point in the history
  • Loading branch information
JorritSalverda committed Apr 2, 2021
1 parent 58b9639 commit 083fab9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions services/planner/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,18 @@ func (s *service) SuggestSingleNetworkRange(ctx context.Context, rangeConfigs []
}
}

log.Debug().Msg("Showing subnetworks and routes to find conflicts")

log.Debug().Msg("Subnetworks:")
for _, sn := range subnetworks {
log.Debug().Interface("subnetwork", sn).Msg("")
}

log.Debug().Msg("Routes:")
for _, r := range routes {
log.Debug().Interface("route", r).Msg("")
}

return subnetworkRange, fmt.Errorf("All of the possible %v subnets of range %v are already in use", len(availableSubnetworkRanges), rangeConfig.NetworkCIDR)
}

Expand Down

0 comments on commit 083fab9

Please sign in to comment.