Add OpenWRT support

This commit is contained in:
Eduardo Silva 2024-04-10 13:33:10 -03:00
parent f7d31f6ba3
commit a74d43cf3f
3 changed files with 64 additions and 14 deletions

View file

@ -14,6 +14,8 @@ def get_router_features(router_type):
def get_router_backup_file_extension(router_type):
if router_type == 'routeros':
return {'text': 'rsc', 'binary': 'backup'}
elif router_type == 'openwrt':
return {'text': 'txt', 'binary': 'tar.gz'}
else:
return {'text': 'txt', 'binary': 'bin'}