summaryrefslogtreecommitdiff
path: root/tests/topotests/example-test/__init__.py
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@gmail.com>2017-06-28 15:30:44 -0300
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-11-27 20:22:11 -0500
commita40daddc4c7c3e0f30f2a136a9ae9165e351bcdc (patch)
tree71f4669a0abfe1a15964558b08834c7624980b06 /tests/topotests/example-test/__init__.py
parent09e21b44879ea05365d56feca6ce35a8c1753a63 (diff)
topogen: added JSON output support for vtysh_cmd
Allow vtysh_cmd() to convert JSON output to Python data structures. This feature will be used to get vtysh JSON outputs for tests comparsions. Usage example: ```py router = get_topogen().gears['r1'] json_output = router.vtysh_cmd('show ip ospf json', isjson=True) json_cmp(json_output, {'important_key': 'important_value'}) ```
Diffstat (limited to 'tests/topotests/example-test/__init__.py')
0 files changed, 0 insertions, 0 deletions