Skip to content

Commit 77d3764

Browse files
Merge pull request #940 from Bischoff/support-dhcp
Add support for DHCP
2 parents 6e7c4a7 + 96b84b6 commit 77d3764

File tree

5 files changed

+277
-215
lines changed

5 files changed

+277
-215
lines changed

doc/source/parameters.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,16 @@ guest_info:
166166
type: dict
167167
guest_os_info:
168168
description: |
169-
OS info and kernel info of guest
169+
OS info and kernel info of guest.
170170
in: body
171-
required: true
171+
required: true
172172
type: dict
173173
guest_online_cpu_num:
174174
description: |
175-
Online cpu number of the guest
175+
Online CPU number of the guest.
176176
in: body
177-
required: true
178-
type: int
177+
required: true
178+
type: int
179179
guest_account:
180180
description: |
181181
Account of guest, useful for guest billing.
@@ -1085,6 +1085,8 @@ guest_networks_list:
10851085
Network information list of guest. It has one dictionary that contain some of the below
10861086
keys for each interface. All the keys are optional\:
10871087
1088+
- ``method``: interface initialization method. The valid values are ``static`` and
1089+
``dhcp``. Default is ``static``.
10881090
- ``ip_addr``: the IP address of the interface, ``cidr`` is required if IP address
10891091
is set
10901092
- ``dns_addr``: DNS servers address list
@@ -1108,7 +1110,7 @@ guest_networks:
11081110
is set
11091111
- ``dns_addr``: DNS servers address list
11101112
- ``gateway_addr``: gateway address
1111-
- ``cidr``: cidr format
1113+
- ``cidr``: CIDR format
11121114
- ``nic_vdev``: NIC device number, 1 to 4 hexadecimal digits
11131115
- ``mac_addr``: MAC address
11141116
- ``nic_id``: NIC identifier

doc/source/restapi.rst

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ Get running information of guest.
683683
:language: javascript
684684

685685

686-
Get guest os info
686+
Get guest OS info
687687
-----------------
688688

689689
**GET /guests/{userid}/os_info**
@@ -716,8 +716,8 @@ Get operating system and kernel information of a virtual machine.
716716
:language: javascript
717717

718718

719-
Get guest online cpu num
720-
---------------------------
719+
Get guest online CPU num
720+
------------------------
721721

722722
**GET /guests/{userid}/online_cpu_num**
723723

@@ -815,7 +815,9 @@ Create guest NIC
815815

816816
**POST /guests/{userid}/nic**
817817

818-
Create a virtual NIC on giving guest.
818+
Create a virtual NIC on given guest.
819+
The NIC is created in the z/VM system directory, but it is not configured
820+
at the guest OS level.
819821

820822
* Request:
821823

@@ -844,7 +846,9 @@ Create network interface
844846

845847
**POST /guests/{userid}/interface**
846848

847-
Create one or more network interfaces on giving guest.
849+
Create one or more network interfaces on given guest.
850+
The interfaces are created in the z/VM system directory, and configured after
851+
the guest is started.
848852

849853
* Request:
850854

0 commit comments

Comments
 (0)