]> git.proxmox.com Git - pve-network.git/log
pve-network.git
2 years agozone: qinq: add vnet without tag support
Alexandre Derumier [Thu, 29 Apr 2021 21:00:17 +0000 (23:00 +0200)]
zone: qinq: add vnet without tag support

some user want to be able to define a vnet without vlan,
so at qinq zone level, to be able to see traffic from others vnets of this
qinq zone.
Some example of usage is a inter-vnet firewall/gateway vm.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2 years agod/control: fix description
Thomas Lamprecht [Wed, 5 May 2021 04:50:49 +0000 (06:50 +0200)]
d/control: fix description

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agozones: qinq: vlanaware bridge: add tests with multiple vnets/zones
Alexandre Derumier [Thu, 29 Apr 2021 11:17:59 +0000 (13:17 +0200)]
zones: qinq: vlanaware bridge: add tests with multiple vnets/zones

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: qinq: classic bridge: fix bridge zone name with multiple zones/vnets
Alexandre Derumier [Thu, 29 Apr 2021 11:17:58 +0000 (13:17 +0200)]
zones: qinq: classic bridge: fix bridge zone name with multiple zones/vnets

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: qinq: ovs: fix duplicate ovs_ports with multiple zones/vnets
Alexandre Derumier [Thu, 29 Apr 2021 11:17:57 +0000 (13:17 +0200)]
zones: qinq: ovs: fix duplicate ovs_ports with multiple zones/vnets

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agobump version to 0.5-2
Thomas Lamprecht [Wed, 28 Apr 2021 16:26:15 +0000 (18:26 +0200)]
bump version to 0.5-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agozone status: mark vnets with unknown zone as failed
Thomas Lamprecht [Wed, 28 Apr 2021 14:37:35 +0000 (16:37 +0200)]
zone status: mark vnets with unknown zone as failed

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopossible bug fix for falsy named zones
Thomas Lamprecht [Wed, 28 Apr 2021 14:36:59 +0000 (16:36 +0200)]
possible bug fix for falsy named zones

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocode/whitespace cleanup
Thomas Lamprecht [Wed, 28 Apr 2021 14:36:13 +0000 (16:36 +0200)]
code/whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosdn: rename config to running_config
Thomas Lamprecht [Wed, 28 Apr 2021 14:07:54 +0000 (16:07 +0200)]
sdn: rename config to running_config

to reduce my confusion..

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agozones: IPAM config is optional for a zone
Thomas Lamprecht [Wed, 28 Apr 2021 11:45:25 +0000 (13:45 +0200)]
zones: IPAM config is optional for a zone

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agozones: code/indendation cleanup
Thomas Lamprecht [Wed, 28 Apr 2021 11:45:11 +0000 (13:45 +0200)]
zones: code/indendation cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 0.5-1
Thomas Lamprecht [Mon, 26 Apr 2021 14:51:38 +0000 (16:51 +0200)]
bump version to 0.5-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/control: bump versioned dependency for pve-cluster
Thomas Lamprecht [Mon, 26 Apr 2021 14:11:36 +0000 (16:11 +0200)]
d/control: bump versioned dependency for pve-cluster

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocontrollers: increase controllerid to 64 characters max
Alexandre Derumier [Wed, 21 Apr 2021 21:49:26 +0000 (23:49 +0200)]
controllers: increase controllerid to 64 characters max

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: simple: fix ip-forward && ipv6 snat
Alexandre Derumier [Wed, 21 Apr 2021 21:49:25 +0000 (23:49 +0200)]
zones: simple: fix ip-forward && ipv6 snat

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: evpn: fix arp-accept && ip-forward + ipv6 snat
Alexandre Derumier [Wed, 21 Apr 2021 21:49:24 +0000 (23:49 +0200)]
zones: evpn: fix arp-accept && ip-forward + ipv6 snat

they were lost during subnet work

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: evpn: move vnet mac option to evpn zone plugin
Alexandre Derumier [Wed, 21 Apr 2021 21:49:23 +0000 (23:49 +0200)]
zones: evpn: move vnet mac option to evpn zone plugin

