'Send configuration commands down the SSH channel from a file.
The file is processed line-by-line and each command is sent down the
SSH channel.
**kwargs are passed to send_config_set method.'

def send_config_from_file(self, config_file=None, **kwargs):

    with io.open(config_file, u'rt', encoding=u'utf-8') as cfg_file:
        return self.send_config_set(cfg_file, **kwargs)
