@@ -332,11 +332,13 @@ func (nw *network) configureHcnEndpoint(epInfo *EndpointInfo) (*hcn.HostComputeE
332332 hcnEndpoint .Policies = append (hcnEndpoint .Policies , endpointPolicy )
333333 }
334334
335+ logger .Info ("epInfo.Routes are" , zap .Any ("epInfo.Routes" , epInfo .Routes ))
335336 for _ , route := range epInfo .Routes {
336337 hcnRoute := hcn.Route {
337338 NextHop : route .Gw .String (),
338339 DestinationPrefix : route .Dst .String (),
339340 }
341+ logger .Info ("endpoint windows" , zap .Any ("hcnRoute" , hcnRoute ))
340342
341343 hcnEndpoint .Routes = append (hcnEndpoint .Routes , hcnRoute )
342344 }
@@ -421,14 +423,14 @@ func (nw *network) createHostNCApipaEndpoint(cli apipaClient, epInfo *EndpointIn
421423
422424// newEndpointImplHnsV2 creates a new endpoint in the network using Hnsv2
423425func (nw * network ) newEndpointImplHnsV2 (cli apipaClient , epInfo * EndpointInfo ) (* endpoint , error ) {
426+ logger .Info ("epInfo routes on newEndpointImplHnsV2" , zap .Any ("epInfo routes" , epInfo .Routes ))
424427 hcnEndpoint , err := nw .configureHcnEndpoint (epInfo )
425428 if err != nil {
426429 logger .Error ("Failed to configure hcn endpoint due to" , zap .Error (err ))
427430 return nil , err
428431 }
429432
430433 // Create the HCN endpoint.
431- logger .Info ("Creating hcn endpoint" , zap .Any ("hcnEndpoint" , hcnEndpoint ), zap .String ("computenetwork" , hcnEndpoint .HostComputeNetwork ))
432434 hnsResponse , err := Hnsv2 .CreateEndpoint (hcnEndpoint )
433435 if err != nil {
434436 return nil , fmt .Errorf ("Failed to create endpoint: %s due to error: %v" , hcnEndpoint .Name , err )
0 commit comments