This is only used by evpn plugin, and we can have
same anycast mac for all vnets like cisco,juniper,arista...

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agobgp: add ebgp_multihop option
Alexandre Derumier [Wed, 21 Apr 2021 21:49:22 +0000 (23:49 +0200)]
bgp: add ebgp_multihop option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agotests: fix evpn vrf
Alexandre Derumier [Wed, 21 Apr 2021 21:49:21 +0000 (23:49 +0200)]
tests: fix evpn vrf

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agotests: add subnets tests
Alexandre Derumier [Sun, 7 Feb 2021 14:07:31 +0000 (15:07 +0100)]
tests: add subnets tests

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: evpn: add a default unreachable, to prevent vrf leak
Alexandre Bruyelles [Thu, 8 Apr 2021 08:45:13 +0000 (10:45 +0200)]
zones: evpn: add a default unreachable, to prevent vrf leak

On Linux, when no route is found in a vrf, it somehow fallback
to the default routing table. In our case, that means a leak
from the overlay to the underlay.
Adding a low priority unreachable catch-all route is the way to go, as
per the doc: https://www.kernel.org/doc/Documentation/networking/vrf.txt

Signed-off-by: Alexandre Bruyelles <git@jack.fr.eu.org>
3 years agod/control: record libnet-subnet-perl build dependency
Thomas Lamprecht [Sat, 6 Feb 2021 13:53:47 +0000 (14:53 +0100)]
d/control: record libnet-subnet-perl build dependency

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agofix coding style NetAddr::IP->new
Alexandre Derumier [Tue, 5 Jan 2021 09:35:36 +0000 (10:35 +0100)]
fix coding style NetAddr::IP->new

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosubnets: add add_subnet/del_subnet
Alexandre Derumier [Tue, 5 Jan 2021 09:35:34 +0000 (10:35 +0100)]
subnets: add add_subnet/del_subnet

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosubnets: convert dns private function to public sub
Alexandre Derumier [Tue, 5 Jan 2021 09:35:33 +0000 (10:35 +0100)]
subnets: convert dns private function to public sub

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agotests: add dns tests
Alexandre Derumier [Tue, 5 Jan 2021 09:35:32 +0000 (10:35 +0100)]
tests: add dns tests

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agodns: add noerr param
Alexandre Derumier [Tue, 5 Jan 2021 09:35:31 +0000 (10:35 +0100)]
dns: add noerr param

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agotests: add ipams tests
Alexandre Derumier [Tue, 5 Jan 2021 09:35:30 +0000 (10:35 +0100)]
tests: add ipams tests

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoipams: add noerr param
Alexandre Derumier [Tue, 5 Jan 2021 09:35:29 +0000 (10:35 +0100)]
ipams: add noerr param

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoipam: phpipam: rename get_internal to get_prefix_id (like netbox)
Alexandre Derumier [Tue, 5 Jan 2021 09:35:28 +0000 (10:35 +0100)]
ipam: phpipam: rename get_internal to get_prefix_id (like netbox)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agodns: add update record && fix powerdns
Alexandre Derumier [Tue, 5 Jan 2021 09:35:27 +0000 (10:35 +0100)]
dns: add update record && fix powerdns

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosubnets: fix del_ip rollback
Alexandre Derumier [Tue, 5 Jan 2021 09:35:26 +0000 (10:35 +0100)]
subnets: fix del_ip rollback

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agodns/ipam : move api_request helper to sdn module
Alexandre Derumier [Tue, 5 Jan 2021 09:35:25 +0000 (10:35 +0100)]
dns/ipam : move api_request helper to sdn module

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoipam: add update_ip
Alexandre Derumier [Tue, 5 Jan 2021 09:35:24 +0000 (10:35 +0100)]
ipam: add update_ip

used to update ip address options like hostname, mac,...

