Skip to content

Commit

Permalink
Added Ipv4 device ip to support Junos irb interface requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
pboers1988 committed Dec 3, 2021
1 parent 4d97023 commit e1635d6
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 e1635d6

Please sign in to comment.