Clean code for subnets and hostname in target, target_device is the hostname (or ip) if user enters it
Refactoring code for subnet and ip transparent
fix subnet and workflow conflicts