dheeraj12347 commented on issue #12815:
URL: https://github.com/apache/cloudstack/issues/12815#issuecomment-4089977476

   Hi @UAnton ,
   I’ve added defensive handling in 
OvsTunnelManagerImpl.handleFetchInterfaceAnswer so that the code no longer 
unconditionally casts the first Answer to OvsFetchInterfaceAnswer.
   The method now:
   
   
   Checks for null/empty Answer[].
   
   
   Verifies answers instanceof OvsFetchInterfaceAnswer before casting.
   
   
   Logs a clear warning and returns null when the agent returns 
UnsupportedAnswer (or any non-OvsFetchInterfaceAnswer).
   
   
   Preserves the existing success path when a valid OvsFetchInterfaceAnswer 
with a non-empty IP is returned.
   
   
   The change builds successfully on 4.22 with:
   mvn -pl api,server -am -DskipTests clean install.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to