Commit 9cf746f1 authored by Mohamad Rahhal's avatar Mohamad Rahhal
Browse files

Merge branch 'feat/365-cttc-new-mikrotik-routeros-sbi-driver-for-l2-evpns' of...

Merge branch 'feat/365-cttc-new-mikrotik-routeros-sbi-driver-for-l2-evpns' of https://labs.etsi.org/rep/tfs/controller into feat/390-cttc-integration-of-spine-leaf-fabric-management
parents 24c20dba 5cac3530
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()