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) }
Best answer by GaryB
@Nand
Hello great question. The evaluation you are looking for requires a “glob” match since the string “WAN” can be anywhere in the interface description.