[pve-devel] [PATCH v2 pve-network 00/15] sdn: split vnets/zones/controllers plugins + improvments
Alexandre Derumier
aderumier at odiso.com
Tue Nov 26 10:00:15 CET 2019
Split code in different plugins (vnets/zones/controllers) for better maintenance
and readability
Changelog V2:
lot of cleanup, permissions, some plugins rework
(sorry that's a lot of patches)
Alexandre Derumier (15):
split transport/controllers/vnet to separate plugins
api2 : split vnets/zones/controllers
api2: sdn: add reload config
update documentation.txt
rename transportzone option to zone
improve status error description
remove vxlan|vlan allowed zone option
add nodes option to zones
rename frrevpn controller plugin to evpn plugin
fix zones on_update_hook
add permissions
limit vnet/zones/controller to 10 characters
evpn zone plugin : remove vrf option
cleanup old transport/router/sdn_cfg references
controller: evpn: use frr-reload.py for reloading frr
PVE/API2/Network/Makefile | 1 -
PVE/API2/Network/SDN.pm | 331 +++++-------------
PVE/API2/Network/SDN/Controllers.pm | 264 ++++++++++++++
PVE/API2/Network/SDN/Makefile | 4 +-
PVE/API2/Network/SDN/Vnets.pm | 241 +++++++++++++
PVE/API2/Network/SDN/Zones.pm | 273 +++++++++++++++
PVE/API2/Network/SDN/{ => Zones}/Content.pm | 26 +-
PVE/API2/Network/SDN/Zones/Makefile | 8 +
PVE/API2/Network/SDN/{ => Zones}/Status.pm | 34 +-
PVE/Network/SDN.pm | 299 +---------------
PVE/Network/SDN/Controllers.pm | 158 +++++++++
.../EvpnPlugin.pm} | 147 ++++----
.../FaucetPlugin.pm} | 38 +-
PVE/Network/SDN/Controllers/Makefile | 8 +
PVE/Network/SDN/Controllers/Plugin.pm | 134 +++++++
PVE/Network/SDN/Makefile | 4 +-
PVE/Network/SDN/VlanPlugin.pm | 122 -------
PVE/Network/SDN/VnetPlugin.pm | 71 +++-
PVE/Network/SDN/Vnets.pm | 59 ++++
PVE/Network/SDN/Zones.pm | 239 +++++++++++++
PVE/Network/SDN/{ => Zones}/EvpnPlugin.pm | 96 ++---
PVE/Network/SDN/{ => Zones}/FaucetPlugin.pm | 14 +-
PVE/Network/SDN/Zones/Makefile | 8 +
PVE/Network/SDN/{ => Zones}/Plugin.pm | 79 +++--
PVE/Network/SDN/{ => Zones}/QinQPlugin.pm | 25 +-
PVE/Network/SDN/Zones/VlanPlugin.pm | 74 ++++
PVE/Network/SDN/{ => Zones}/VxlanPlugin.pm | 96 +----
test/documentation.txt | 22 +-
test/generateconfig.pl | 15 +-
29 files changed, 1847 insertions(+), 1043 deletions(-)
create mode 100644 PVE/API2/Network/SDN/Controllers.pm
create mode 100644 PVE/API2/Network/SDN/Vnets.pm
create mode 100644 PVE/API2/Network/SDN/Zones.pm
rename PVE/API2/Network/SDN/{ => Zones}/Content.pm (66%)
create mode 100644 PVE/API2/Network/SDN/Zones/Makefile
rename PVE/API2/Network/SDN/{ => Zones}/Status.pm (68%)
create mode 100644 PVE/Network/SDN/Controllers.pm
rename PVE/Network/SDN/{EvpnControllerPlugin.pm => Controllers/EvpnPlugin.pm} (61%)
rename PVE/Network/SDN/{FaucetControllerPlugin.pm => Controllers/FaucetPlugin.pm} (67%)
create mode 100644 PVE/Network/SDN/Controllers/Makefile
create mode 100644 PVE/Network/SDN/Controllers/Plugin.pm
delete mode 100644 PVE/Network/SDN/VlanPlugin.pm
create mode 100644 PVE/Network/SDN/Vnets.pm
create mode 100644 PVE/Network/SDN/Zones.pm
rename PVE/Network/SDN/{ => Zones}/EvpnPlugin.pm (55%)
rename PVE/Network/SDN/{ => Zones}/FaucetPlugin.pm (87%)
create mode 100644 PVE/Network/SDN/Zones/Makefile
rename PVE/Network/SDN/{ => Zones}/Plugin.pm (58%)
rename PVE/Network/SDN/{ => Zones}/QinQPlugin.pm (78%)
create mode 100644 PVE/Network/SDN/Zones/VlanPlugin.pm
rename PVE/Network/SDN/{ => Zones}/VxlanPlugin.pm (50%)
--
2.20.1
More information about the pve-devel
mailing list