Use proper function to check for ipaddr and also do not call the module ip set function since its only v4 fro now