From e1635d6d5d6c800bdc14a2114b4ffda7f8eb14c7 Mon Sep 17 00:00:00 2001 From: Peter Boers Date: Fri, 3 Dec 2021 11:19:55 +0100 Subject: [PATCH] Added Ipv4 device ip to support Junos irb interface requirements --- src/cnaas_nms/confpush/sync_devices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cnaas_nms/confpush/sync_devices.py b/src/cnaas_nms/confpush/sync_devices.py index 418ba2e7..2df08351 100644 --- a/src/cnaas_nms/confpush/sync_devices.py +++ b/src/cnaas_nms/confpush/sync_devices.py @@ -303,7 +303,8 @@ def populate_device_vars(session, dev: Device, 'ipv4_gw': mgmtdom.ipv4_gw, 'vlan': mgmtdom.vlan, 'description': mgmtdom.description, - 'esi_mac': mgmtdom.esi_mac + 'esi_mac': mgmtdom.esi_mac, + 'ipv4_ip': str(mgmtdom.device_a_ip) if hostname == mgmtdom.device_a.hostname else str(mgmtdom.device_b_ip) }) # populate evpn peers data for neighbor_d in get_evpn_peers(session, settings):