diff options
Diffstat (limited to 'tests/topotests/lib/common_config.py')
| -rw-r--r-- | tests/topotests/lib/common_config.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/tests/topotests/lib/common_config.py b/tests/topotests/lib/common_config.py index 3f70dbddf7..a7d8b2c9b5 100644 --- a/tests/topotests/lib/common_config.py +++ b/tests/topotests/lib/common_config.py @@ -225,17 +225,9 @@ def run_frr_cmd(rnode, cmd, isjson=False): if cmd: ret_data = rnode.vtysh_cmd(cmd, isjson=isjson) - if True: - if isjson: - print_data = json.dumps(ret_data) - else: - print_data = ret_data - logger.info( - "Output for command [%s] on router %s:\n%s", - cmd, - rnode.name, - print_data, - ) + if isjson: + rnode.vtysh_cmd(cmd.rstrip("json"), isjson=False) + return ret_data else: |
