@@ -540,8 +540,10 @@ 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, 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 )
543
+ logger .Printf ("[Azure CNS] Configured HostNCApipaEndpoint with ID: %s, Name: %s, Network: %s" ,
544
+ endpoint .Id , endpoint .Name , endpoint .HostComputeNetwork )
545
+ logger .Printf ("[Azure CNS] Endpoint IpConfigurations:%v, Dns:%v, Routes:%v, MacAddress:%s, Flags:%d" ,
546
+ endpoint .IpConfigurations , endpoint .Dns , endpoint .Routes , endpoint .MacAddress , endpoint .Flags )
545
547
546
548
return endpoint , nil
547
549
}
@@ -678,12 +680,14 @@ func deleteEndpointByNameHnsV2(
678
680
}
679
681
680
682
if err = endpoint .Delete (); err != nil {
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 )
683
+ return fmt .Errorf ("Failed to delete endpoint: %s (%s). Error: %v" ,
684
+ endpoint .Name , endpoint .Id , err )
683
685
}
684
686
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 )
687
+ logger .Errorf ("[Azure CNS] Successfully deleted endpoint with ID: %s, Name: %s" ,
688
+ endpoint .Id , endpoint .Name )
689
+ logger .Debugf ("[Azure CNS] Endpoint details - IpConfigurations:%v, Dns:%v, Routes:%v, MacAddress:%s, Flags:%d" ,
690
+ endpoint .IpConfigurations , endpoint .Dns , endpoint .Routes , endpoint .MacAddress , endpoint .Flags )
687
691
688
692
return nil
689
693
}
0 commit comments