Add check in 'state' command to give correct address type.
Add check in 'state' command to give correct address type.

opentechinstitute/commotiond,opentechinstitute/commotiond,opentechinstitute/commotiond