fix canonical ip addr for snmptrap

hosts with bridge interfaces will have that address assigned to $::ipaddress
but that's not the address corresponding to the hostname (e.g. virt2)

Change-Id: Ic3438937e2a778db49684d65071734f2cc19cc19