[pve-devel] [PATCH pve-common 0/2] Inotify: improve vlan parser
Alexandre Derumier
aderumier at odiso.com
Sat Jan 25 10:27:02 CET 2020
Improve parsing and creation of vlans interface.
3 kind of naming is possible:
ifupdown1/2:
- iface interface.\d+
- iface vlan\d+
vlan-raw-interface <interface>
ifupdown2 only:
- iface randomname
vlan-raw-interface <interface>
vlan-id \d+
#pvesh create /nodes/<node>/network --iface eno1.200 --type vlan
#pvesh create /nodes/<node>/network --iface vlan200 --type vlan --vlan-raw-device eno1
#pvesh create /nodes/<node>/network --iface randomname --type vlan --vlan-raw-device eno1 --vlan-id 200
Alexandre Derumier (2):
INotify: improve vlan interface parsing
tests: unknown interfaces order: rename vlan interfaces to unknown
src/PVE/INotify.pm | 38 ++++++++++++++++---
.../etc_network_interfaces/t.unknown_order.pl | 26 ++++++-------
2 files changed, 43 insertions(+), 21 deletions(-)
--
2.20.1
More information about the pve-devel
mailing list