mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-07-02 22:34:22 +02:00
Backup diff view
This commit is contained in:
parent
c5ec5c0944
commit
7ae6340b02
10 changed files with 341 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue