Function
sn_rename_all_container
(remote_ssh, container_id_list, new_idx)
Source from the content-addressed store, hash-verified
| 268 | |
| 269 | |
| 270 | def sn_rename_all_container(remote_ssh, container_id_list, new_idx): |
| 271 | print("Rename all containers ...") |
| 272 | new_idx = 1 |
| 273 | for container_id in container_id_list: |
| 274 | sn_remote_cmd( |
| 275 | remote_ssh, "docker rename " + str(container_id) + |
| 276 | " ovs_container_" + str(new_idx)) |
| 277 | new_idx = new_idx + 1 |
| 278 | |
| 279 | |
| 280 | # A thread designed for initializing constellation links. |
Tested by
no test coverage detected