]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/ipnetns.c
ipnetns: don't print unassigned nsid in json export
authorGuillaume Nault <gnault@redhat.com>
Fri, 8 Nov 2019 17:00:18 +0000 (18:00 +0100)
committerDavid Ahern <dsahern@gmail.com>
Sat, 9 Nov 2019 01:33:05 +0000 (01:33 +0000)
commit1c9b69276c76e44234e62d3e1f678d25172a03f4
tree441ac36897505bc44887d7586b3408d85c366792
parent08ba67db7b9861d858f540369ec849d0c7f283c7
ipnetns: don't print unassigned nsid in json export

Don't output the nsid and current-nsid json keys if they're not set.
Otherwise a parser would have to special case the "not-assigned"
string.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
ip/ipnetns.c