Add square brackets for ipv6 based hosts
Add square brackets for ipv6 based hosts

Closes-Bug: #1364837
Change-Id: I8f9702377cc049b74622c2db847ffac3ba946b3a

ozamiatin/oslo.messaging,ozamiatin/oslo.messaging,dukhlov/oslo.messaging,dukhlov/oslo.messaging,hkumarmk/oslo.messaging,stevei101/oslo.messaging,zhurongze/oslo.messaging,stevei101/oslo.messaging,dims/oslo.messaging,zhurongze/oslo.messaging,isyippee/oslo.messaging,dims/oslo.messaging,hkumarmk/oslo.messaging,apporc/oslo.messaging,magic0704/oslo.messaging,magic0704/oslo.messaging,isyippee/oslo.messaging,apporc/oslo.messaging