5
0
mirror of git://git.proxmox.com/git/pve-network.git synced 2025-01-07 21:18:01 +03:00
Commit Graph

466 Commits

Author SHA1 Message Date
Alexandre Derumier
efffa0ff10 zones: evpn : add support for loopback 2020-11-25 12:04:00 +01:00
Alexandre Derumier
f23633dc24 controllers: improve bgp-evpn
- add new bgp plugin
- add ebgp support
- add loopback support
- move gateway-nodes option to zone as 'exitnodes'
- move external-peers to bgp plugin
2020-11-25 12:04:00 +01:00
Thomas Lamprecht
d1ab9bdbbc use statements cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-08 11:11:04 +02:00
Thomas Lamprecht
ef7eab8ff8 bump versioned dependency to pve-cluster to 6.2-2
for new registered .configs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-08 11:05:28 +02:00
Alexandre Derumier
613e30f233 update documentation
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-08 11:05:28 +02:00
Alexandre Derumier
ceb972a915 ipam: add hostname/description to ipam db
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-08 11:05:28 +02:00
Alexandre Derumier
88d9562ba7 vnets: allow duplicate tags in differents zones
only vxlan need to be unique globally.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-08 11:05:28 +02:00
Alexandre Derumier
e8736dac7b subnets/ipam: allow same subnet on different zones
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-08 11:05:28 +02:00
Alexandre Derumier
b184ebc3ad small bugfixes
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-08 11:05:28 +02:00
Alexandre Derumier
331e233018 move ipam option from subnet to zone
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-08 11:05:28 +02:00
Alexandre Derumier
4ad7844283 move dns options from subnets to zone
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-08 11:05:28 +02:00
Alexandre Derumier
6f5f42e443 api: add running/pending zones/vnets/subnets/controllers
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-08 11:05:28 +02:00
Alexandre Derumier
5d3e0248bb api: generate 'running-config' state instead of version increase on apply
This is the source configuration for generate local configuration

/sdn/*.cfg are pending configs

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 18:17:19 +02:00
Alexandre Derumier
7416e82d85 don't allow subnets on vlanware vnet
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 18:17:19 +02:00
Alexandre Derumier
9dfa92025e subnet: make IPAM required and use PVE IPAM as default
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 18:17:19 +02:00
Alexandre Derumier
7fdeb44141 zones: evpn : fix raise exception
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 18:17:19 +02:00
Alexandre Derumier
53b2cc9091 zones: evpn|simple: add snat iptables rules
(use snat instead masquerade for performance)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 18:17:19 +02:00
Alexandre Derumier
e612faf6ba Fix vnet gateway for routed setup + /32 pointopoint subnet
add vnet to subnets && remove subnetlist from vnet

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 18:17:19 +02:00
Alexandre Derumier
3926d9a7b6 subnets: move api to /sdn/vnet/<vnet>/subnets && make vnet option not optionnal
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 18:17:19 +02:00
Alexandre Derumier
f6f2aa1643 subnet: disable route option for now and add dns domain format
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 18:17:19 +02:00
Thomas Lamprecht
280ffbabe6 fixup IPAMs
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-06 18:15:30 +02:00
Alexandre Derumier
ee4f339e80 add DNS plugin
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 18:12:38 +02:00
Alexandre Derumier
70b0350642 add IPAMs plugins
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-06 18:11:17 +02:00
Alexandre Derumier
5ca07ed9d4 zone: add vnet_update_hook
move verify_tag code in this hook
add mac address generation for simple && evpn plugin

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 17:30:04 +02:00
Alexandre Derumier
7024ec2b24 zones: simple|evpn: add gateway ip from subnets to vnet
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 17:30:04 +02:00
Alexandre Derumier
58a7773adc vnets: add subnets
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-10-06 17:30:04 +02:00
Alexandre Derumier
c33dd81818 add subnet plugin
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-10-06 17:30:01 +02:00
Thomas Lamprecht
a5b8d7de4c bump version to 0.4-7
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-03 14:15:52 +02:00
Thomas Lamprecht
dfe17b64bb sdn/vnets: explicitly return config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-03 14:07:59 +02:00
Thomas Lamprecht
2bd2787a3c api sdn/vnets: cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-03 14:07:36 +02:00
Thomas Lamprecht
efe1459b2f polugin simple: whitespace/cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-03 14:07:02 +02:00
Alexandre Derumier
155fa5c731 cleanup code with wrong copy/paste from Storage
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-07-03 13:46:52 +02:00
Alexandre Derumier
1d44ce7047 vnet: make tag optional and verify value in zone plugins
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-07-03 13:46:52 +02:00
Alexandre Derumier
880ae857ba add simple plugin
allow to create standalone or simple routed vnets

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-07-03 13:46:52 +02:00
Thomas Lamprecht
fc197ef2b6 white space and other minor cleanups
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-07-03 13:46:43 +02:00
Fabian Grünbichler
8dbcb0dddd build: fix erroneous install with empty DESTDIR
dh calls make in the dh_auto_build step without setting DESTDIR, so the
missing empty default target meant that we'd install all the files to
the build system during dh_auto_build, and then install them again to
the tmp build dir during dh_auto_install. obviously the former is not
something we want to do ;)

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-07-01 10:31:43 +02:00
Fabian Grünbichler
c559eac1c3 remove more variable declarations with post-ifs
usage of $mtu is always guarded by an if itself anyway, so all of these
are redundant post-ifs and can be removed.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-07-01 10:16:38 +02:00
Fabian Grünbichler
3caa7687f9 split declaration and initialization with post-if
since combining them is undefined behaviour in perl and can cause
strange side-effects.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-07-01 09:57:34 +02:00
Alexandre Derumier
5a60da84d9 use PVE::Tools::split_list for ip lists
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-07-01 09:36:40 +02:00
Thomas Lamprecht
0f70063526 fixup: drop trailing whitespaces
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-25 13:41:28 +02:00
Alexandre Derumier
4d7cc94ffd improve status
check all plumbing interfaces needed for vnets

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-06-25 13:41:14 +02:00
Thomas Lamprecht
9a19045d37 bump version to 0.4-6
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-03 14:15:45 +02:00
Thomas Lamprecht
9ddc4a6f68 status: warn only once about old or void SDN interfaces config
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-03 13:19:26 +02:00
Thomas Lamprecht
22b244471f sdn: add generate controller/zone config helpers
mostly just to have a single method to call from manager

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-03 13:13:05 +02:00
Thomas Lamprecht
cd01a0c093 generate_etc_network_config: avoid warn line info
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-06-03 11:35:37 +02:00
Alexandre Derumier
f22398365f vlan: ovs : vlanaware: use 802.1q for tunnel
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-06-03 09:50:34 +02:00
Alexandre Derumier
9825bd7178 vlan: ovs: remove twice defined ovsbridge ports
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-06-03 09:50:34 +02:00
Alexandre Derumier
82159388f2 vlan|qinq: add mtu to ovsint link port
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-06-03 09:50:34 +02:00
Alexandre Derumier
ae3f4de815 catch errors on sdn config generation
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-06-03 09:50:34 +02:00
Alexandre Derumier
880f6d610f qinq|vlan: ovs: add ovsint interfaces to ovs-ports list
if not, on reload, interfaces are unplug/replugged with packet
loss.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-06-03 09:50:34 +02:00