don't allow to change ip address, as some ipam don't support it.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoipams: add mac address
Alexandre Derumier [Tue, 5 Jan 2021 09:35:23 +0000 (10:35 +0100)]
ipams: add mac address

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosdn: pending_config: initialize empty pending key
Alexandre Derumier [Tue, 5 Jan 2021 09:35:22 +0000 (10:35 +0100)]
sdn: pending_config: initialize empty pending key

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoadd zones && controllers unit tests
Alexandre Derumier [Wed, 9 Dec 2020 15:11:19 +0000 (16:11 +0100)]
add zones && controllers unit tests

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agocontrollers: add generate_controller_rawconfig
Alexandre Derumier [Wed, 9 Dec 2020 15:11:18 +0000 (16:11 +0100)]
controllers: add generate_controller_rawconfig

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: add bridge helpers
Alexandre Derumier [Wed, 9 Dec 2020 15:11:17 +0000 (16:11 +0100)]
zones: add bridge helpers

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosubnets: api : add missing param in on_update_hook for update
Alexandre Derumier [Thu, 3 Dec 2020 09:19:42 +0000 (10:19 +0100)]
subnets: api : add missing param in on_update_hook for update

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: plugin : readd encode/decode value
Alexandre Derumier [Thu, 3 Dec 2020 09:19:41 +0000 (10:19 +0100)]
zones: plugin : readd encode/decode value

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: evpn: fix exitnodes for snat
Alexandre Derumier [Thu, 3 Dec 2020 09:19:40 +0000 (10:19 +0100)]
zones: evpn: fix exitnodes for snat

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoipam : pve: don't register hostname/description
Alexandre Derumier [Thu, 3 Dec 2020 09:19:39 +0000 (10:19 +0100)]
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>
3 years agouse canonical ipv6 address (RFC 5952) everywhere
Alexandre Derumier [Thu, 3 Dec 2020 09:19:38 +0000 (10:19 +0100)]
use canonical ipv6 address (RFC 5952) everywhere

we want only 1 format for ipam database

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoget_local_vnets: display vnet alias in comments
Alexandre Derumier [Thu, 3 Dec 2020 09:19:37 +0000 (10:19 +0100)]
get_local_vnets: display vnet alias in comments

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoevpn: frr: use datacenter default profile (lower timeouts)
Alexandre Derumier [Thu, 3 Dec 2020 09:19:36 +0000 (10:19 +0100)]
evpn: frr: use datacenter default profile (lower timeouts)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: evpn/simple: add missing mask to gateway address
Alexandre Derumier [Thu, 26 Nov 2020 14:29:35 +0000 (15:29 +0100)]
zones: evpn/simple: add missing mask to gateway address

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agovnets: add missing use SDN
Alexandre Derumier [Thu, 26 Nov 2020 13:30:51 +0000 (14:30 +0100)]
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>
3 years agosdn: fix : pending parser
Alexandre Derumier [Wed, 25 Nov 2020 09:01:39 +0000 (10:01 +0100)]
sdn: fix : pending parser

3 years agoupdate test documentation
Alexandre Derumier [Wed, 25 Nov 2020 09:01:38 +0000 (10:01 +0100)]
update test documentation

3 years agozones: evpn : add support for loopback
Alexandre Derumier [Wed, 25 Nov 2020 09:01:37 +0000 (10:01 +0100)]
zones: evpn : add support for loopback

3 years agocontrollers: improve bgp-evpn
Alexandre Derumier [Wed, 25 Nov 2020 09:01:36 +0000 (10:01 +0100)]
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

3 years agouse statements cleanup
Thomas Lamprecht [Thu, 8 Oct 2020 09:11:04 +0000 (11:11 +0200)]
use statements cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump versioned dependency to pve-cluster to 6.2-2
Thomas Lamprecht [Tue, 6 Oct 2020 07:58:00 +0000 (09:58 +0200)]
bump versioned dependency to pve-cluster to 6.2-2

for new registered .configs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoupdate documentation
Alexandre Derumier [Mon, 5 Oct 2020 15:09:12 +0000 (17:09 +0200)]
update documentation

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoipam: add hostname/description to ipam db
Alexandre Derumier [Mon, 5 Oct 2020 15:09:11 +0000 (17:09 +0200)]
ipam: add hostname/description to ipam db

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agovnets: allow duplicate tags in differents zones
Alexandre Derumier [Mon, 5 Oct 2020 15:09:09 +0000 (17:09 +0200)]
vnets: allow duplicate tags in differents zones

