[pve-devel] [PATCH v2 pve-manager] API2 : Network : add network config reload

Alexandre DERUMIER aderumier at odiso.com
Mon Sep 24 12:03:27 CEST 2018


>>Any idea why json output is not supported? 

seem to work with -o instead -t:

ifquery -a -o json


          -o {native,json}, --format {native,json}
                 interface display format


-t seem to be for input format.



BTW,
it seem possible to compare running vs /etc/network/interfaces

ifquery --running -a
ifquery -a



----- Mail original -----
De: "dietmar" <dietmar at proxmox.com>
À: "aderumier" <aderumier at odiso.com>
Cc: "pve-devel" <pve-devel at pve.proxmox.com>
Envoyé: Lundi 24 Septembre 2018 11:27:14
Objet: Re: [pve-devel] [PATCH v2 pve-manager] API2 : Network : add network config reload

> I'm not sure if it's possible to try to reload directly /etc/network/interfaces.new, then if it's ok, overwrite /etc/network/interfaces. I'll look at this. 

Thanks. 

Unrelated topic, but I get the following with ifquery: 

# ifquery -a -t json 
error: No JSON object could be decoded 

Any idea why json output is not supported? 




More information about the pve-devel mailing list