]> git.proxmox.com Git - pve-network.git/log
pve-network.git
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>
3 years agoqinq|vlan: ovs: add ovsint interfaces to ovs-ports list
Alexandre Derumier [Tue, 2 Jun 2020 09:20:23 +0000 (11:20 +0200)]
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>
3 years agovlan: ovs: use dot1q-tunnel when vlanaware is enabled
Alexandre Derumier [Tue, 2 Jun 2020 09:20:22 +0000 (11:20 +0200)]
vlan: ovs: use dot1q-tunnel when vlanaware is enabled

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoadd vnet vlan-aware option
Alexandre Derumier [Tue, 2 Jun 2020 09:20:21 +0000 (11:20 +0200)]
add vnet vlan-aware option

Some users would like to be able to defined vlans at
vm level, or allow trunks,  on top of already
tagged vnet. (including vlan on top of vxlan tunnel)

Allow it on all layer2 plugins, and add a warn
for evpn layer3 plugin.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoqinq: improve schema
Thomas Lamprecht [Tue, 19 May 2020 19:38:53 +0000 (21:38 +0200)]
qinq: improve schema

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 0.4-5
Thomas Lamprecht [Tue, 19 May 2020 19:23:09 +0000 (21:23 +0200)]
bump version to 0.4-5

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovxlan: prefix interfaces
Alexandre Derumier [Tue, 19 May 2020 16:37:45 +0000 (18:37 +0200)]
vxlan: prefix interfaces

vnets can have random name, prefix other interfaces to avoid conflicts

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoevpn: prefix interfaces
Alexandre Derumier [Tue, 19 May 2020 16:37:44 +0000 (18:37 +0200)]
evpn: prefix interfaces

vnets can have random name, prefix other interfaces to avoid conflicts

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoqinq: use new model + ovs/classic bridge support
Alexandre Derumier [Tue, 19 May 2020 16:37:43 +0000 (18:37 +0200)]
qinq: use new model + ovs/classic bridge support

Always create a vnet bridge for each vnet, and avoid to tag
vm port directly.

As we don't manage tap|veth vlan tag in /etc/network/interfaces,
this could break on reload if user change vlan value on a vnet.

ovs

3 years agovlan: use new model
Alexandre Derumier [Tue, 19 May 2020 16:37:42 +0000 (18:37 +0200)]
vlan: use new model

Always create a vnet bridge for each vnet, and avoid to tag
vm port directly.

As we don't manage tap|veth vlan tag in /etc/network/interfaces,
this could break on reload if user change vlan value on a vnet.

ovs

3 years agoretrict vnet name to 8 characters
Alexandre Derumier [Tue, 19 May 2020 16:37:41 +0000 (18:37 +0200)]
retrict vnet name to 8 characters

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agorestrict zone name to 8 characters
Alexandre Derumier [Tue, 19 May 2020 16:37:40 +0000 (18:37 +0200)]
restrict zone name to 8 characters

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agoapi: fix reload all UPID handling
Thomas Lamprecht [Tue, 12 May 2020 12:48:31 +0000 (14:48 +0200)]
api: fix reload all UPID handling

run_command returns the exit code, we need to parse out the UPID from
the outfunc.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agobump version to 0.4-4
Thomas Lamprecht [Sun, 10 May 2020 15:08:37 +0000 (17:08 +0200)]
bump version to 0.4-4

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agovlan plugin: add support for no vlan-aware bridge
Alexandre Derumier [Fri, 8 May 2020 09:00:44 +0000 (11:00 +0200)]
vlan plugin: add support for no vlan-aware bridge

Some users could have problem with vlan-aware and some nics.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
3 years agod/control: recommend frr-pythontools, ifupdown2
Thomas Lamprecht [Wed, 6 May 2020 10:29:28 +0000 (12:29 +0200)]
d/control: recommend frr-pythontools, ifupdown2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agozones: improve error messages and code style
Thomas Lamprecht [Wed, 6 May 2020 10:29:06 +0000 (12:29 +0200)]
zones: improve error messages and code style

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agoonly parse version if local sdn file exists
Stoiko Ivanov [Tue, 5 May 2020 15:22:01 +0000 (17:22 +0200)]
only parse version if local sdn file exists

if a file does not exist PVE::Tools::file_read_firstline returns undef.

