original_docstring: Replaces the running syncd with the default syncd that comes with the image.
  
      This will restart the swss service.
  
      Args:
          duthost (SonicHost): The target device.
          creds (dict): Credentials used to access the docker registry.
      
docstring: Replaces the running syncd with the default syncd that comes with the image.
  This will restart the swss service.
docstring_tokens: Replaces the running syncd with the default syncd that comes with the image . This will restart the swss service .
code: def restore_default_syncd(duthost, creds):
      """Replaces the running syncd with the default syncd that comes with the image.
  
      This will restart the swss service.
  
      Args:
          duthost (SonicHost): The target device.
          creds (dict): Credentials used to access the docker registry.
      """
      vendor_id = _get_vendor_id(duthost)
  
      docker_syncd_name = "docker-syncd-{}".format(vendor_id)
  
      duthost.stop_service("swss")
      duthost.delete_container("syncd")
  
      tag_image(
          duthost,
          "{}:latest".format(docker_syncd_name),
          docker_syncd_name,
          duthost.os_version
      )
  
      logger.info("Reloading config and restarting swss...")
      config_reload(duthost)
  
      # Remove the RPC image from the duthost
      docker_rpc_image = docker_syncd_name + "-rpc"
      registry = load_docker_registry_info(duthost, creds)
      duthost.command(
          "docker rmi {}/{}:{}".format(registry.host, docker_rpc_image, duthost.os_version),
          module_ignore_errors=True
      )
code_tokens: def restore_default_syncd ( duthost , creds ) : vendor_id = _get_vendor_id ( duthost ) docker_syncd_name = "docker-syncd-{}" . format ( vendor_id ) duthost . stop_service ( "swss" ) duthost . delete_container ( "syncd" ) tag_image ( duthost , "{}:latest" . format ( docker_syncd_name ) , docker_syncd_name , duthost . os_version ) logger . info ( "Reloading config and restarting swss..." ) config_reload ( duthost ) docker_rpc_image = docker_syncd_name + "-rpc" registry = load_docker_registry_info ( duthost , creds ) duthost . command ( "docker rmi {}/{}:{}" . format ( registry . host , docker_rpc_image , duthost . os_version ) , module_ignore_errors = True )
short_docstring: Replaces the running syncd with the default syncd that comes with the image.
short_docstring_tokens: Replaces the running syncd with the default syncd that comes with the image .
comment: """Replaces the running syncd with the default syncd that comes with the image.
  
      This will restart the swss service.
  
      Args:
          duthost (SonicHost): The target device.
          creds (dict): Credentials used to access the docker registry.
      """$SEP$# Remove the RPC image from the duthost