pve-network.git
4 weeks agoevpn controller: avoid declaration in conditional statement master
Thomas Lamprecht [Wed, 31 Aug 2022 08:56:27 +0000 (10:56 +0200)]
evpn controller: avoid declaration in conditional statement

those are quite dangerous, as the variable will keep the value from
last time the evaluation was true and still evaluate to that old, out
of date value the next time, if the condition is false then.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 weeks agoevpn controller: style fixes
Thomas Lamprecht [Wed, 31 Aug 2022 08:56:01 +0000 (10:56 +0200)]
evpn controller: style fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 weeks agofrr: config : add exit on router && routemaps.
Alexandre Derumier [Wed, 24 Aug 2022 08:56:46 +0000 (10:56 +0200)]
frr: config : add exit on router && routemaps.

added recently in last frr releases,

just to be sure to no break on future releases

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 weeks agofrr: add a local config parser and merge with generated config
Alexandre Derumier [Wed, 24 Aug 2022 08:56:45 +0000 (10:56 +0200)]
frr: add a local config parser and merge with generated config

some users with very specific config want to be able to add
custom local config and merge it with generated config

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 weeks agofrr: update config frrversion to 8.2.2
Alexandre Derumier [Wed, 24 Aug 2022 08:56:44 +0000 (10:56 +0200)]
frr: update config frrversion to 8.2.2

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
5 months agobump version to 0.7.1
Thomas Lamprecht [Thu, 28 Apr 2022 18:34:08 +0000 (20:34 +0200)]
bump version to 0.7.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
5 months agocontrollers: evpn: fix multiple exit-nodes with route-map filtering
Alexandre Derumier [Wed, 20 Apr 2022 14:19:30 +0000 (16:19 +0200)]
controllers: evpn: fix multiple exit-nodes with route-map filtering

Currently, when multiple exit-nodes are defined, each exit-nodes exchanges
their own default route, so traffic is looping between both exit nodes
instead going out.

This add a new route-map to filter received type-5 on exit node

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
6 months agozones: add del_bridge_fdb
Alexandre Derumier [Fri, 24 Sep 2021 08:51:01 +0000 (10:51 +0200)]
zones: add del_bridge_fdb

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
6 months agozones: add add_bridge_fdb
Alexandre Derumier [Fri, 24 Sep 2021 08:51:00 +0000 (10:51 +0200)]
zones: add add_bridge_fdb

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
6 months agozones : tap_plug: add support for disable bridge learning
Alexandre Derumier [Fri, 24 Sep 2021 08:50:59 +0000 (10:50 +0200)]
zones : tap_plug: add support for disable bridge learning

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
6 months agovnets: fix get_vnet
Alexandre Derumier [Fri, 24 Sep 2021 08:50:58 +0000 (10:50 +0200)]
vnets: fix get_vnet

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agocontrollers: evpn : use frr restart if reload fail
Alexandre Derumier [Wed, 23 Feb 2022 07:11:43 +0000 (08:11 +0100)]
controllers: evpn : use frr restart if reload fail

frr reload is not 100% perfect, and sometime is not able to
apply correctly changes.

Use restart in this case to be sure to have the correct config.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agobuildsys: change upload dist to bullseye
Thomas Lamprecht [Mon, 14 Feb 2022 07:07:46 +0000 (08:07 +0100)]
buildsys: change upload dist to bullseye

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agobump version to 0.7.0
Thomas Lamprecht [Sun, 13 Feb 2022 14:04:54 +0000 (15:04 +0100)]
bump version to 0.7.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
7 months agocontrollers: evpn : remove ip forwarding, ipv6 forwarding and add frr version
Alexandre Derumier [Fri, 11 Feb 2022 09:33:31 +0000 (10:33 +0100)]
controllers: evpn : remove ip forwarding, ipv6 forwarding and add frr version

Forwarding is enabled by default since frr 7.4
also add frr version && reorder some options to avoid warning message on frr reload

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agocontrollers: bgp : remove bgp network import-check
Alexandre Derumier [Fri, 11 Feb 2022 09:33:30 +0000 (10:33 +0100)]
controllers: bgp : remove bgp network import-check

already enabled since frr 7.4

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agocontrollers: evpn : remove "no bgp ebgp-requires-policy"
Alexandre Derumier [Fri, 11 Feb 2022 09:33:29 +0000 (10:33 +0100)]
controllers: evpn : remove "no bgp ebgp-requires-policy"

It's already disabled in the default datacenter profile since frr 7.4

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agozones: evpn : add rt-import
Alexandre Derumier [Fri, 11 Feb 2022 09:33:28 +0000 (10:33 +0100)]
zones: evpn : add rt-import

Allow to import external route target list from external evpn network
(main usecase is DC inter-connect)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agocontrollers: evpn: add missing bgp router-id in vrf
Alexandre Derumier [Fri, 11 Feb 2022 09:33:27 +0000 (10:33 +0100)]
controllers: evpn: add missing bgp router-id in vrf

