def verify_vlan_range(vlan_range):
 for vlan_tag in vlan_range:
  if (not is_valid_vlan_tag(vlan_tag)):
   raise_invalid_tag(str(vlan_tag), vlan_range)
 if (vlan_range[1] < vlan_range[0]):
  raise n_exc.NetworkVlanRangeError(vlan_range=vlan_range, error=_('End of VLAN range is less than start of VLAN range'))

def verify_vlan_range ( vlan_range ) : for vlan_tag in vlan_range : if ( not is_valid_vlan_tag ( vlan_tag ) ) : raise_invalid_tag ( str ( vlan_tag ) , vlan_range ) if ( vlan_range [ 1 ] < vlan_range [ 0 ] ) : raise n_exc . NetworkVlanRangeError ( vlan_range = vlan_range , error = _ ( 'End of VLAN range is less than start of VLAN range' ) )
raise an exception for invalid tags or malformed range .