Skip to content

Commit

Permalink
Populate template_vars with any items that passed through pydantic fo…
Browse files Browse the repository at this point in the history
…r port_template_* and others ifclass
  • Loading branch information
indy-independence committed Sep 14, 2021
1 parent f54c9a9 commit 3227944
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cnaas_nms/confpush/sync_devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ def populate_device_vars(session, dev: Device,
'peer_ip': None,
'peer_asn': None
})
else:
if_dict = {'indexnum': ifindexnum}
for key, value in intf.items():
if_dict[key] = value
fabric_device_variables['interfaces'].append(if_dict)

for local_if, data in fabric_interfaces.items():
logger.warn(f"Interface {local_if} on device {hostname} not "
"configured as linknet because of wrong ifclass")
Expand Down

0 comments on commit 3227944

Please sign in to comment.