original_docstring: Replaces the running syncd container with the RPC version of it.
  
      This will download a new Docker image to the duthost and restart the swss 
      service.
  
      Args:
          duthost (SonicHost): The target device.
          creds (dict): Credentials used to access the docker registry.
      
docstring: Replaces the running syncd container with the RPC version of it.
  This will download a new Docker image to the duthost and restart the swss
  service.
docstring_tokens: Replaces the running syncd container with the RPC version of it . This will download a new Docker image to the duthost and restart the swss service .
code: def swap_syncd(duthost, creds):
      """Replaces the running syncd container with the RPC version of it.
  
      This will download a new Docker image to the duthost and 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)
      docker_rpc_image = docker_syncd_name + "-rpc"
  
      # Force image download to go through mgmt network
      duthost.command("config bgp shutdown all")  
      duthost.stop_service("swss")
      duthost.delete_container("syncd")
  
      # Set sysctl RCVBUF parameter for tests
      duthost.command("sysctl -w net.core.rmem_max=609430500")
  
      # Set sysctl SENDBUF parameter for tests
      duthost.command("sysctl -w net.core.wmem_max=609430500")
  
      _perform_swap_syncd_shutdown_check(duthost)
  
      registry = load_docker_registry_info(duthost, creds)
      download_image(duthost, registry, docker_rpc_image, duthost.os_version)
  
      tag_image(
          duthost,
          "{}:latest".format(docker_syncd_name),
          "{}/{}".format(registry.host, docker_rpc_image),
          duthost.os_version
      )
  
      logger.info("Reloading config and restarting swss...")
      config_reload(duthost)
  
      _perform_syncd_liveness_check(duthost)
code_tokens: def swap_syncd ( duthost , creds ) : vendor_id = _get_vendor_id ( duthost ) docker_syncd_name = "docker-syncd-{}" . format ( vendor_id ) docker_rpc_image = docker_syncd_name + "-rpc" duthost . command ( "config bgp shutdown all" ) duthost . stop_service ( "swss" ) duthost . delete_container ( "syncd" ) duthost . command ( "sysctl -w net.core.rmem_max=609430500" ) duthost . command ( "sysctl -w net.core.wmem_max=609430500" ) _perform_swap_syncd_shutdown_check ( duthost ) registry = load_docker_registry_info ( duthost , creds ) download_image ( duthost , registry , docker_rpc_image , duthost . os_version ) tag_image ( duthost , "{}:latest" . format ( docker_syncd_name ) , "{}/{}" . format ( registry . host , docker_rpc_image ) , duthost . os_version ) logger . info ( "Reloading config and restarting swss..." ) config_reload ( duthost ) _perform_syncd_liveness_check ( duthost )
short_docstring: Replaces the running syncd container with the RPC version of it.
short_docstring_tokens: Replaces the running syncd container with the RPC version of it .
comment: """Replaces the running syncd container with the RPC version of it.
  
      This will download a new Docker image to the duthost and restart the swss 
      service.
  
      Args:
          duthost (SonicHost): The target device.
          creds (dict): Credentials used to access the docker registry.
      """$SEP$# Force image download to go through mgmt network$SEP$# Set sysctl RCVBUF parameter for tests$SEP$# Set sysctl SENDBUF parameter for tests