Commit 5cac3530 authored by Mohamad Rahhal's avatar Mohamad Rahhal
Browse files

MikrotikDriver:

-Added a debugger
parent fdf9d7c1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -274,6 +274,13 @@ class MikrotikRouterOSDriver(_Driver):
                        )
        
                        if response.status_code >= 400:
                            if resource_key.startswith("/interfaces/ip") and "already have such address" in response.text:
                                LOGGER.info(
                                    "MikroTik already has address for %s; treating as success",
                                    payload.get("address"),
                                )
                                results.append(True)
                                continue
                            LOGGER.error("MikroTik Error (%s): %s", response.status_code, response.text)
        
                        response.raise_for_status()