diff options
author | John Estabrook <jestabro@vyos.io> | 2023-12-12 22:26:47 -0600 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2023-12-16 20:37:11 -0600 |
commit | d127d853066ba713046a67e0e400300a89880e8e (patch) | |
tree | 400b8615b3dd8f678a55822b2fec03bfd2762dc8 /src/helpers | |
parent | cfa2aeb73110e257fe6adde74c1f1240d35e2a32 (diff) | |
download | vyos-1x-d127d853066ba713046a67e0e400300a89880e8e.tar.gz vyos-1x-d127d853066ba713046a67e0e400300a89880e8e.zip |
image-tools: T5821: restore vrf-aware add system image
(cherry picked from commit 90f2d9865051b00290dd5b7328a046e823b658dc)
Diffstat (limited to 'src/helpers')
-rwxr-xr-x | src/helpers/simple-download.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/helpers/simple-download.py b/src/helpers/simple-download.py new file mode 100755 index 000000000..501af75f5 --- /dev/null +++ b/src/helpers/simple-download.py @@ -0,0 +1,20 @@ +#!/usr/bin/env python3 + +import sys +from argparse import ArgumentParser +from vyos.remote import download + +parser = ArgumentParser() +parser.add_argument('--local-file', help='local file', required=True) +parser.add_argument('--remote-path', help='remote path', required=True) + +args = parser.parse_args() + +try: + download(args.local_file, args.remote_path, + check_space=True, raise_error=True) +except Exception as e: + print(e) + sys.exit(1) + +sys.exit() |