@@ -592,7 +592,8 @@ func CreateHostNCApipaEndpoint(
592
592
}
593
593
594
594
if endpoint != nil {
595
- logger .Debugf ("[Azure CNS] Found existing endpoint: %+v" , endpoint )
595
+ logger .Debugf ("[Azure CNS] Found existing endpoint with ID: %s, Name: %s, Network: %s" ,
596
+ endpoint .Id , endpoint .Name , endpoint .HostComputeNetwork )
596
597
return endpoint .Id , nil
597
598
}
598
599
@@ -616,14 +617,18 @@ func CreateHostNCApipaEndpoint(
616
617
return "" , err
617
618
}
618
619
619
- logger .Printf ("[Azure CNS] Creating HostNCApipaEndpoint for host container connectivity: %+v" , endpoint )
620
+ logger .Printf ("[Azure CNS] Creating HostNCApipaEndpoint with ID: %s, Name: %s, Network: %s" ,
621
+ endpoint .Id , endpoint .Name , endpoint .HostComputeNetwork )
620
622
if endpoint , err = endpoint .Create (); err != nil {
621
623
err = fmt .Errorf ("Failed to create HostNCApipaEndpoint: %s. Error: %v" , endpointName , err )
622
624
logger .Errorf ("[Azure CNS] %s" , err .Error ())
623
625
return "" , err
624
626
}
625
627
626
- logger .Printf ("[Azure CNS] Successfully created HostNCApipaEndpoint: %+v" , endpoint )
628
+ logger .Printf ("[Azure CNS] Successfully created HostNCApipaEndpoint with ID: %s, Name: %s, Network: %s" ,
629
+ endpoint .Id , endpoint .Name , endpoint .HostComputeNetwork )
630
+ logger .Debugf ("[Azure CNS] Endpoint details - IpConfigurations:%v, Dns:%v, Routes:%v, MacAddress:%s, Flags:%d" ,
631
+ endpoint .IpConfigurations , endpoint .Dns , endpoint .Routes , endpoint .MacAddress , endpoint .Flags )
627
632
628
633
return endpoint .Id , nil
629
634
}
@@ -697,7 +702,7 @@ func deleteEndpointByNameHnsV2(
697
702
}
698
703
699
704
if err = endpoint .Delete (); err != nil {
700
- return fmt .Errorf ("%w: %s (%s): %w " ,
705
+ return fmt .Errorf ("%w: %s (%s): %v " ,
701
706
ErrDeleteEndpoint , endpoint .Name , endpoint .Id , err )
702
707
}
703
708
0 commit comments