Generates keyword arguments for the Docker client to add a container to a network.

        :param action: Action configuration.
        :type action: ActionConfig
        :param network_name: Network name or id.
        :type network_name: unicode | str
        :param container_name: Container name or id.
        :type container_name: unicode | str
        :param endpoint_config: Network endpoint configuration.
        :type endpoint_config: dockermap.map.input.NetworkEndpoint
        :param kwargs: Additional keyword arguments to complement or override the configuration-based values.
        :type kwargs: dict
        :return: Resulting keyword arguments.
        :rtype: dict

def get_network_connect_kwargs(self, action, network_name, container_name, endpoint_config=None, kwargs=None):
        """
        Generates keyword arguments for the Docker client to add a container to a network.

        :param action: Action configuration.
        :type action: ActionConfig
        :param network_name: Network name or id.
        :type network_name: unicode | str
        :param container_name: Container name or id.
        :type container_name: unicode | str
        :param endpoint_config: Network endpoint configuration.
        :type endpoint_config: dockermap.map.input.NetworkEndpoint
        :param kwargs: Additional keyword arguments to complement or override the configuration-based values.
        :type kwargs: dict
        :return: Resulting keyword arguments.
        :rtype: dict
        """
        c_kwargs = dict(
            container=container_name,
            net_id=network_name,
        )
        if endpoint_config:
            c_kwargs.update(self.get_network_create_endpoint_kwargs(action, endpoint_config))
        update_kwargs(c_kwargs, kwargs)
        return c_kwargs