evpn route distinguisher is compute from bgp router-id.
if not defined, it take random ip or 0.0.0.0 and could result collisions between hosts

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agocontrollers: evpn/bgp : add exitnodes-primary && rework route-map
Alexandre Derumier [Fri, 11 Feb 2022 09:33:26 +0000 (10:33 +0100)]
controllers: evpn/bgp : add exitnodes-primary && rework route-map

exitnodes-primary option force traffic to a primary node
A route-map is used to increase metric on backup nodes.
This can be usefull for snat or avoid asymetric routing.

Route-map is rework to handle multiple sequences of route map.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agocontrollers: evpn : add min/max value to asn
Alexandre Derumier [Fri, 11 Feb 2022 09:33:25 +0000 (10:33 +0100)]
controllers: evpn : add min/max value to asn

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agocontrollers: bgp: add bgp-multipath-as-path-relax option
Alexandre Derumier [Fri, 11 Feb 2022 09:33:24 +0000 (10:33 +0100)]
controllers: bgp: add bgp-multipath-as-path-relax option

Some users need it to do ecmp when peering with 2 differents asn

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agocontrollers: bgp: use loopback ip src for loopback network
Alexandre Derumier [Fri, 11 Feb 2022 09:33:23 +0000 (10:33 +0100)]
controllers: bgp: use loopback ip src for loopback network

can be usefull if we want to join other loopback ips,
like a ceph cluster in the underlay network

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
7 months agozones: status : skip node if node don't have the zone
Alexandre Derumier [Fri, 11 Feb 2022 09:33:22 +0000 (10:33 +0100)]
zones: status : skip node if node don't have the zone

reported by forum user:
https://forum.proxmox.com/threads/proxmox-sdn-incorrect-node-deployment.99834/

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
8 months agocontrollers: allow minus and underscore in IDs again
Thomas Lamprecht [Tue, 1 Feb 2022 10:19:43 +0000 (11:19 +0100)]
controllers: allow minus and underscore in IDs again

commit 7c5b0f6 not only reduced the possible length but also the
accepted character set, revert the latter partially again and allow
using minus and underscore for characters not being the start or end.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 months agocontrollers: indentation fixes
Thomas Lamprecht [Tue, 1 Feb 2022 10:18:06 +0000 (11:18 +0100)]
controllers: indentation fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
10 months agobump version to 0.6.2
Thomas Lamprecht [Fri, 12 Nov 2021 18:34:24 +0000 (19:34 +0100)]
bump version to 0.6.2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
10 months agovnets: alias: fix regex
Alexandre Derumier [Fri, 5 Nov 2021 08:06:45 +0000 (09:06 +0100)]
vnets: alias: fix regex

10 months agozones: evpn: add disable-arp-nd-suppression option
Alexandre Derumier [Fri, 5 Nov 2021 08:06:44 +0000 (09:06 +0100)]
zones: evpn: add disable-arp-nd-suppression option

arp-nd-suppression can break ip mobility,
when an ip from a vm is moved to another vm, with different mac.
For example, with a keepalived vip, the garp is filtered.

10 months agoapi2: zones: fix update
Alexandre Derumier [Fri, 5 Nov 2021 08:06:43 +0000 (09:06 +0100)]
api2: zones: fix update

10 months agovnet/subnet : add skipdns option
Alexandre Derumier [Fri, 5 Nov 2021 08:06:41 +0000 (09:06 +0100)]
vnet/subnet : add skipdns option

allow to register ip to ipam without dns registration.
can be used for temp/pending ip for example

13 months agovnet : alias : check pattern
Alexandre Derumier [Mon, 23 Aug 2021 13:22:17 +0000 (15:22 +0200)]
vnet : alias : check pattern

fix : https://bugzilla.proxmox.com/show_bug.cgi?id=2966
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
13 months agoevpn: add exitnodes-local-routing
Alexandre Derumier [Mon, 23 Aug 2021 13:22:16 +0000 (15:22 +0200)]
evpn: add exitnodes-local-routing

This option allow an exit-node to reach itself a guest in evpn network.

Forum user have requested it, the exitnode need to reach virtual dns server in evpn.

This use a veth-pair instead a simple leak.
It's not enable by default is slowing down a little bit the routing.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
13 months agoevpn : add advertise-subnets option
Alexandre Derumier [Mon, 23 Aug 2021 13:22:15 +0000 (15:22 +0200)]
evpn : add advertise-subnets option

allow to advertise type5 routes for evpn subnets, if vms are silents hosts.
(don't do any traffic, so anycast gateway don't have their mac-ip)