This happens e.g. if you install the libpve-network-perl package before
creating the local sdn file.

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
3 years agobump version to 0.4-3
Thomas Lamprecht [Sat, 2 May 2020 17:20:37 +0000 (19:20 +0200)]
bump version to 0.4-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agod/triggers: activate-noawait pve-api-updates
Thomas Lamprecht [Sun, 3 May 2020 16:56:26 +0000 (18:56 +0200)]
d/triggers: activate-noawait pve-api-updates

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agosdn version: default to 0 for undef/empty-string
Thomas Lamprecht [Sun, 3 May 2020 16:55:32 +0000 (18:55 +0200)]
sdn version: default to 0 for undef/empty-string

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
3 years agozones: status : use version to compare local sdn vs cluster sdn
Alexandre Derumier [Mon, 13 Apr 2020 06:13:13 +0000 (08:13 +0200)]
zones: status : use version to compare local sdn vs cluster sdn

3 years ago/etc/network/interfaces.d/sdn : add version
Alexandre Derumier [Mon, 13 Apr 2020 06:13:12 +0000 (08:13 +0200)]
/etc/network/interfaces.d/sdn : add version

3 years agosdn: use .version and global lock
Alexandre Derumier [Mon, 13 Apr 2020 06:13:11 +0000 (08:13 +0200)]
sdn: use .version and global lock

3 years agoremove .new files
Alexandre Derumier [Mon, 13 Apr 2020 06:13:10 +0000 (08:13 +0200)]
remove .new files

4 years agozones: sort network config keys when iterating for stabillity
Thomas Lamprecht [Thu, 9 Apr 2020 08:27:53 +0000 (10:27 +0200)]
zones: sort network config keys when iterating for stabillity

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agozones: code cleanup fallback to classic bridge case
Thomas Lamprecht [Thu, 9 Apr 2020 08:27:24 +0000 (10:27 +0200)]
zones: code cleanup fallback to classic bridge case

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agozones: factor out get_plugin_config
Thomas Lamprecht [Thu, 9 Apr 2020 08:26:59 +0000 (10:26 +0200)]
zones: factor out get_plugin_config

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agosdn zones: indentation and whitespace cleanup
Thomas Lamprecht [Thu, 9 Apr 2020 06:03:33 +0000 (08:03 +0200)]
sdn zones: indentation and whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agosdn zones: add newline to warn
Thomas Lamprecht [Thu, 9 Apr 2020 06:03:18 +0000 (08:03 +0200)]
sdn zones: add newline to warn

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 0.4-2
Thomas Lamprecht [Wed, 8 Apr 2020 17:58:14 +0000 (19:58 +0200)]
bump version to 0.4-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd get_local_vnets()
Alexandre Derumier [Thu, 26 Mar 2020 02:06:34 +0000 (03:06 +0100)]
add get_local_vnets()

return the vnets of the localnode

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agobump version to 0.4-1
Thomas Lamprecht [Tue, 10 Mar 2020 18:02:16 +0000 (19:02 +0100)]
bump version to 0.4-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd tap|veth create|plug
Alexandre Derumier [Mon, 9 Mar 2020 09:24:13 +0000 (10:24 +0100)]
add tap|veth create|plug

4 years agowhitespace cleanup
Thomas Lamprecht [Tue, 10 Mar 2020 17:58:52 +0000 (18:58 +0100)]
whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agovxlan|evpn : fix mtu
Alexandre Derumier [Thu, 13 Feb 2020 11:16:13 +0000 (12:16 +0100)]
vxlan|evpn : fix mtu

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd get_bridge_vlan
Alexandre Derumier [Mon, 10 Feb 2020 16:26:10 +0000 (17:26 +0100)]
add get_bridge_vlan

return correct bridge/vlan from sdn for tap/veth create/plug

4 years agomove mtu properties to zone
Alexandre Derumier [Mon, 10 Feb 2020 16:26:09 +0000 (17:26 +0100)]
move mtu properties to zone

4 years agoapi2: fix vnet status
Alexandre Derumier [Mon, 10 Feb 2020 16:26:08 +0000 (17:26 +0100)]
api2: fix vnet status

4 years agoqinq plugin :add status
Alexandre Derumier [Mon, 10 Feb 2020 16:26:07 +0000 (17:26 +0100)]
qinq plugin :add status

like vlanplugin, vnets are now virtual

4 years agovlanplugin: add status
Alexandre Derumier [Mon, 10 Feb 2020 16:26:06 +0000 (17:26 +0100)]
vlanplugin: add status

we use vlan-aware, so vnets status need to be done on main bridge status

4 years agomove status code to zone plugin
Alexandre Derumier [Mon, 10 Feb 2020 16:26:05 +0000 (17:26 +0100)]
move status code to zone plugin

4 years agovlan/qinq: use bridge option instead uplink-id
Alexandre Derumier [Mon, 10 Feb 2020 16:26:04 +0000 (17:26 +0100)]
vlan/qinq: use bridge option instead uplink-id

