def load_config(self, config: str, replace: bool=False, **kwargs: Any) -> ScrapliCfgResponse:
    '\n        Load configuration to a device\n\n        Supported kwargs:\n            auto_clean: automatically "clean" any data that would be in a configuration from a\n                "get_config" operation that would prevent loading a config -- for example, things\n                like the "Building Configuration" lines in IOSXE output, etc.. Defaults to `True`\n\n        Args:\n            config: string of the configuration to load\n            replace: replace the configuration or not, if false configuration will be loaded as a\n                merge operation\n            kwargs: additional kwargs that the implementing classes may need for their platform,\n                see above for iosxe supported kwargs\n\n        Returns:\n            ScrapliCfgResponse: response object\n\n        Raises:\n            N/A\n\n        '
    if (kwargs.get('auto_clean', True) is True):
        config = self.clean_config(config=config)
    response = self._pre_load_config(config=config)
    config = self._prepare_load_config(config=config, replace=replace)
    filesystem_bytes_available = self._get_filesystem_space_available()
    self._space_available(filesystem_bytes_available=filesystem_bytes_available)
    original_return_char = self.conn.comms_return_char
    tcl_comms_return_char = '\r'
    self.conn.acquire_priv(desired_priv='tclsh')
    self.conn.comms_return_char = tcl_comms_return_char
    config_result = self.conn.send_config(config=config, privilege_level='tclsh')
    self.conn.acquire_priv(desired_priv=self.conn.default_desired_privilege_level)
    self.conn.comms_return_char = original_return_char
    return self._post_load_config(response=response, scrapli_responses=[config_result])
Load configuration to a device

Supported kwargs:
    auto_clean: automatically "clean" any data that would be in a configuration from a
        "get_config" operation that would prevent loading a config -- for example, things
        like the "Building Configuration" lines in IOSXE output, etc.. Defaults to `True`

Args:
    config: string of the configuration to load
    replace: replace the configuration or not, if false configuration will be loaded as a
        merge operation
    kwargs: additional kwargs that the implementing classes may need for their platform,
        see above for iosxe supported kwargs

Returns:
    ScrapliCfgResponse: response object

Raises:
    N/A
def load_config(self, config: str, replace: bool=False, **kwargs: Any) -> ScrapliCfgResponse:
    '\n        Load configuration to a device\n\n        Supported kwargs:\n            auto_clean: automatically "clean" any data that would be in a configuration from a\n                "get_config" operation that would prevent loading a config -- for example, things\n                like the "Building Configuration" lines in IOSXE output, etc.. Defaults to `True`\n\n        Args:\n            config: string of the configuration to load\n            replace: replace the configuration or not, if false configuration will be loaded as a\n                merge operation\n            kwargs: additional kwargs that the implementing classes may need for their platform,\n                see above for iosxe supported kwargs\n\n        Returns:\n            ScrapliCfgResponse: response object\n\n        Raises:\n            N/A\n\n        '
    if (kwargs.get('auto_clean', True) is True):
        config = self.clean_config(config=config)
    response = self._pre_load_config(config=config)
    config = self._prepare_load_config(config=config, replace=replace)
    filesystem_bytes_available = self._get_filesystem_space_available()
    self._space_available(filesystem_bytes_available=filesystem_bytes_available)
    original_return_char = self.conn.comms_return_char
    tcl_comms_return_char = '\r'
    self.conn.acquire_priv(desired_priv='tclsh')
    self.conn.comms_return_char = tcl_comms_return_char
    config_result = self.conn.send_config(config=config, privilege_level='tclsh')
    self.conn.acquire_priv(desired_priv=self.conn.default_desired_privilege_level)
    self.conn.comms_return_char = original_return_char
    return self._post_load_config(response=response, scrapli_responses=[config_result])