only vxlan need to be unique globally.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosubnets/ipam: allow same subnet on different zones
Alexandre Derumier [Mon, 5 Oct 2020 15:09:08 +0000 (17:09 +0200)]
subnets/ipam: allow same subnet on different zones

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosmall bugfixes
Alexandre Derumier [Mon, 5 Oct 2020 15:09:05 +0000 (17:09 +0200)]
small bugfixes

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agomove ipam option from subnet to zone
Alexandre Derumier [Mon, 5 Oct 2020 15:09:07 +0000 (17:09 +0200)]
move ipam option from subnet to zone

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agomove dns options from subnets to zone
Alexandre Derumier [Mon, 5 Oct 2020 15:09:06 +0000 (17:09 +0200)]
move dns options from subnets to zone

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoapi: add running/pending zones/vnets/subnets/controllers
Alexandre Derumier [Mon, 5 Oct 2020 15:09:04 +0000 (17:09 +0200)]
api: add running/pending zones/vnets/subnets/controllers

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoapi: generate 'running-config' state instead of version increase on apply
Alexandre Derumier [Mon, 5 Oct 2020 15:08:46 +0000 (17:08 +0200)]
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>
3 years agodon't allow subnets on vlanware vnet
Alexandre Derumier [Mon, 5 Oct 2020 15:09:02 +0000 (17:09 +0200)]
don't allow subnets on vlanware vnet

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosubnet: make IPAM required and use PVE IPAM as default
Alexandre Derumier [Mon, 5 Oct 2020 15:09:01 +0000 (17:09 +0200)]
subnet: make IPAM required and use PVE IPAM as default

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: evpn : fix raise exception
Alexandre Derumier [Mon, 5 Oct 2020 15:09:00 +0000 (17:09 +0200)]
zones: evpn : fix raise exception

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agozones: evpn|simple: add snat iptables rules
Alexandre Derumier [Mon, 5 Oct 2020 15:08:56 +0000 (17:08 +0200)]
zones: evpn|simple: add snat iptables rules

(use snat instead masquerade for performance)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoFix vnet gateway for routed setup + /32 pointopoint subnet
Alexandre Derumier [Mon, 5 Oct 2020 15:08:53 +0000 (17:08 +0200)]
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>
3 years agosubnets: move api to /sdn/vnet/<vnet>/subnets && make vnet option not optionnal
Alexandre Derumier [Mon, 5 Oct 2020 15:08:59 +0000 (17:08 +0200)]
subnets: move api to /sdn/vnet/<vnet>/subnets && make vnet option not optionnal

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agosubnet: disable route option for now and add dns domain format
Alexandre Derumier [Mon, 5 Oct 2020 15:08:57 +0000 (17:08 +0200)]
subnet: disable route option for now and add dns domain format

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agofixup IPAMs
Thomas Lamprecht [Tue, 6 Oct 2020 16:15:30 +0000 (18:15 +0200)]
fixup IPAMs

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoadd DNS plugin
Alexandre Derumier [Mon, 5 Oct 2020 15:08:52 +0000 (17:08 +0200)]
add DNS plugin

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoadd IPAMs plugins
Alexandre Derumier [Mon, 5 Oct 2020 15:08:47 +0000 (17:08 +0200)]
add IPAMs plugins

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agozone: add vnet_update_hook
Alexandre Derumier [Mon, 5 Oct 2020 15:08:42 +0000 (17:08 +0200)]
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>
3 years agozones: simple|evpn: add gateway ip from subnets to vnet
Alexandre Derumier [Mon, 5 Oct 2020 15:08:41 +0000 (17:08 +0200)]
zones: simple|evpn: add gateway ip from subnets to vnet

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agovnets: add subnets
Alexandre Derumier [Mon, 5 Oct 2020 15:08:39 +0000 (17:08 +0200)]
vnets: add subnets

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoadd subnet plugin
Alexandre Derumier [Mon, 5 Oct 2020 15:08:38 +0000 (17:08 +0200)]
add subnet plugin

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 0.4-7
Thomas Lamprecht [Fri, 3 Jul 2020 12:15:52 +0000 (14:15 +0200)]
bump version to 0.4-7

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosdn/vnets: explicitly return config
Thomas Lamprecht [Fri, 3 Jul 2020 12:07:59 +0000 (14:07 +0200)]
sdn/vnets: explicitly return config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoapi sdn/vnets: cleanups
Thomas Lamprecht [Fri, 3 Jul 2020 12:07:36 +0000 (14:07 +0200)]
api sdn/vnets: cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agopolugin simple: whitespace/cleanups
Thomas Lamprecht [Fri, 3 Jul 2020 12:07:02 +0000 (14:07 +0200)]
polugin simple: whitespace/cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agocleanup code with wrong copy/paste from Storage
Alexandre Derumier [Wed, 1 Jul 2020 07:10:38 +0000 (09:10 +0200)]
cleanup code with wrong copy/paste from Storage

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agovnet: make tag optional and verify value in zone plugins
Alexandre Derumier [Wed, 1 Jul 2020 07:10:37 +0000 (09:10 +0200)]
vnet: make tag optional and verify value in zone plugins

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoadd simple plugin
Alexandre Derumier [Wed, 1 Jul 2020 07:10:36 +0000 (09:10 +0200)]
add simple plugin

