summaryrefslogtreecommitdiffstats
path: root/examples/ncclient/edit_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ncclient/edit_config.py')
-rwxr-xr-xexamples/ncclient/edit_config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/ncclient/edit_config.py b/examples/ncclient/edit_config.py
index 598770738..a1b148f50 100755
--- a/examples/ncclient/edit_config.py
+++ b/examples/ncclient/edit_config.py
@@ -40,6 +40,7 @@ if __name__ == '__main__':
argparser.add_argument('-c', '--commit', help="commits candidate configuration",
action="store_true")
argparser.add_argument('--verbose', help="increase output verbosity", action="store_true")
+ argparser.add_argument('--host', default="localhost", help="host/node for which to write <config> element")
args = argparser.parse_args()
logger = logging.getLogger("hc2vpp.examples.edit_config")
@@ -48,4 +49,4 @@ if __name__ == '__main__':
else:
logging.basicConfig(level=logging.INFO)
- _edit_config(args.config_filename, validate=args.validate, commit=args.commit)
+ _edit_config(args.config_filename, validate=args.validate, commit=args.commit, host=args.host)