From d4a157bcb55f80dbf1b0daf060fa71caa7675e7e Mon Sep 17 00:00:00 2001 From: rahkumar651991 Date: Tue, 17 Nov 2020 10:37:15 +0530 Subject: [PATCH 1/2] options in get-config rpc needs to be updated --- lib/jnpr/jsnapy/snap.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/jnpr/jsnapy/snap.py b/lib/jnpr/jsnapy/snap.py index aaa2cf01..490543e6 100755 --- a/lib/jnpr/jsnapy/snap.py +++ b/lib/jnpr/jsnapy/snap.py @@ -269,6 +269,10 @@ def run_rpc(self, test_file, t, formats, dev, output_file, hostname, db): # "Taking snapshot of RPC: %s" % # rpc, # extra=self.log_detail) + options_rpc = {'format': reply_format} + if 'options' in kwargs: + options_rpc.update(kwargs['options']) + kwargs.pop('options') rpc_reply = getattr( dev.rpc, rpc.replace( From 4ee427f0eca385916410a3e2cb5a631b9e84d017 Mon Sep 17 00:00:00 2001 From: rahkumar651991 Date: Tue, 17 Nov 2020 10:40:58 +0530 Subject: [PATCH 2/2] options in get-config rpc needs to be updated --- lib/jnpr/jsnapy/snap.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/jnpr/jsnapy/snap.py b/lib/jnpr/jsnapy/snap.py index 490543e6..2ba428a5 100755 --- a/lib/jnpr/jsnapy/snap.py +++ b/lib/jnpr/jsnapy/snap.py @@ -278,8 +278,7 @@ def run_rpc(self, test_file, t, formats, dev, output_file, hostname, db): rpc.replace( '-', '_'))( - options={ - 'format': reply_format}, + options=options_rpc, **kwargs) else: self.logger_snap.error(