def retrieve_config(napalm_config):
    """Retrieve the running and startup-config from remote device."""
    config = napalm_config.get_config()
    running_config = config["running"]
    startup_config = config["startup"]
    if napalm_config._platform in ["junos", "iosxr"]:
        startup_config = running_config
    return (running_config, startup_config)