In todays video, we are going to look at the basics of working with numbers and booleans in NQE.
Code examples used in video
Check to make sure that the distribution switches that run spanning-tree in a newly acquired DC are running the correct root bridge priority, if not show a violation
rbPri = 5297;
foreach device in network.devices
foreach stpRoot in device.stp.rapidPvst.vlans
where matches(device.name, "sjc*dist*")
select {
violation: rbPri != stpRoot.bridgePriority,
device: device.name,
vlanID: stpRoot.vlanId
}
Any questions or comments, post them in the comments below