'Return true if the port is bound, false otherwise.'

def is_bound(self, context):

    core_plugin = directory.get_plugin()
    self._port = core_plugin.get_port(context, self.port_id)
    return bool(self._port.get(portbindings.HOST_ID))
