Skip to main content

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ย ๐Ÿ‘‡๐Ÿป

Be the first to reply!