Skip to content

Commit 2c6a5ca

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Update the docs for new nic options"
2 parents 3f84731 + e85971b commit 2c6a5ca

2 files changed

Lines changed: 9 additions & 4 deletions

File tree

‎doc/source/command-objects/server.rst‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Create a new server
6767
[--user-data <user-data>]
6868
[--availability-zone <zone-name>]
6969
[--block-device-mapping <dev-name=mapping> [...] ]
70-
[--nic <net-id=net-uuid,v4-fixed-ip=ip-addr> [...] ]
70+
[--nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid> [...] ]
7171
[--hint <key=value> [...] ]
7272
[--config-drive <value>|True ]
7373
[--min <count>]
@@ -115,9 +115,14 @@ Create a new server
115115

116116
Map block devices; map is <id>:<type>:<size(GB)>:<delete_on_terminate> (optional extension)
117117

118-
.. option:: --nic <nic-config-string>
118+
.. option:: --nic <net-id=net-uuid,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid>
119119

120-
Specify NIC configuration (optional extension)
120+
Create a NIC on the server. Specify option multiple times to create
121+
multiple NICs. Either net-id or port-id must be provided, but not both.
122+
net-id: attach NIC to network with this UUID,
123+
port-id: attach NIC to port with this UUID,
124+
v4-fixed-ip: IPv4 fixed address for NIC (optional),
125+
v6-fixed-ip: IPv6 fixed address for NIC (optional).
121126

122127
.. option:: --hint <key=value>
123128

‎openstackclient/compute/v2/server.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def get_parser(self, prog_name):
285285
"net-id: attach NIC to network with this UUID, "
286286
"port-id: attach NIC to port with this UUID, "
287287
"v4-fixed-ip: IPv4 fixed address for NIC (optional), "
288-
"v6-fixed-ip: IPv6 fixed address for NIC (optional), "),
288+
"v6-fixed-ip: IPv6 fixed address for NIC (optional)."),
289289
)
290290
parser.add_argument(
291291
'--hint',

0 commit comments

Comments
 (0)