Added code to handle violations and devices in isolation VLAN.

Some modifications to handle violations.