[pve-devel] [PATCH pve-network 0/5] move network config code from pve-common && pve-manager
Alexandre Derumier
aderumier at odiso.com
Fri Jun 7 11:58:27 CEST 2019
This is moving the network config generation code + api2.
Code from Inotify.pm is moved to a new NetworkConfig.pm.
Network.pm is still in pve-common, as it's mainly
networks wrapper && tools not related to config management.
Alexandre Derumier (5):
add NetworkConfig.pm (code moved from pve-common)
add API2::Network.pm (moved from pve-manager)
api network: Use networkconfig
add etc_network_interfaces tests (moved from pve-common)
fix test generateconfig.pl
PVE/API2/Makefile | 5 +
PVE/API2/Network.pm | 688 +++++++++++++
PVE/Makefile | 6 +
PVE/NetworkConfig.pm | 943 ++++++++++++++++++
test/Makefile | 12 +
test/etc_network_interfaces/Makefile | 7 +
test/etc_network_interfaces/active_interfaces | 3 +
test/etc_network_interfaces/base | 16 +
test/etc_network_interfaces/brbase | 26 +
test/etc_network_interfaces/loopback | 14 +
test/etc_network_interfaces/proc_net_dev | 5 +
test/etc_network_interfaces/runtest.pl | 208 ++++
test/etc_network_interfaces/t.base.pl | 12 +
test/etc_network_interfaces/t.bridge-v4-v6.pl | 84 ++
.../t.bridge_eth_remove_auto.pl | 24 +
.../t.create_network.pl | 424 ++++++++
.../t.keep-option-order.pl | 28 +
.../t.list-interfaces.pl | 109 ++
.../t.ovs_bridge_allow.pl | 115 +++
.../t.parsed_options.pl | 35 +
.../t.unhandled-interfaces-to-manual.pl | 25 +
.../etc_network_interfaces/t.unknown_order.pl | 102 ++
.../t.update_network.pl | 116 +++
test/generateconfig.pl | 3 +-
24 files changed, 3009 insertions(+), 1 deletion(-)
create mode 100644 PVE/API2/Network.pm
create mode 100644 PVE/NetworkConfig.pm
create mode 100644 test/Makefile
create mode 100644 test/etc_network_interfaces/Makefile
create mode 100644 test/etc_network_interfaces/active_interfaces
create mode 100644 test/etc_network_interfaces/base
create mode 100644 test/etc_network_interfaces/brbase
create mode 100644 test/etc_network_interfaces/loopback
create mode 100644 test/etc_network_interfaces/proc_net_dev
create mode 100755 test/etc_network_interfaces/runtest.pl
create mode 100644 test/etc_network_interfaces/t.base.pl
create mode 100644 test/etc_network_interfaces/t.bridge-v4-v6.pl
create mode 100644 test/etc_network_interfaces/t.bridge_eth_remove_auto.pl
create mode 100644 test/etc_network_interfaces/t.create_network.pl
create mode 100644 test/etc_network_interfaces/t.keep-option-order.pl
create mode 100644 test/etc_network_interfaces/t.list-interfaces.pl
create mode 100644 test/etc_network_interfaces/t.ovs_bridge_allow.pl
create mode 100644 test/etc_network_interfaces/t.parsed_options.pl
create mode 100644 test/etc_network_interfaces/t.unhandled-interfaces-to-manual.pl
create mode 100644 test/etc_network_interfaces/t.unknown_order.pl
create mode 100644 test/etc_network_interfaces/t.update_network.pl
--
2.20.1
More information about the pve-devel
mailing list