Skip to content

Commit d5639d2

Browse files
committed
add log for cidrs
1 parent 272f829 commit d5639d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cns/middlewares/k8sSwiftV2.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
264264
if err != nil {
265265
return nil, nil, errors.Wrapf(err, "failed to parse infraVNETCIDRs")
266266
}
267+
log.Printf("Received infraVNETCIDRsv4: %v, infraVNETCIDRsv6: %v", infraVNETCIDRs, infraVNETCIDRsv6)
267268

268269
// Get and parse podCIDRs from env
269270
podCIDRs, err := configuration.PodCIDRs()
@@ -274,6 +275,7 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
274275
if err != nil {
275276
return nil, nil, errors.Wrapf(err, "failed to parse podCIDRs")
276277
}
278+
log.Printf("Received podCIDRsV4: %v, podCIDRv6: %v", podCIDRsV4, podCIDRv6)
277279

278280
// Get and parse serviceCIDRs from env
279281
serviceCIDRs, err := configuration.ServiceCIDRs()
@@ -284,6 +286,7 @@ func (k *K8sSWIFTv2Middleware) GetCidrs() (v4IPs, v6IPs []string, err error) {
284286
if err != nil {
285287
return nil, nil, errors.Wrapf(err, "failed to parse serviceCIDRs")
286288
}
289+
log.Printf("Received ServiceCIDRsv4: %v, ServiceCIDRsv6: %v", serviceCIDRsV4, serviceCIDRsV6)
287290

288291
v4IPs = append(v4IPs, infraVNETCIDRsv4...)
289292
v4IPs = append(v4IPs, podCIDRsV4...)

0 commit comments

Comments
 (0)