From 7584605e6ae7b06c9078ff47c85e4447fb6ccfc9 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Fri, 28 May 2021 17:08:18 +0200
Subject: [PATCH] added addresses to response

---
 inventory_provider/routes/lnetd.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inventory_provider/routes/lnetd.py b/inventory_provider/routes/lnetd.py
index 581fa5d5..8edd6d4a 100644
--- a/inventory_provider/routes/lnetd.py
+++ b/inventory_provider/routes/lnetd.py
@@ -105,8 +105,8 @@ def _load_router_interfaces(hostname):
                 yield {
                     'hostname': router,
                     'interface': ifc['name'],
-                    'ipv4': [],
-                    'ipv6': []
+                    'ipv4': ifc['ipv4'],
+                    'ipv6': ifc['ipv6']
                 }
 
     base_key_pattern = f'netconf:{hostname}*' if hostname else 'netconf:*'
-- 
GitLab