Backup diff view

This commit is contained in:
Eduardo Silva 2024-03-28 19:30:31 -03:00
parent c5ec5c0944
commit 7ae6340b02
10 changed files with 341 additions and 3 deletions

View file

@ -9,6 +9,13 @@ def get_router_features(router_type):
return []
def get_router_backup_file_extension(router_type):
if router_type == 'routeros':
return {'text': 'rsc', 'binary': 'backup'}
else:
return {'text': 'txt', 'binary': 'bin'}
def test_authentication(router_type, address, username, password, sshkey=None):
router_features = get_router_features(router_type)
if 'ssh' in router_features: