'Create start params'

def get_start_params(self):

    params = {'lxc_conf': self.lxc_conf, 'binds': self.binds, 'port_bindings': self.port_bindings, 'publish_all_ports': self.module.params.get('publish_all_ports'), 'privileged': self.module.params.get('privileged'), 'links': self.links, 'network_mode': self.module.params.get('net')}
    optionals = {}
    for optional_param in ('devices', 'dns', 'volumes_from', 'restart_policy', 'restart_policy_retry', 'pid', 'extra_hosts', 'log_driver', 'cap_add', 'cap_drop', 'read_only', 'log_opt'):
        optionals[optional_param] = self.module.params.get(optional_param)
    if (optionals['devices'] is not None):
        self.ensure_capability('devices')
        params['devices'] = optionals['devices']
    if (optionals['dns'] is not None):
        self.ensure_capability('dns')
        params['dns'] = optionals['dns']
    if (optionals['volumes_from'] is not None):
        self.ensure_capability('volumes_from')
        params['volumes_from'] = optionals['volumes_from']
    if (optionals['restart_policy'] is not None):
        self.ensure_capability('restart_policy')
        params['restart_policy'] = {'Name': optionals['restart_policy']}
        if (params['restart_policy']['Name'] == 'on-failure'):
            params['restart_policy']['MaximumRetryCount'] = optionals['restart_policy_retry']
    if (('pid' in optionals) and (not optionals['pid'])):
        optionals['pid'] = None
    if (optionals['pid'] is not None):
        self.ensure_capability('pid')
        params['pid_mode'] = optionals['pid']
    if (optionals['extra_hosts'] is not None):
        self.ensure_capability('extra_hosts')
        params['extra_hosts'] = optionals['extra_hosts']
    if (optionals['log_driver'] is not None):
        self.ensure_capability('log_driver')
        log_config = docker.utils.LogConfig(type=docker.utils.LogConfig.types.JSON)
        if (optionals['log_opt'] is not None):
            for (k, v) in optionals['log_opt'].iteritems():
                log_config.set_config_value(k, v)
        log_config.type = optionals['log_driver']
        params['log_config'] = log_config
    if (optionals['cap_add'] is not None):
        self.ensure_capability('cap_add')
        params['cap_add'] = optionals['cap_add']
    if (optionals['cap_drop'] is not None):
        self.ensure_capability('cap_drop')
        params['cap_drop'] = optionals['cap_drop']
    if (optionals['read_only'] is not None):
        self.ensure_capability('read_only')
        params['read_only'] = optionals['read_only']
    return params
