def raise_invalid_tag(vlan_str, vlan_range):
 raise n_exc.NetworkVlanRangeError(vlan_range=vlan_range, error=(_('%s is not a valid VLAN tag') % vlan_str))

def raise_invalid_tag ( vlan_str , vlan_range ) : raise n_exc . NetworkVlanRangeError ( vlan_range = vlan_range , error = ( _ ( '%s is not a valid VLAN tag' ) % vlan_str ) )
raise an exception for invalid tag .