first commit
This commit is contained in:
19
backend/app/services/mikrotik/client_ssh.py
Normal file
19
backend/app/services/mikrotik/client_ssh.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Szkielet – do dopisania.
|
||||
# Zalecane: asyncssh + komenda:
|
||||
# /interface/monitor-traffic interface=ether1 once
|
||||
# i parsowanie wyjścia.
|
||||
from typing import Any, Dict, List
|
||||
from app.services.mikrotik.client_base import MikroTikClient
|
||||
|
||||
class MikroTikSSHClient(MikroTikClient):
|
||||
def __init__(self, host: str, port: int, username: str, password: str):
|
||||
self.host = host
|
||||
self.port = port
|
||||
self.username = username
|
||||
self.password = password
|
||||
|
||||
async def list_interfaces(self) -> List[Dict[str, Any]]:
|
||||
raise NotImplementedError("SSH list_interfaces not implemented")
|
||||
|
||||
async def monitor_traffic_once(self, iface: str) -> Dict[str, Any]:
|
||||
raise NotImplementedError("SSH monitor_traffic_once not implemented")
|
||||
Reference in New Issue
Block a user