'"Return true if a port can be trunked.'

def can_be_trunked(self, context):

    if (not self.is_bound(context)):
        return True
    trunk_plugin = directory.get_plugin('trunk')
    vif_type = self._port.get(portbindings.VIF_TYPE)
    binding_host = self._port.get(portbindings.HOST_ID)
    host_agent_types = utils.get_agent_types_by_host(context, binding_host)
    drivers = [driver for driver in trunk_plugin.registered_drivers if utils.is_driver_compatible(context, driver, vif_type, host_agent_types)]
    if (len(drivers) > 1):
        raise trunk_exc.TrunkPluginDriverConflict()
    elif (len(drivers) == 1):
        return drivers[0].can_trunk_bound_port
    else:
        return False
