[pve-devel] [PATCH v2 pve-common 0/4] network config improvements

Alexandre Derumier aderumier at odiso.com
Wed Jun 20 07:36:53 CEST 2018


changelog v2 :

- remove allow-... when ifupdown2 is used

This patches series cleanup /etc/network/interfaces

- replace network options _  by -
- replace slaves by bond-slaves
- add bridge-vids to vlan aware bridge

- allow read of old and modern syntax

both are compatible with ifupdown2 && ifupdown.

Changes will only by made when user edit the configuration 
(so, need to reboot with classic ifupdown)

Alexandre Derumier (4):
  Inotify : read network config : allow alternative options names
  Inotify : write network config : use modern syntax for options
  Inotify : write network config : add bridge-vids
  Inotify : write network config : remove allow- ovs with ifupdown2

 src/PVE/INotify.pm                              | 51 ++++++++++++++++++-------
 test/etc_network_interfaces/t.bridge-v4-v6.pl   | 18 ++++-----
 test/etc_network_interfaces/t.create_network.pl | 12 +++---
 test/etc_network_interfaces/t.unknown_order.pl  | 48 +++++++++++------------
 test/etc_network_interfaces/t.update_network.pl | 12 +++---
 5 files changed, 83 insertions(+), 58 deletions(-)

-- 
2.11.0



More information about the pve-devel mailing list