Skip to content

Commit db458d7

Browse files
author
Dean Troyer
committed
Use correct terminology for subnets
OpenStack uses 'CIDR' incorrectly in many places. We are not going to perpetuate that usage. The correct name here is simply 'subnet' as the data is the network address for the subnet, in CIDR notation. Also, some additional cleanups as suggested in comments to https://review.openstack.org/#/c/84782 Depends-on: I3c0748074a6511ff92500516b3129886d2476eed Change-Id: Ib44c49dc1739ce7d881432e482dd16f8928eef49
1 parent ffcfff6 commit db458d7

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

doc/source/commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ referring to both Compute and Volume quotas.
116116
* ``service``: (**Identity**) a cloud service
117117
* ``service provider``: (**Identity**) a resource that consumes assertions from an ``identity provider``
118118
* ``snapshot``: (**Volume**) a point-in-time copy of a volume
119-
* ``subnet``: (**Network**) - a pool of private IP addresses that can be assigned to instances or other resources
119+
* ``subnet``: (**Network**) - a contiguous range of IP addresses assigned to a network
120120
* ``token``: (**Identity**) a bearer token managed by Identity service
121121
* ``usage``: (**Compute**) display host resources being consumed
122122
* ``user``: (**Identity**) individual cloud resources users

openstackclient/network/v2/subnet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ def take_action(self, parsed_args):
5353

5454
data = self.app.client_manager.network.subnets()
5555

56-
headers = ('ID', 'Name', 'Network', 'CIDR')
56+
headers = ('ID', 'Name', 'Network', 'Subnet')
5757
columns = ('id', 'name', 'network_id', 'cidr')
5858
if parsed_args.long:
59-
headers += ('Project', 'DHCP', 'DNS Nameservers',
59+
headers += ('Project', 'DHCP', 'Name Servers',
6060
'Allocation Pools', 'Host Routes', 'IP Version',
6161
'Gateway')
6262
columns += ('tenant_id', 'enable_dhcp', 'dns_nameservers',

openstackclient/tests/network/v2/test_subnet.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class TestListSubnet(TestSubnet):
3434
'ID',
3535
'Name',
3636
'Network',
37-
'CIDR'
37+
'Subnet'
3838
)
3939
columns_long = columns + (
4040
'Project',
4141
'DHCP',
42-
'DNS Nameservers',
42+
'Name Servers',
4343
'Allocation Pools',
4444
'Host Routes',
4545
'IP Version',

0 commit comments

Comments
 (0)