allow to create standalone or simple routed vnets

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agowhite space and other minor cleanups
Thomas Lamprecht [Fri, 3 Jul 2020 11:46:39 +0000 (13:46 +0200)]
white space and other minor cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobuild: fix erroneous install with empty DESTDIR
Fabian Grünbichler [Wed, 1 Jul 2020 08:21:50 +0000 (10:21 +0200)]
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>
3 years agoremove more variable declarations with post-ifs
Fabian Grünbichler [Wed, 1 Jul 2020 08:16:38 +0000 (10:16 +0200)]
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>
3 years agosplit declaration and initialization with post-if
Fabian Grünbichler [Wed, 1 Jul 2020 07:57:32 +0000 (09:57 +0200)]
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>
3 years agouse PVE::Tools::split_list for ip lists
Alexandre Derumier [Tue, 30 Jun 2020 12:25:29 +0000 (14:25 +0200)]
use PVE::Tools::split_list for ip lists

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agofixup: drop trailing whitespaces
Thomas Lamprecht [Thu, 25 Jun 2020 11:41:28 +0000 (13:41 +0200)]
fixup: drop trailing whitespaces

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoimprove status
Alexandre Derumier [Fri, 19 Jun 2020 11:47:07 +0000 (13:47 +0200)]
improve status

check all plumbing interfaces needed for vnets

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agobump version to 0.4-6
Thomas Lamprecht [Wed, 3 Jun 2020 12:15:45 +0000 (14:15 +0200)]
bump version to 0.4-6

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agostatus: warn only once about old or void SDN interfaces config
Thomas Lamprecht [Wed, 3 Jun 2020 11:19:26 +0000 (13:19 +0200)]
status: warn only once about old or void SDN interfaces config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosdn: add generate controller/zone config helpers
Thomas Lamprecht [Wed, 3 Jun 2020 09:40:46 +0000 (11:40 +0200)]
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>
3 years agogenerate_etc_network_config: avoid warn line info
Thomas Lamprecht [Wed, 3 Jun 2020 09:35:37 +0000 (11:35 +0200)]
generate_etc_network_config: avoid warn line info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovlan: ovs : vlanaware: use 802.1q for tunnel
Alexandre Derumier [Tue, 2 Jun 2020 09:20:27 +0000 (11:20 +0200)]
vlan: ovs : vlanaware: use 802.1q for tunnel

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agovlan: ovs: remove twice defined ovsbridge ports
Alexandre Derumier [Tue, 2 Jun 2020 09:20:26 +0000 (11:20 +0200)]
vlan: ovs: remove twice defined ovsbridge ports

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agovlan|qinq: add mtu to ovsint link port
Alexandre Derumier [Tue, 2 Jun 2020 09:20:25 +0000 (11:20 +0200)]
vlan|qinq: add mtu to ovsint link port

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agocatch errors on sdn config generation
Alexandre Derumier [Tue, 2 Jun 2020 09:20:24 +0000 (11:20 +0200)]
catch errors on sdn config generation

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>