add checking for interface state to the ns_IPaddr2

Change-Id: I5bd493ac1b661e6c7bf98b3c5659045de1e97c3e
Closes-bug: #1311749
Closes-bug: #1323277
Merge "add checking for interface state to the ns_IPaddr2"