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
Branches
Tags
No related merge requests found
...@@ -35,3 +35,4 @@ ...@@ -35,3 +35,4 @@
improved address-to-interface lookup performance improved address-to-interface lookup performance
added top-level services to responses added top-level services to responses
0.20: included both v4 & v6 addresses in peering info 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): ...@@ -228,13 +228,24 @@ def list_interfaces(netconf_config):
return ifc 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'): for i in netconf_config.xpath('//configuration/interfaces/interface'):
info = _ifc_info(i) info = _ifc_info(i)
yield info yield info
for u in i.xpath('./unit'): for u in _units(info['name'], i):
unit_info = _ifc_info(u) yield u
unit_info['name'] = "%s.%s" % (info['name'], unit_info['name'])
yield unit_info 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): def list_bgp_routes(netconf_config):
......
...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages ...@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name='inventory-provider', name='inventory-provider',
version="0.20", version="0.21",
author='GEANT', author='GEANT',
author_email='swd@geant.org', author_email='swd@geant.org',
description='Dashboard inventory provider', description='Dashboard inventory provider',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment