Skip to content

Commit

Permalink
Merge pull request #241 from workfloworchestrator/add-ipv4-addr-todis…
Browse files Browse the repository at this point in the history
…t-mgmt

Added the device IPv4 address in the response for management domains on the distribution layer.
  • Loading branch information
indy-independence authored Dec 3, 2021
2 parents 4d97023 + e1635d6 commit 1516524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cnaas_nms/confpush/sync_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1516524

Please sign in to comment.