yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #53515
[Bug 1599718] Re: json formatter is of no use
Without --noindent I get:
ohn@ubuntu:~$ neutron net-ip-availability-show ddc4d6f0-1838-473b-b72c-6396b8633022 -f json
{
"used_ips": 2,
"subnet_ip_availability": "{\"used_ips\": 1, \"subnet_id\": \"68d7f116-0cba-44cc-80d8-43d2bd983420\", \"subnet_name\": \"public-subnet\", \"ip_version\": 4, \"cidr\": \"172.24.4.0/24\", \"total_ips\": 253}\n{\"used_ips\": 1, \"subnet_id\": \"88bcce68-3a87-4643-9365-e57c31a8a4d8\", \"subnet_name\": \"ipv6-public-subnet\", \"ip_version\": 6, \"cidr\": \"2001:db8::/64\", \"total_ips\": 18446744073709551614}",
"network_id": "ddc4d6f0-1838-473b-b72c-6396b8633022",
"tenant_id": "c1e84c0ac31e457192b8012db435f10a",
"total_ips": 18446744073709551867,
"network_name": "public"
}
and with --noindent I get:
john@ubuntu:~$ neutron net-ip-availability-show ddc4d6f0-1838-473b-b72c-6396b8633022 -f json --noindent
{"used_ips": 2, "subnet_ip_availability": "{\"used_ips\": 1, \"subnet_id\": \"68d7f116-0cba-44cc-80d8-43d2bd983420\", \"subnet_name\": \"public-subnet\", \"ip_version\": 4, \"cidr\": \"172.24.4.0/24\", \"total_ips\": 253}\n{\"used_ips\": 1, \"subnet_id\": \"88bcce68-3a87-4643-9365-e57c31a8a4d8\", \"subnet_name\": \"ip
v6-public-subnet\", \"ip_version\": 6, \"cidr\": \"2001:db8::/64\", \"total_ips\": 18446744073709551614}", "network_id": "ddc4d6f0-1838-473b-b72c-6396b8633022", "tenant_id": "c1e84c0ac31e457192b8012db435f10a", "total_ips": 18446744073709551867, "network_name": "public"}
It's two-space indentation.
** Changed in: neutron
Status: Confirmed => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1599718
Title:
json formatter is of no use
Status in neutron:
Invalid
Bug description:
When the output is retrieved in the json format using command "neutron
net-ip-availability-show <network> -f json", the output is displayed
without any indentation. There is a json formatter "--noindent" to
display the output without indentation in json format. Though the
--noindent option is not used, the output is displayed without
indentation.
Note:
net-ip-availability-show is a sample usecase. This bug applies across all the usecases.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1599718/+subscriptions
References