'Return the device with local_ip on the host.'

def get_local_ip_device(self):

    device = self.ip.get_device_by_ip(self.local_ip)
    if (not device):
        LOG.error(_LE('Tunneling    cannot    be    enabled    without    the    local_ip    bound    to    an    interface    on    the    host.    Please    configure    local_ip    %s    on    the    host    interface    to    be    used    for    tunneling    and    restart    the    agent.'), self.local_ip)
        sys.exit(1)
    return device
