Skip to content
Snippets Groups Projects
Commit dd3065b3 authored by Release Webservice's avatar Release Webservice
Browse files

Finished release 0.21.

parents cb815aae 03b13361
No related branches found
Tags 0.21
No related merge requests found
......@@ -35,3 +35,4 @@
improved address-to-interface lookup performance
added top-level services to responses
0.20: included both v4 & v6 addresses in peering info
0.21: added parsing of 'logical-systems' (DBOARD3-150)
......@@ -228,13 +228,24 @@ def list_interfaces(netconf_config):
return ifc
def _units(base_name, node):
for u in node.xpath('./unit'):
unit_info = _ifc_info(u)
unit_info['name'] = "%s.%s" % (base_name, unit_info['name'])
yield unit_info
for i in netconf_config.xpath('//configuration/interfaces/interface'):
info = _ifc_info(i)
yield info
for u in i.xpath('./unit'):
unit_info = _ifc_info(u)
unit_info['name'] = "%s.%s" % (info['name'], unit_info['name'])
yield unit_info
for u in _units(info['name'], i):
yield u
for i in netconf_config.xpath(
'//configuration/logical-systems/interfaces/interface'):
name = i.find('name')
assert name is not None, 'expected interface ''name'' child element'
for u in _units(name.text, i):
yield u
def list_bgp_routes(netconf_config):
......
......@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup(
name='inventory-provider',
version="0.20",
version="0.21",
author='GEANT',
author_email='swd@geant.org',
description='Dashboard inventory provider',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment