Skip to content

Commit 325420f

Browse files
committed
Doc: Update and add IP address
Fix the 'ip floating' command documentation file name. Add missing command list documentation for the 'ip fixed' and 'ip floating pool' commands. In addition, update the command description and argument help to fix minor issues and use consistent terminology. And finally, cleanup the Network command object formatting. Change-Id: I0168891bc674c9f0d4df4062f7e93f497dc8fe6f
1 parent bfa223f commit 325420f

7 files changed

Lines changed: 100 additions & 39 deletions

File tree

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
========
2+
ip fixed
3+
========
4+
5+
Compute v2
6+
7+
ip fixed add
8+
------------
9+
10+
Add fixed IP address to server
11+
12+
.. program:: ip fixed add
13+
.. code:: bash
14+
15+
os ip fixed add
16+
<network>
17+
<server>
18+
19+
.. describe:: <network>
20+
21+
Network to fetch an IP address from (name or ID)
22+
23+
.. describe:: <server>
24+
25+
Server to receive the IP address (name or ID)
26+
27+
ip fixed remove
28+
---------------
29+
30+
Remove fixed IP address from server
31+
32+
.. program:: ip fixed remove
33+
.. code:: bash
34+
35+
os ip fixed remove
36+
<ip-address>
37+
<server>
38+
39+
.. describe:: <ip-address>
40+
41+
IP address to remove from server (name only)
42+
43+
.. describe:: <server>
44+
45+
Server to remove the IP address from (name or ID)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
================
2+
ip floating pool
3+
================
4+
5+
Compute v2
6+
7+
ip floating pool list
8+
---------------------
9+
10+
List pools of floating IP addresses
11+
12+
.. program:: ip floating pool list
13+
.. code:: bash
14+
15+
os ip floating pool list

doc/source/command-objects/floatingip.rst renamed to doc/source/command-objects/ip-floating.rst

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
==========
2-
floatingip
3-
==========
1+
===========
2+
ip floating
3+
===========
44

55
Compute v2
66

77
ip floating add
88
---------------
99

10-
Add floating-ip to server
10+
Add floating IP address to server
1111

1212
.. program:: ip floating add
1313
.. code:: bash
1414
1515
os ip floating add
16-
<ip_address>
16+
<ip-address>
1717
<server>
1818
19-
.. describe:: <ip_address>
19+
.. describe:: <ip-address>
2020

21-
IP address to add to server
21+
IP address to add to server (name only)
2222

2323
.. describe:: <server>
2424

@@ -27,7 +27,7 @@ Add floating-ip to server
2727
ip floating create
2828
------------------
2929

30-
Create new floating-ip
30+
Create new floating IP address
3131

3232
.. program:: ip floating create
3333
.. code:: bash
@@ -37,27 +37,27 @@ Create new floating-ip
3737
3838
.. describe:: <pool>
3939

40-
Pool to fetch floating IP from
40+
Pool to fetch IP address from (name or ID)
4141

4242
ip floating delete
4343
------------------
4444

45-
Delete a floating-ip
45+
Delete a floating IP address
4646

4747
.. program:: ip floating delete
4848
.. code:: bash
4949
5050
os ip floating delete
51-
<ip_address>
51+
<ip-address>
5252
53-
.. describe:: <ip_address>
53+
.. describe:: <ip-address>
5454

55-
IP address to delete
55+
IP address to delete (ID only)
5656

5757
ip floating list
5858
----------------
5959

60-
List floating-ips
60+
List floating IP addresses
6161

6262
.. program:: ip floating list
6363
.. code:: bash
@@ -67,18 +67,18 @@ List floating-ips
6767
ip floating remove
6868
------------------
6969

70-
Remove floating-ip from server
70+
Remove floating IP address from server
7171

7272
.. program:: ip floating remove
7373
.. code:: bash
7474
7575
os ip floating remove
76-
<ip_address>
76+
<ip-address>
7777
<server>
7878
79-
.. describe:: <ip_address>
79+
.. describe:: <ip-address>
8080

81-
IP address to remove from server
81+
IP address to remove from server (name only)
8282

8383
.. describe:: <server>
8484

doc/source/commands.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,14 @@ referring to both Compute and Volume quotas.
9191
* ``hypervisor stats``: (**Compute**) hypervisor statistics over all compute nodes
9292
* ``identity provider``: (**Identity**) a source of users and authentication
9393
* ``image``: (**Image**) a disk image
94-
* ``ip fixed``: Compute, Network - an internal IP address assigned to a server
95-
* ``ip floating``: Compute, Network - a public IP address that can be mapped to a server
94+
* ``ip fixed``: (**Compute**, **Network**) - an internal IP address assigned to a server
95+
* ``ip floating``: (**Compute**, **Network**) - a public IP address that can be mapped to a server
96+
* ``ip floating pool``: (**Compute**, **Network**) - a pool of public IP addresses
9697
* ``keypair``: (**Compute**) an SSH public key
9798
* ``limits``: (**Compute**, **Volume**) resource usage limits
9899
* ``mapping``: (**Identity**) a definition to translate identity provider attributes to Identity concepts
99100
* ``module``: internal - installed Python modules in the OSC process
100-
* ``network``: Network - a virtual network for connecting servers and other resources
101+
* ``network``: (**Network**) - a virtual network for connecting servers and other resources
101102
* ``object``: (**Object Store**) a single file in the Object Store
102103
* ``policy``: (**Identity**) determines authorization
103104
* ``project``: (**Identity**) owns a group of resources
@@ -106,8 +107,8 @@ referring to both Compute and Volume quotas.
106107
* ``request token``: (**Identity**) temporary OAuth-based token
107108
* ``role``: (**Identity**) a policy object used to determine authorization
108109
* ``role assignment``: (**Identity**) a relationship between roles, users or groups, and domains or projects
109-
* ``security group``: Compute, Network - groups of network access rules
110-
* ``security group rule``: Compute, Network - the individual rules that define protocol/IP/port access
110+
* ``security group``: (**Compute**, **Network**) - groups of network access rules
111+
* ``security group rule``: (**Compute**, **Network**) - the individual rules that define protocol/IP/port access
111112
* ``server``: (**Compute**) virtual machine instance
112113
* ``server image``: (**Compute**) saved server disk image
113114
* ``service``: (**Identity**) a cloud service

openstackclient/compute/v2/fixedip.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
class AddFixedIP(command.Command):
26-
"""Add fixed-ip command"""
26+
"""Add fixed IP address to server"""
2727

2828
log = logging.getLogger(__name__ + ".AddFixedIP")
2929

@@ -32,12 +32,12 @@ def get_parser(self, prog_name):
3232
parser.add_argument(
3333
"network",
3434
metavar="<network>",
35-
help="Name of the network to fetch an IP address from",
35+
help="Network to fetch an IP address from (name or ID)",
3636
)
3737
parser.add_argument(
3838
"server",
3939
metavar="<server>",
40-
help="Name of the server to receive the IP address",
40+
help="Server to receive the IP address (name or ID)",
4141
)
4242
return parser
4343

@@ -56,7 +56,7 @@ def take_action(self, parsed_args):
5656

5757

5858
class RemoveFixedIP(command.Command):
59-
"""Remove fixed-ip command"""
59+
"""Remove fixed IP address from server"""
6060

6161
log = logging.getLogger(__name__ + ".RemoveFixedIP")
6262

@@ -65,12 +65,12 @@ def get_parser(self, prog_name):
6565
parser.add_argument(
6666
"ip_address",
6767
metavar="<ip-address>",
68-
help="IP address to remove from server",
68+
help="IP address to remove from server (name only)",
6969
)
7070
parser.add_argument(
7171
"server",
7272
metavar="<server>",
73-
help="Name of the server to remove the IP address from",
73+
help="Server to remove the IP address from (name or ID)",
7474
)
7575
return parser
7676

openstackclient/compute/v2/floatingip.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
class AddFloatingIP(command.Command):
29-
"""Add floating-ip to server"""
29+
"""Add floating IP address to server"""
3030

3131
log = logging.getLogger(__name__ + ".AddFloatingIP")
3232

@@ -35,7 +35,7 @@ def get_parser(self, prog_name):
3535
parser.add_argument(
3636
"ip_address",
3737
metavar="<ip-address>",
38-
help="IP address to add to server",
38+
help="IP address to add to server (name only)",
3939
)
4040
parser.add_argument(
4141
"server",
@@ -56,7 +56,7 @@ def take_action(self, parsed_args):
5656

5757

5858
class CreateFloatingIP(show.ShowOne):
59-
"""Create new floating-ip"""
59+
"""Create new floating IP address"""
6060

6161
log = logging.getLogger(__name__ + '.CreateFloatingIP')
6262

@@ -65,7 +65,7 @@ def get_parser(self, prog_name):
6565
parser.add_argument(
6666
'pool',
6767
metavar='<pool>',
68-
help='Pool to fetch floating IP from',
68+
help='Pool to fetch IP address from (name or ID)',
6969
)
7070
return parser
7171

@@ -80,7 +80,7 @@ def take_action(self, parsed_args):
8080

8181

8282
class DeleteFloatingIP(command.Command):
83-
"""Delete a floating-ip"""
83+
"""Delete a floating IP address"""
8484

8585
log = logging.getLogger(__name__ + '.DeleteFloatingIP')
8686

@@ -89,7 +89,7 @@ def get_parser(self, prog_name):
8989
parser.add_argument(
9090
"ip_address",
9191
metavar="<ip-address>",
92-
help="IP address to delete",
92+
help="IP address to delete (ID only)",
9393
)
9494
return parser
9595

@@ -107,7 +107,7 @@ def take_action(self, parsed_args):
107107

108108

109109
class ListFloatingIP(lister.Lister):
110-
"""List floating-ips"""
110+
"""List floating IP addresses"""
111111

112112
log = logging.getLogger(__name__ + '.ListFloatingIP')
113113

@@ -127,7 +127,7 @@ def take_action(self, parsed_args):
127127

128128

129129
class RemoveFloatingIP(command.Command):
130-
"""Remove floating-ip from server"""
130+
"""Remove floating IP address from server"""
131131

132132
log = logging.getLogger(__name__ + ".RemoveFloatingIP")
133133

@@ -136,7 +136,7 @@ def get_parser(self, prog_name):
136136
parser.add_argument(
137137
"ip_address",
138138
metavar="<ip-address>",
139-
help="IP address to remove from server",
139+
help="IP address to remove from server (name only)",
140140
)
141141
parser.add_argument(
142142
"server",

openstackclient/compute/v2/floatingippool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
class ListFloatingIPPool(lister.Lister):
26-
"""List floating-ip-pools"""
26+
"""List pools of floating IP addresses"""
2727

2828
log = logging.getLogger(__name__ + '.ListFloatingIPPool')
2929

0 commit comments

Comments
 (0)