Skip to content
Snippets Groups Projects
Commit c8e59aed authored by Erik Reid's avatar Erik Reid
Browse files

pep8

parent a1c2e2c1
No related branches found
No related tags found
No related merge requests found
...@@ -59,13 +59,12 @@ def get_netconf_interface_info(router_name: str, ssh_params: dict): ...@@ -59,13 +59,12 @@ def get_netconf_interface_info(router_name: str, ssh_params: dict):
# https://netdevops.me/2020/nokia-yang-tree-and-path-browser/ # https://netdevops.me/2020/nokia-yang-tree-and-path-browser/
# https://github.com/hellt/nokia-yangtree # https://github.com/hellt/nokia-yangtree
_f = etree.Element('filter') _f = etree.Element('filter')
_state = etree.SubElement( _ = etree.SubElement(
_f, _f,
f'{{{STATE_NS}}}state', f'{{{STATE_NS}}}state',
nsmap={'nokia-state': STATE_NS}) nsmap={'nokia-state': STATE_NS})
_endpoint = etree.SubElement(_state, f'{{{STATE_NS}}}{endpoint_type}')
# cf. POL1-799 # cf. POL1-799
# _ = etree.SubElement(_endpoint, f'{{{STATE_NS}}}statistics') # _ = etree.SubElement(_state, f'{{{STATE_NS}}}statistics')
return _f return _f
start = time.time() start = time.time()
...@@ -214,4 +213,4 @@ if __name__ == '__main__': ...@@ -214,4 +213,4 @@ if __name__ == '__main__':
router_name=ROUTERS[0], router_name=ROUTERS[0],
ssh_params=params['nokia']) ssh_params=params['nokia'])
print(interface_counters(raw_counter_docs)) print(interface_counters(raw_counter_docs))
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment