I want to create a custom interface description nqe query in Forward Networks.
Requirement is to getting only WAN, INT interfaces information through the query. I have used below logic through it i am not getting the results. Please help me out.
foreach device in network.devices
foreach interface in device.interfaces
let platform = device.platform
where interface.description=="WAN"
select {
deviceName: device.name,
Location: device.locationName,
Tags: device.tagNames,
Vendor: platform.vendor,
Model: platform.model,
interfaceName: interface.name,
description: interface.description,
operStatus: interface.operStatus,
adminStatus: interface.adminStatus,
cdpNeighborsCount: length(interface.cdp.neighbors),
lldpNeighborsCount: length(interface.lldp.neighbors)
}