Skip to content
Snippets Groups Projects
Commit 4d46bff8 authored by David Schmitz's avatar David Schmitz
Browse files

status: status/fodtest_netconf_get: update

parent 65c7252a
Branches
No related tags found
No related merge requests found
...@@ -102,8 +102,8 @@ if $old_version: ...@@ -102,8 +102,8 @@ if $old_version:
if $parsed: if $parsed:
retriever = Retriever(); retriever = Retriever();
device = retriever.fetch_device(); device = retriever.fetch_device();
result = device.routing_options[0].routes; #result = [route.__dict__ for route in device.routing_options[0].routes];
result = [route.__dict__ for route in result]; result = [route.__dict__ for r in device.routing_options for route in r.routes];
#from pprint import pprint #from pprint import pprint
#pprint(result); #pprint(result);
import json import json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment