[pve-devel] [pve-common 0/3] RFC: use cidr in network interfaces address

Alexandre Derumier aderumier at odiso.com
Thu Feb 20 12:55:17 CET 2020


Hi, This is an rfc to use cidr in /etc/network/interfaces "address"

netmask/broadcast options are deprecated since buster in ifupdown1
https://salsa.debian.org/scop-guest/ifupdown/commit/41244c0d25cde48f0ff02e6e01d0856136e3e26e

and ifupdown2 support mutiples "address" in same interface.

The patch serie rewrite existing config on next change, and add support for multiple address.

A small change is need in the network api, to send a list in cidr (I already a done it,will send it later)

pvesh set /nodes/<node>/network --iface myiface --cidr 192.168.0.1,192.168.0.2,...


Alexandre Derumier (3):
  INotify: use cidr for address on config change
  remove extra space after address && gateway options
  allow multiple address by interfaces

 src/PVE/INotify.pm                            | 74 +++++++++++--------
 test/etc_network_interfaces/t.bridge-v4-v6.pl | 27 +++----
 .../t.create_network.pl                       | 30 ++++----
 .../t.list-interfaces.pl                      | 50 ++++++++-----
 .../t.ovs_bridge_allow.pl                     | 21 ++----
 .../t.parsed_options.pl                       |  5 +-
 .../etc_network_interfaces/t.unknown_order.pl | 23 ++----
 .../t.update_network.pl                       | 40 ++++------
 8 files changed, 133 insertions(+), 137 deletions(-)

-- 
2.20.1




More information about the pve-devel mailing list