Skip to content

Commit

Permalink
Added instructions for cloning server
Browse files Browse the repository at this point in the history
  • Loading branch information
Mika Lackman authored and iler committed Apr 20, 2018
1 parent b07e445 commit b283813
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,29 @@ server.start()

```


### Clone a server

Cloning is done by giving existing storage uuid to storage_devices. Note that size of the storage
must be defined and must be at least same size than storage being cloned.

```python
clone = Server(
core_number=1,
memory_amount=512,
hostname='cloned.server',
zone=ZONE.Helsinki,
storage_devices=[
Storage(
uuid='012bea57-0f70-4194-82d0-b3d25f4a018b',
size=50 # size must be defined and it has to be at least same size than storage being cloned
),
]
)

manager.create_server(clone)
```

### Easy access to servers and their information:

New in 0.3.0.
Expand Down

0 comments on commit b283813

Please sign in to comment.