From 0b3f22151eef7671ee7ca08d1538603d45186f76 Mon Sep 17 00:00:00 2001 From: Michael Hanselmann <hansmi@google.com> Date: Tue, 18 Dec 2012 17:19:48 +0100 Subject: [PATCH] Improve descriptions of network query fields They should be in the same style as other descriptions. Signed-off-by: Michael Hanselmann <hansmi@google.com> Reviewed-by: Iustin Pop <iustin@google.com> --- lib/query.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/query.py b/lib/query.py index 3ccc6c288..48d1b7b87 100644 --- a/lib/query.py +++ b/lib/query.py @@ -2479,25 +2479,25 @@ class NetworkQueryData: _NETWORK_SIMPLE_FIELDS = { - "name": ("Network", QFT_TEXT, 0, "The network"), - "network": ("Subnet", QFT_TEXT, 0, "The subnet"), - "gateway": ("Gateway", QFT_OTHER, 0, "The gateway"), - "network6": ("IPv6Subnet", QFT_OTHER, 0, "The ipv6 subnet"), - "gateway6": ("IPv6Gateway", QFT_OTHER, 0, "The ipv6 gateway"), - "mac_prefix": ("MacPrefix", QFT_OTHER, 0, "The mac prefix"), - "network_type": ("NetworkType", QFT_OTHER, 0, "The network type"), + "name": ("Network", QFT_TEXT, 0, "Name"), + "network": ("Subnet", QFT_TEXT, 0, "IPv4 subnet"), + "gateway": ("Gateway", QFT_OTHER, 0, "IPv4 gateway"), + "network6": ("IPv6Subnet", QFT_OTHER, 0, "IPv6 subnet"), + "gateway6": ("IPv6Gateway", QFT_OTHER, 0, "IPv6 gateway"), + "mac_prefix": ("MacPrefix", QFT_OTHER, 0, "MAC address prefix"), + "network_type": ("NetworkType", QFT_OTHER, 0, "Network type"), "serial_no": ("SerialNo", QFT_NUMBER, 0, _SERIAL_NO_DOC % "Network"), "uuid": ("UUID", QFT_TEXT, 0, "Network UUID"), } _NETWORK_STATS_FIELDS = { - "free_count": ("FreeCount", QFT_NUMBER, 0, "How many addresses are free"), - "reserved_count": ("ReservedCount", QFT_NUMBER, 0, - "How many addresses are reserved"), - "map": ("Map", QFT_TEXT, 0, "The actual mapping"), - "external_reservations": ("ExternalReservations", QFT_TEXT, 0, - "The external reservations"), + "free_count": ("FreeCount", QFT_NUMBER, 0, "Number of available addresses"), + "reserved_count": + ("ReservedCount", QFT_NUMBER, 0, "Number of reserved addresses"), + "map": ("Map", QFT_TEXT, 0, "Actual mapping"), + "external_reservations": + ("ExternalReservations", QFT_TEXT, 0, "External reservations"), } -- GitLab