code: def get_config(self, retrieve='all'):
          
  
          configs = {
              'startup': '',
              'running': '',
              'candidate': '',
          }
  
          if retrieve in ('startup', 'all'):
              command = 'show startup-config'
              output = self._send_command(command)
              configs['startup'] = output
  
          if retrieve in ('running', 'all'):
              command = 'show running-config'
              output = self._send_command(command)
              configs['running'] = output
  
          return configs
docs: Implementation of get_config for IOS.
  
          Returns the startup or/and running configuration as dictionary.
          The keys of the dictionary represent the type of configuration
          (startup or running). The candidate is always empty string,
          since IOS does not support candidate configuration.