class APIError(Exception): def __init__(self, message, category = -1): self.message = message self.category = category def __str__(self): return repr(self.message) class ApiRos: """ Routeros api """ def __init__(self, ip): sk = socket.socket(socket.AF_INET, socket.SOCK...