Stability of a dislocation : Discrete model