Alexandre Derumier
b1791012ce
vnet: rename read_local_vm_config to read_cluster_vm_config
...
and remove "next if !$d->{node}"
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-05-06 07:56:12 +02:00
Alexandre Derumier
46cd4e0614
vnet: dynamic require of qemuserver && lxc
...
like for firewall, to avoid dependency loop
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-05-06 07:55:36 +02:00
Alexandre Derumier
9c2f5e3f15
vxlanmulticast: add mtu to vxlan interface too.
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-05-06 07:54:58 +02:00
Alexandre Derumier
aa38ba467d
vnetplugin: on_delete_hook : verify if vnet exist in vm && ct
2019-04-05 06:13:14 +02:00
Alexandre Derumier
dc7e431e63
rename vnet "name" option to "alias"
...
and use it with ifupdown2 alias.
2019-04-05 06:13:04 +02:00
Alexandre Derumier
e8d5906ee2
add on_update_hook
...
do nothing for now
2019-04-04 11:12:44 +02:00
Alexandre Derumier
fe0c6b9eb1
add on_delete_hook
...
empty for now
2019-04-04 11:12:30 +02:00
Alexandre Derumier
41eec96196
vlanplugin : make uplink-id non optional
2019-04-04 11:12:19 +02:00
Alexandre Derumier
85533e9880
vxlanmulticast plugin : make uplink-id && multicast addres non optional
2019-04-04 11:12:11 +02:00
Alexandre Derumier
205e916625
vnetplugin: make tag && transportzone non optional
2019-04-04 11:12:01 +02:00
Alexandre Derumier
92b6f291bc
add missing Network.pm
...
forgot to add them in last patches
2019-04-04 10:16:30 +02:00
Alexandre Derumier
adf8e91537
fix generateconfig.pl test
2019-04-04 07:51:58 +02:00
Alexandre Derumier
6bad73d02e
merge Transport && Vnet to PVE::Network::Network
...
config is now merged in /etc/pve/networks.cfg
Vnet is a Plugin
2019-04-04 07:50:59 +02:00
Alexandre Derumier
653b2b9040
api2: add networkconfig
...
/cluster/network/vnet
/cluster/network/transport
2019-04-03 06:20:56 +02:00
Alexandre Derumier
fb4b3e4a64
move transport plugins to Network/Transport/
2019-04-03 06:20:34 +02:00
Alexandre Derumier
e7939454a0
add vnet api
...
also for now, use classic sectionconfig format
vnet: vnet1
ipv4 10.0.0.1
ipv6 2a03:2880:f003:c07:face:b00c::2
mtu 1500
tag 2
vnet: vnet2
ipv6 2a03:2880:f003:c07:face:b00c::2
name network2
tag 3
transportzone vlanzone1
2019-04-03 06:20:23 +02:00
Alexandre Derumier
eec580bf18
add network transport api
2019-04-02 14:15:10 +02:00
Alexandre Derumier
0ec8cb8742
vlanplugin : fix vlan-aware option
2019-04-02 14:14:03 +02:00
Alexandre Derumier
bad3d113c9
remove $interfaces arg from generate_network_config
...
and remove verification of existing vlan interface in VlanPlugin.
(we do all verifications later reusing INotify read/write interfaces)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-03-29 08:53:23 +01:00
Alexandre Derumier
02abc721e9
generateconfig: print config before test
...
easier to debug if verification fail after
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-03-29 08:53:10 +01:00
Alexandre Derumier
f93d43e8a2
vlanplugin: define vlan interface and fix vlan-protocol
...
vlan-protocol is on vlan interface, better to always define it
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-03-29 08:52:51 +01:00
Dietmar Maurer
1ca159122f
fix copyright data
2019-03-28 12:21:01 +01:00
Dietmar Maurer
f0d57613b2
get version from changelog
2019-03-28 12:14:16 +01:00
Dietmar Maurer
74ac5247e8
PVE/Network/Makefile: fix installation path
2019-03-28 12:12:24 +01:00
Dietmar Maurer
4d7560858d
set package version to 0.1-1
...
This is experimental code.
2019-03-28 11:55:20 +01:00
Alexandre Derumier
8df9fab504
add a sample test to generate config
...
generate /etc/network/interfaces.d/vnet
reloading is not yet implemented
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-03-28 11:53:06 +01:00
Alexandre Derumier
b0ed2beab0
add vnet
...
This allow to define bridges with a tag (can be vxlan or vlan tag),
and use configuration from transportzone
/etc/pve/network/vnet.cfg
vnet1:
tag 2
transportzone vlanzone1
name network1
ipv4 10.0.0.1
ipv6 2a03:2880:f003:c07:face:b00c::2
mtu 1500
vnet2:
transportzone vlanzone1
tag 3
name network2
ipv6 2a03:2880:f003:c07:face:b00c::2
vnet3:
transportzone vxlanmulticastzone1
tag 100000
name network3
mtu 1400
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-03-28 11:52:54 +01:00
Alexandre Derumier
7e720d4d19
add vxlan multicast plugin
...
/etc/pve/network/transports.cfg
vxlanmulticast: vxlanmulticastzone1
uplink-id 1
multicast-address 225.20.21.1
vxlan-allowed 4-5
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-03-28 11:52:42 +01:00
Alexandre Derumier
f8140d5330
add vlan plugin
...
/etc/pve/network/transports.cfg
vlan: vlanzone1
uplink-id 1
vlan-aware 1
vlan-allowed 2-4,6,10
vlan-protocol 802.1ad
vlan: vlanzone2
uplink-id 2
vlan-aware 1
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-03-28 11:52:29 +01:00
Alexandre Derumier
6939693f5e
add transport plugin infrastructure
...
used to generate network configuration for differents kind of plugins (vlan,vxlan....)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-03-28 11:01:16 +01:00
Alexandre Derumier
0399edbbbd
initial package commit
...
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-03-28 10:59:08 +01:00