fix: https://bugzilla.proxmox.com/show_bug.cgi?id=3571
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
13 months agoevpn : add "ip route del vrf vrf_myzone unreachable default metric 4278198272" on...
Alexandre Derumier [Mon, 23 Aug 2021 13:22:14 +0000 (15:22 +0200)]
evpn : add "ip route del vrf vrf_myzone unreachable default metric 4278198272" on exit node

This is breaking routing between the evpn vrf && default vrf leak  on exit node only

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
13 months agoRevert "evpn : remove "ip route add vrf vrf_myzone unreachable default metric 4278198...
Thomas Lamprecht [Tue, 24 Aug 2021 12:23:53 +0000 (14:23 +0200)]
Revert "evpn : remove "ip route add vrf vrf_myzone unreachable default metric 4278198272" on exit node"

replaced by another series
https://lists.proxmox.com/pipermail/pve-devel/2021-August/049771.html

This reverts commit 95e2f20f5c70f0cd0aa4fe80dad35dace9dc165d.

13 months agoget_local_vnets: add permissions on /sdn/vnets/*
Alexandre Derumier [Thu, 5 Aug 2021 14:59:38 +0000 (16:59 +0200)]
get_local_vnets: add permissions on /sdn/vnets/*

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
14 months agoevpn : remove "ip route add vrf vrf_myzone unreachable default metric 4278198272...
Alexandre Derumier [Wed, 21 Jul 2021 06:22:28 +0000 (08:22 +0200)]
evpn : remove "ip route add vrf vrf_myzone unreachable default metric 4278198272" on exit node

This is breaking routing between the evpn vrf && default vrf leak  on exit node only

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
15 months agobump version to 0.6.1
Thomas Lamprecht [Mon, 5 Jul 2021 17:07:55 +0000 (19:07 +0200)]
bump version to 0.6.1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
15 months agosubnets/ipam : fix is_gateway
Alexandre Derumier [Fri, 4 Jun 2021 11:25:00 +0000 (13:25 +0200)]
subnets/ipam : fix is_gateway

- add lost is_gateway in subnets subnet when creating subnet
- allow reuse ip as gateway in subnet create if it's already flagged gateway in the ipamdb
- add tests

15 months agovnets: subroutines: return if !$vnetid
Alexandre Derumier [Fri, 4 Jun 2021 11:24:59 +0000 (13:24 +0200)]
vnets: subroutines: return if !$vnetid

15 months agoadd vnets test + ipam fixes
Alexandre Derumier [Fri, 4 Jun 2021 11:24:58 +0000 (13:24 +0200)]
add vnets test + ipam fixes

- add vnets tests with multiple subnets
- fix pve ipam ipv6 with next_free_ip (ipv6 don't have network && broadcast address)
- fix vnet next_free_ip with no ipam

15 months agosdn: get_local_vnets : add ipam && vlanaware values
Alexandre Derumier [Fri, 4 Jun 2021 11:24:57 +0000 (13:24 +0200)]
sdn: get_local_vnets : add ipam && vlanaware values

to be able to use them in ui bridgeselector

16 months agobump version to 0.6.0
Thomas Lamprecht [Mon, 10 May 2021 08:45:56 +0000 (10:45 +0200)]
bump version to 0.6.0

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agod/source: switch to native versioning
Thomas Lamprecht [Mon, 10 May 2021 08:45:53 +0000 (10:45 +0200)]
d/source: switch to native versioning

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
16 months agozones: simple|evpn : only enable ip-forward if gateway is defined on the subnet
Alexandre Derumier [Mon, 10 May 2021 06:40:58 +0000 (08:40 +0200)]
zones: simple|evpn : only enable ip-forward if gateway is defined on the subnet

or ifquery report an error

16 months agosubnets: fix add|del subnets withtout ipam
Alexandre Derumier [Sat, 8 May 2021 05:51:36 +0000 (07:51 +0200)]
subnets: fix add|del subnets withtout ipam

16 months agosubnets: tests: add noipam test
Alexandre Derumier [Sat, 8 May 2021 05:51:35 +0000 (07:51 +0200)]
subnets: tests: add noipam test

17 months agoapi: zones: code/indentation/format cleanups
Thomas Lamprecht [Wed, 5 May 2021 10:16:26 +0000 (12:16 +0200)]
api: zones: code/indentation/format cleanups

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months agoapi2: zone: check ipam change if no ipam was defined before too
Alexandre Derumier [Thu, 29 Apr 2021 23:15:27 +0000 (01:15 +0200)]
api2: zone: check ipam change if no ipam was defined before too

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
17 months agoqinq: code cleanup and whitespace/indendation fixes
Thomas Lamprecht [Wed, 5 May 2021 06:24:22 +0000 (08:24 +0200)]
qinq: code cleanup and whitespace/indendation fixes

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
17 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
19 months 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>
21 months 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>
21 months 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>
21 months 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>
21 months 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>
21 months 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>
21 months 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>
21 months 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>
21 months 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>
21 months 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>
21 months 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>
22 months 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>
22 months 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>