[pmg-devel] [PATCH common/manager/pmg-api/widget-toolkit] implement cidr api for host network

Dominik Csapak d.csapak at proxmox.com
Tue Apr 16 11:05:34 CEST 2019


this series implements the api to set/get the host network as cidr address
instead of having to set address and netmask

this also parses the interfaces file now for this and returns
a 'cidr', 'address', and 'netmask' field

after that, it cleans up the ui to be more consistent with containers and vms

pve-common:

Dominik Csapak (2):
  JSONSchema: add get_netmask_bits and missing netmask
  INotify: map address/netmask to cidr while parsing interfaces

 src/PVE/INotify.pm    | 32 ++++++++++++++++++++++++++++++++
 src/PVE/JSONSchema.pm |  6 ++++++
 2 files changed, 38 insertions(+)

pve-manager:

Dominik Csapak (1):
  add new parameters cidr(6) to the network api

 PVE/API2/Network.pm | 44 +++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 43 insertions(+), 1 deletion(-)

pmg-api:

Dominik Csapak (1):
  add new parameters cidr(6) to the network api

 PMG/API2/Network.pm | 44 +++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 43 insertions(+), 1 deletion(-)

proxmox-widget-toolkit:

Dominik Csapak (2):
  show cidr in network view and optimize renderer
  change network input from address/netmask to cidr and change labels

 node/NetworkEdit.js | 68 +++++++----------------------------------------------
 node/NetworkView.js | 45 +++++++++++++++++++----------------
 2 files changed, 33 insertions(+), 80 deletions(-)

-- 
2.11.0




More information about the pmg-devel mailing list