@@ -540,7 +540,8 @@ func configureHostNCApipaEndpoint(
540
540
541
541
endpoint .IpConfigurations = append (endpoint .IpConfigurations , ipConfiguration )
542
542
543
- logger .Printf ("[Azure CNS] Configured HostNCApipaEndpoint with ID: %s, Name: %s, Network: %s" , endpoint .Id , endpoint .Name , endpoint .HostComputeNetwork )
543
+ logger .Printf ("[Azure CNS] Configured HostNCApipaEndpoint with ID: %s, Name: %s, Network: %s, IpConfigurations:%v, Dns:%v, Routes:%v, MacAddress:%s, Flags:%d" ,
544
+ endpoint .Id , endpoint .Name , endpoint .HostComputeNetwork , endpoint .IpConfigurations , endpoint .Dns , endpoint .Routes , endpoint .MacAddress , endpoint .Flags )
544
545
545
546
return endpoint , nil
546
547
}
@@ -677,10 +678,12 @@ func deleteEndpointByNameHnsV2(
677
678
}
678
679
679
680
if err = endpoint .Delete (); err != nil {
680
- return fmt .Errorf ("Failed to delete endpoint: %s (%s). Error: %v" , endpoint .Name , endpoint .Id , err )
681
+ return fmt .Errorf ("Failed to delete endpoint: %s (%s). Error: %v. IpConfigurations:%v, Dns:%v, Routes:%v, MacAddress:%s, Flags:%d" ,
682
+ endpoint .Name , endpoint .Id , err , endpoint .IpConfigurations , endpoint .Dns , endpoint .Routes , endpoint .MacAddress , endpoint .Flags )
681
683
}
682
684
683
- logger .Errorf ("[Azure CNS] Successfully deleted endpoint with ID: %s, Name: %s" , endpoint .Id , endpoint .Name )
685
+ logger .Errorf ("[Azure CNS] Successfully deleted endpoint with ID: %s, Name: %s, IpConfigurations:%v, Dns:%v, Routes:%v, MacAddress:%s, Flags:%d" ,
686
+ endpoint .Id , endpoint .Name , endpoint .IpConfigurations , endpoint .Dns , endpoint .Routes , endpoint .MacAddress , endpoint .Flags )
684
687
685
688
return nil
686
689
}
0 commit comments