5
0
mirror of git://git.proxmox.com/git/pve-network.git synced 2025-01-21 22:03:53 +03:00

481 Commits

Author SHA1 Message Date
Alexandre Derumier
36fecf55d0 sdn: pending_config: initialize empty pending key
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2021-02-06 14:50:44 +01:00
Alexandre Derumier
82f6b09f93 add zones && controllers unit tests
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18 18:02:47 +01:00
Alexandre Derumier
9cef13e929 controllers: add generate_controller_rawconfig
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18 18:02:47 +01:00
Alexandre Derumier
fdf22d5f6b zones: add bridge helpers
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18 18:02:47 +01:00
Alexandre Derumier
d595c034b4 subnets: api : add missing param in on_update_hook for update
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18 17:58:22 +01:00
Alexandre Derumier
4de2337aef zones: plugin : readd encode/decode value
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18 17:58:22 +01:00
Alexandre Derumier
b634e5772a zones: evpn: fix exitnodes for snat
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18 17:58:22 +01:00
Alexandre Derumier
b850741e15 ipam : pve: don't register hostname/description
we already have this informations in vm/ct config,
and we are limited in space in pmxcfs

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18 17:58:22 +01:00
Alexandre Derumier
aba0731c3f use canonical ipv6 address (RFC 5952) everywhere
we want only 1 format for ipam database

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18 17:58:22 +01:00
Alexandre Derumier
c1dff7b251 get_local_vnets: display vnet alias in comments
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18 17:58:22 +01:00
Alexandre Derumier
67a0f8157a evpn: frr: use datacenter default profile (lower timeouts)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18 17:58:22 +01:00
Alexandre Derumier
9f4f6c2e4b zones: evpn/simple: add missing mask to gateway address
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-11-27 10:56:49 +01:00
Alexandre Derumier
d101e5edaa vnets: add missing use SDN
fix get_vnet not working with running config
and block vm start

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-11-27 10:56:43 +01:00
Alexandre Derumier
e382bf711d sdn: fix : pending parser 2020-11-25 12:04:00 +01:00
Alexandre Derumier
3a437257a0 update test documentation 2020-11-25 12:04:00 +01:00
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