19 lines
782 B
Python
19 lines
782 B
Python
# Szkielet – do dopisania.
|
||
# Zalecane: librouteros (synch) w executorze lub biblioteka async jeśli użyjesz.
|
||
from typing import Any, Dict, List
|
||
from app.services.mikrotik.client_base import MikroTikClient
|
||
|
||
class MikroTikAPIClient(MikroTikClient):
|
||
def __init__(self, host: str, port: int, username: str, password: str, use_ssl: bool = False):
|
||
self.host = host
|
||
self.port = port
|
||
self.username = username
|
||
self.password = password
|
||
self.use_ssl = use_ssl
|
||
|
||
async def list_interfaces(self) -> List[Dict[str, Any]]:
|
||
raise NotImplementedError("API list_interfaces not implemented")
|
||
|
||
async def monitor_traffic_once(self, iface: str) -> Dict[str, Any]:
|
||
raise NotImplementedError("API monitor_traffic_once not implemented")
|