4 years agoAPI2: Vnets: fix update
Alexandre Derumier [Mon, 20 Jan 2020 11:01:22 +0000 (12:01 +0100)]
API2: Vnets: fix update

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoevpn: use file_{g,s}et_contents and import run_command
Thomas Lamprecht [Thu, 16 Jan 2020 10:14:53 +0000 (11:14 +0100)]
evpn: use file_{g,s}et_contents and import run_command

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoevpn: indentation, whitespace cleanup and code refactoring
Thomas Lamprecht [Thu, 16 Jan 2020 10:14:15 +0000 (11:14 +0100)]
evpn: indentation, whitespace cleanup and code refactoring

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocontroller : evpn : only allow 1 evpn controller
Alexandre Derumier [Thu, 16 Jan 2020 08:15:16 +0000 (09:15 +0100)]
controller : evpn : only allow 1 evpn controller

we can only have 1 bgp router on a server

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoevpn: add support for local frr.config
Alexandre Derumier [Thu, 16 Jan 2020 08:15:15 +0000 (09:15 +0100)]
evpn: add support for local frr.config

For users with complex setup (underlay ebgp for example),
allow user to add a /etc/frr/frr.conf.local

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovlan/qinq: use vlan-raw-device to support long predictable interfaces name
Alexandre Derumier [Sat, 11 Jan 2020 12:48:50 +0000 (13:48 +0100)]
vlan/qinq: use vlan-raw-device to support long predictable interfaces name

users have reported in the forum some crazy long interfaces names
like "enp0s20f0u8u2c2".
So they are no space for create a "enp0s20f0u8u2c2.vlan".

changelog V2:

small fix with reclared ifaces_variable

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agogrammar fix: s/does not exists/does not exist/g
Thomas Lamprecht [Fri, 13 Dec 2019 11:10:15 +0000 (12:10 +0100)]
grammar fix: s/does not exists/does not exist/g

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 0.3-3
Thomas Lamprecht [Mon, 2 Dec 2019 08:51:07 +0000 (09:51 +0100)]
bump version to 0.3-3

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocreate /etc/pve/sdn directory
Alexandre Derumier [Thu, 28 Nov 2019 13:34:48 +0000 (14:34 +0100)]
create /etc/pve/sdn directory

like for /etc/pve/ha, create it in api create

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agomove find_local_ip_interface sub helper to zone plugin
Alexandre Derumier [Thu, 28 Nov 2019 08:40:27 +0000 (09:40 +0100)]
move find_local_ip_interface sub helper to zone plugin

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agozones: vlan|qinq: add get_uplink_iface sub
Alexandre Derumier [Thu, 28 Nov 2019 08:40:26 +0000 (09:40 +0100)]
zones: vlan|qinq: add get_uplink_iface sub

also check that interface is eth or bond

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agozones: vxlan : remove uplink-id and multicast
Alexandre Derumier [Thu, 28 Nov 2019 08:40:25 +0000 (09:40 +0100)]
zones: vxlan : remove uplink-id and multicast

only unicast for now, as multicast is not too much used currently.

remove uplink-id like for evpn

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoevpn: remove uplink-id
Alexandre Derumier [Thu, 28 Nov 2019 08:40:24 +0000 (09:40 +0100)]
evpn: remove uplink-id

instead, auto find interfaces

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agobump version to 0.3-2
Thomas Lamprecht [Tue, 26 Nov 2019 11:57:01 +0000 (12:57 +0100)]
bump version to 0.3-2

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocontroller: evpn: use frr-reload.py for reloading frr
Alexandre Derumier [Tue, 26 Nov 2019 09:00:30 +0000 (10:00 +0100)]
controller: evpn: use frr-reload.py for reloading frr

vtysh is not enough to cleanly reload configuration
This require frr-pythontools package

Also add default global values or frr-reload will try to remove them
each time

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agocleanup old transport/router/sdn_cfg references
Alexandre Derumier [Tue, 26 Nov 2019 09:00:29 +0000 (10:00 +0100)]
cleanup old transport/router/sdn_cfg references

use zone/controller...

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoevpn zone plugin : remove vrf option
Alexandre Derumier [Tue, 26 Nov 2019 09:00:28 +0000 (10:00 +0100)]
evpn zone plugin : remove vrf option

instead, use zone name as vrf

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agolimit vnet/zones/controller to 10 characters
Alexandre Derumier [Tue, 26 Nov 2019 09:00:27 +0000 (10:00 +0100)]
limit vnet/zones/controller to 10 characters

linux have 16 characters limit for interfaces,
but we can prepend "vxlan", "vrf",... when we generate
interfaces

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