MCPcopy Create free account
hub / github.com/SpaceNetLab/StarryNet / sn_copy_run_conf

Function sn_copy_run_conf

starrynet/sn_orchestrater.py:383–392  ·  view source on GitHub ↗
(container_idx, Path, current, total)

Source from the content-addressed store, hash-verified

381
382
383def sn_copy_run_conf(container_idx, Path, current, total):
384 os.system("docker cp " + Path + "/B" + str(current + 1) + ".conf " +
385 str(container_idx) + ":/B" + str(current + 1) + ".conf")
386 print("[" + str(current + 1) + "/" + str(total) + "]" +
387 " docker cp bird.conf " + str(container_idx) + ":/bird.conf")
388 os.system("docker exec -it " + str(container_idx) + " bird -c B" +
389 str(current + 1) + ".conf")
390 print("[" + str(current + 1) + "/" + str(total) +
391 "] Bird routing process for container: " + str(container_idx) +
392 " has started. ")
393
394
395def sn_copy_run_conf_to_each_container(container_id_list, sat_node_number,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected