Added check to ensure interface type is set.

Added check to ensure interface type is set.