A line with an undefined slope is a vertical line. Vertical lines have the same x-coordinate for all points on the line.
Given the point (-1, 1) and the point (v, 6), for the line to be vertical, the x-coordinates of both points must be the same. Since the x-coordinate of the first point is -1, the x-coordinate of the second point (v) must also be -1.
Thus, we have:
\[ v = -1 \]
Therefore, the value of \( v \) is \( -1 \).