]> git.proxmox.com Git - pve-network.git/log
pve-network.git
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>
4 years agoadd permissions
Alexandre Derumier [Tue, 26 Nov 2019 09:00:26 +0000 (10:00 +0100)]
add permissions

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agofix zones on_update_hook
Alexandre Derumier [Tue, 26 Nov 2019 09:00:25 +0000 (10:00 +0100)]
fix zones on_update_hook

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agorename frrevpn controller plugin to evpn plugin
Alexandre Derumier [Tue, 26 Nov 2019 09:00:24 +0000 (10:00 +0100)]
rename frrevpn controller plugin to evpn plugin

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd nodes option to zones
Alexandre Derumier [Tue, 26 Nov 2019 09:00:23 +0000 (10:00 +0100)]
add nodes option to zones

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoremove vxlan|vlan allowed zone option
Alexandre Derumier [Tue, 26 Nov 2019 09:00:22 +0000 (10:00 +0100)]
remove vxlan|vlan allowed zone option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoimprove status error description
Alexandre Derumier [Tue, 26 Nov 2019 09:00:21 +0000 (10:00 +0100)]
improve status error description

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agorename transportzone option to zone
Alexandre Derumier [Tue, 26 Nov 2019 09:00:20 +0000 (10:00 +0100)]
rename transportzone option to zone

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoupdate documentation.txt
Alexandre Derumier [Tue, 26 Nov 2019 09:00:19 +0000 (10:00 +0100)]
update documentation.txt

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi2: sdn: add reload config
Alexandre Derumier [Tue, 26 Nov 2019 09:00:18 +0000 (10:00 +0100)]
api2: sdn: add reload config

fixme: current using pvesh
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi2 : split vnets/zones/controllers
Alexandre Derumier [Tue, 26 Nov 2019 09:00:17 +0000 (10:00 +0100)]
api2 : split vnets/zones/controllers

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agosplit transport/controllers/vnet to separate plugins
Alexandre Derumier [Tue, 26 Nov 2019 09:00:16 +0000 (10:00 +0100)]
split transport/controllers/vnet to separate plugins

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi2 : sdn : add role and type to index
Alexandre Derumier [Mon, 30 Sep 2019 09:03:39 +0000 (11:03 +0200)]
api2 : sdn : add role and type to index

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd qinq plugin
Alexandre Derumier [Mon, 30 Sep 2019 09:03:38 +0000 (11:03 +0200)]
add qinq plugin

move code from vlanplugin, add transport tag option

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agorename plugins with controllers
Alexandre Derumier [Mon, 30 Sep 2019 09:03:37 +0000 (11:03 +0200)]
rename plugins with controllers

For true sdn, We have 2 plugins, 1 for dataplane (switch), 1 for controlplane (controller)

rename:

- Frr to EvpnController
- Faucet to FaucetController
- OvsFaucet to Faucet

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd controller_reload
Alexandre Derumier [Mon, 30 Sep 2019 09:03:36 +0000 (11:03 +0200)]
add controller_reload

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd evpnplugin (splitted from vxlanplugin)
Alexandre Derumier [Mon, 30 Sep 2019 09:03:35 +0000 (11:03 +0200)]
add evpnplugin (splitted from vxlanplugin)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd faucet sdn controller plugins
Alexandre Derumier [Mon, 30 Sep 2019 09:03:34 +0000 (11:03 +0200)]
add faucet sdn controller plugins

1 plugin for controller, 1 plugin for dataplane

This is not 100% complete, but it's a proof of concept
to test differents sdn controller

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlan: move transport controller config to frrplugin
Alexandre Derumier [Mon, 30 Sep 2019 09:03:33 +0000 (11:03 +0200)]
vxlan: move transport controller config to frrplugin

To be able to use differents controllers model

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agomake sdn controller plugin generic
Alexandre Derumier [Mon, 30 Sep 2019 09:03:32 +0000 (11:03 +0200)]
make sdn controller plugin generic

move all code for frr to frrplugin,
rename router option to controller.

This will allow to manage more controller in the future (ovn, faucet,....)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agobump version to 0.3-1
Thomas Lamprecht [Fri, 20 Sep 2019 14:57:35 +0000 (16:57 +0200)]
bump version to 0.3-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd format for multicast-address
Alexandre Derumier [Fri, 13 Sep 2019 10:33:45 +0000 (12:33 +0200)]
add format for multicast-address

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd format for ip-list and mtu
Alexandre Derumier [Fri, 13 Sep 2019 10:33:44 +0000 (12:33 +0200)]
add format for ip-list and mtu

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agofrr: remove "no bgp default ipv6-unicast"
Alexandre Derumier [Mon, 9 Sep 2019 15:56:37 +0000 (17:56 +0200)]
frr: remove "no bgp default ipv6-unicast"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agofollowup trailing whitespace cleanup
Thomas Lamprecht [Mon, 9 Sep 2019 14:37:30 +0000 (16:37 +0200)]
followup trailing whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agomove gateway-nodes option to frr plugin and add gateway-external-peers
Alexandre Derumier [Mon, 9 Sep 2019 06:45:53 +0000 (08:45 +0200)]
move gateway-nodes option to frr plugin and add gateway-external-peers

It's make more sense, as We use default vrf for routing.
Also add gateway-external-peers to define an external bgp peer.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlan: frr : remove unneeded prefix-list
Alexandre Derumier [Mon, 9 Sep 2019 06:45:52 +0000 (08:45 +0200)]
vxlan: frr : remove unneeded prefix-list

no bgp default ipv4-unicast already deny redistribution
of routes in default vrf

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlan: evpn: fix routing to local vms on gateway nodes
Alexandre Derumier [Mon, 9 Sep 2019 06:45:51 +0000 (08:45 +0200)]
vxlan: evpn: fix routing to local vms on gateway nodes

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agogenerate_frr_config: cleanup hash and ordering
Alexandre Derumier [Mon, 9 Sep 2019 06:45:50 +0000 (08:45 +0200)]
generate_frr_config: cleanup hash and ordering

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agodon't regenerate frr config if no router is defined
Alexandre Derumier [Wed, 4 Sep 2019 05:49:31 +0000 (07:49 +0200)]
don't regenerate frr config if no router is defined

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlan: add ip-forward|ip6-forward|arp-accept for routing
Alexandre Derumier [Tue, 3 Sep 2019 09:14:55 +0000 (11:14 +0200)]
vxlan: add ip-forward|ip6-forward|arp-accept for routing

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlan: add gateway-nodes option
Alexandre Derumier [Tue, 3 Sep 2019 09:14:54 +0000 (11:14 +0200)]
vxlan: add gateway-nodes option

Allow to define 1 or more gateway node,
to route the traffic to the outside world

import vrf is bugged in frr 7.1
works fine with current stable/7.1 branch
https://github.com/FRRouting/frr/issues/4905

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agotrailing whitespace cleanup
Thomas Lamprecht [Tue, 3 Sep 2019 06:25:00 +0000 (08:25 +0200)]
trailing whitespace cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd documentation.txt
Alexandre Derumier [Thu, 29 Aug 2019 10:32:54 +0000 (12:32 +0200)]
add documentation.txt

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agosdn: add write_frr_config
Alexandre Derumier [Thu, 29 Aug 2019 10:32:53 +0000 (12:32 +0200)]
sdn: add write_frr_config

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd update_delete hook on frr related options
Alexandre Derumier [Thu, 29 Aug 2019 10:32:52 +0000 (12:32 +0200)]
add update_delete hook on frr related options

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agosdn: add generate_frr_config
Alexandre Derumier [Thu, 29 Aug 2019 10:32:51 +0000 (12:32 +0200)]
sdn: add generate_frr_config

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agogenerate network config in a hash
Alexandre Derumier [Thu, 29 Aug 2019 10:32:50 +0000 (12:32 +0200)]
generate network config in a hash

more clean and avoid duplicate interface

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlan: add support for ipv4/ipv6/mac for anycast routing
Alexandre Derumier [Thu, 29 Aug 2019 10:32:49 +0000 (12:32 +0200)]
vxlan: add support for ipv4/ipv6/mac for anycast routing

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlanplugin: add vrf and vrfvxlan
Alexandre Derumier [Thu, 29 Aug 2019 10:32:48 +0000 (12:32 +0200)]
vxlanplugin: add vrf and vrfvxlan

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd frr plugin
Alexandre Derumier [Thu, 29 Aug 2019 10:32:47 +0000 (12:32 +0200)]
add frr plugin

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agomake Vxlanplugin generic for multicast/unicast/frr
Alexandre Derumier [Thu, 29 Aug 2019 10:32:46 +0000 (12:32 +0200)]
make Vxlanplugin generic for multicast/unicast/frr

if no multicast or unicast address is defined, default to frr

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi2: add local endpoint for listing transportzones status
Alexandre Derumier [Thu, 29 Aug 2019 10:32:45 +0000 (12:32 +0200)]
api2: add local endpoint for listing transportzones status

pvesh get /nodes/<node>/sdn/
┌─────────────────┬───────────┐
│ sdn             │ status    │
├─────────────────┼───────────┤
│ transportzone10 │ error     │
├─────────────────┼───────────┤
│ zone1           │ available │
├─────────────────┼───────────┤
│ zone4           │ available │
└─────────────────┴───────────┘

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi2: add local endpoint for listing content of a transportzone
Alexandre Derumier [Thu, 29 Aug 2019 10:32:44 +0000 (12:32 +0200)]
api2: add local endpoint for listing content of a transportzone

pveset get /nodes/<node>/sdn/<transportzone>/content

┌─────────┬────────┐
│ vnet    │ status │
├─────────┼────────┤
│ vnet100 │ error  │
├─────────┼────────┤
│ vnet101 │ error  │
└─────────┴────────┘

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd new status sub and move code from test
Alexandre Derumier [Thu, 29 Aug 2019 10:32:43 +0000 (12:32 +0200)]
add new status sub and move code from test

old status sub was renamed ifquery_check

also check if local config exist or if local config is too old.
(fixme : compare mtime, maybe could we use some kind of version for this?)

we can have 4 status code:

- pending : local config is absent but sdn.cfg exist
- unknown : local config is too old, we can't be sure of the running state
- error : local config is present, but don't match the running state
- available : all is ok, local config is present and match running state.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd generate_etc_network_config && write_etc_network_config subs
Alexandre Derumier [Thu, 29 Aug 2019 10:32:42 +0000 (12:32 +0200)]
add generate_etc_network_config && write_etc_network_config subs

moved from test script,
also skip vnet generation instead die in case of error

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agod/compat: bump level to 11 and fix lintian warnings
Thomas Lamprecht [Wed, 10 Jul 2019 15:53:17 +0000 (17:53 +0200)]
d/compat: bump level to 11 and fix lintian warnings

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: use dpkg-dev makefile helpers for pkg info
Thomas Lamprecht [Wed, 10 Jul 2019 15:52:49 +0000 (17:52 +0200)]
buildsys: use dpkg-dev makefile helpers for pkg info

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobump version to 0.2-1
Thomas Lamprecht [Tue, 18 Jun 2019 08:20:23 +0000 (10:20 +0200)]
bump version to 0.2-1

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agobuildsys: clean also old build directories when running make clean
Thomas Lamprecht [Tue, 18 Jun 2019 08:21:18 +0000 (10:21 +0200)]
buildsys: clean also old build directories when running make clean

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agorename $network to $sdn everywhere
Alexandre Derumier [Mon, 17 Jun 2019 09:26:36 +0000 (11:26 +0200)]
rename $network to $sdn everywhere

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi: add missing additional properties=0 on network reload/revert
Alexandre Derumier [Mon, 17 Jun 2019 09:26:35 +0000 (11:26 +0200)]
api: add missing additional properties=0 on network reload/revert

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoadd pve-network-id jsonschema
Alexandre Derumier [Mon, 17 Jun 2019 09:26:34 +0000 (11:26 +0200)]
add pve-network-id jsonschema

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agod/control: depend on defined ${perl:Depends}
Thomas Lamprecht [Wed, 12 Jun 2019 05:04:16 +0000 (07:04 +0200)]
d/control: depend on defined ${perl:Depends}

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agorename PVE::Network::Network to PVE::Network::SDN
Alexandre Derumier [Fri, 7 Jun 2019 04:52:13 +0000 (06:52 +0200)]
rename PVE::Network::Network to PVE::Network::SDN

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoremove vnet bridge delete hook
Alexandre Derumier [Fri, 7 Jun 2019 04:52:12 +0000 (06:52 +0200)]
remove vnet bridge delete hook

We can check that in local reload when we'll generate config

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlan interface : use vxlan$vnetid
Alexandre Derumier [Thu, 6 Jun 2019 12:16:56 +0000 (14:16 +0200)]
vxlan interface : use vxlan$vnetid

vxlan number can be huge (16millions), don't use tag for interface name.
(my last ifupdown2 patch ifdown/ifup vxlan interface on reload)

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovlan plug: code cleanup
Thomas Lamprecht [Thu, 6 Jun 2019 06:28:41 +0000 (08:28 +0200)]
vlan plug: code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agocleanup status sub
Alexandre Derumier [Thu, 6 Jun 2019 06:20:14 +0000 (08:20 +0200)]
cleanup status sub

don't mix stderr and stdout of the ifquery command, as it can break
JSON encoding afterweards

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agovxlanmulticast : fix mtu
Alexandre Derumier [Thu, 6 Jun 2019 06:20:13 +0000 (08:20 +0200)]
vxlanmulticast : fix mtu

vxlan mtu must be 50bytes lower than physdev mtu

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoplugins: generate config: don't check vlan range
Alexandre Derumier [Tue, 4 Jun 2019 05:03:43 +0000 (07:03 +0200)]
plugins: generate config: don't check vlan range

we already have done it on create/modify hooks

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agogenerateconfig test: remove verify merge config
Alexandre Derumier [Tue, 4 Jun 2019 05:03:42 +0000 (07:03 +0200)]
generateconfig test: remove verify merge config

we can check conflict with ifquery now

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agogenerateconfig: use uplink$id if interface don't exist
Alexandre Derumier [Tue, 4 Jun 2019 05:03:41 +0000 (07:03 +0200)]
generateconfig: use uplink$id if interface don't exist

don't die, generate config, and we'll check error
with ifquery as interface don't exist

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlan: use vxlan<id> interface name
Alexandre Derumier [Tue, 4 Jun 2019 05:03:40 +0000 (07:03 +0200)]
vxlan: use vxlan<id> interface name

we can't change online vxlan tag,
better to map interface name to vxlan tag.
(ifreload with delete old interface, and create a new with correct vxlan)

also vxlan-id are unique

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agod/control: fix priority-extra-is-replaced-by-priority-optional
Thomas Lamprecht [Tue, 4 Jun 2019 04:38:11 +0000 (06:38 +0200)]
d/control: fix priority-extra-is-replaced-by-priority-optional

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agofollowup code cleanup
Thomas Lamprecht [Tue, 4 Jun 2019 04:35:12 +0000 (06:35 +0200)]
followup code cleanup

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoimport run_command
Thomas Lamprecht [Tue, 4 Jun 2019 04:35:00 +0000 (06:35 +0200)]
import run_command

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
4 years agoadd test statuscheck.pl
Alexandre Derumier [Mon, 3 Jun 2019 15:57:39 +0000 (17:57 +0200)]
add test statuscheck.pl

could be reuse later in pvestatd to broadcast status.

4 years agoadd ifquery compare status
Alexandre Derumier [Mon, 3 Jun 2019 15:57:38 +0000 (17:57 +0200)]
add ifquery compare status

4 years agocreate api: test if $scfg vnet exist
Alexandre Derumier [Mon, 3 Jun 2019 15:57:37 +0000 (17:57 +0200)]
create api: test if $scfg vnet exist

4 years agoapi: add apply and revert cluster network configuration
Alexandre Derumier [Mon, 6 May 2019 12:47:14 +0000 (14:47 +0200)]
api: add apply and revert cluster network configuration

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agowrite configuration to networks.cfg.new
Alexandre Derumier [Mon, 6 May 2019 12:47:13 +0000 (14:47 +0200)]
write configuration to networks.cfg.new

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovlan, vxlan plugin : add on_delete_hook
Alexandre Derumier [Mon, 6 May 2019 12:47:12 +0000 (14:47 +0200)]
vlan, vxlan plugin : add on_delete_hook

verify that a vnet is not using this transport

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlanmultuicast: on_update_hook: check vnet tag in allowed vxlan
Alexandre Derumier [Fri, 3 May 2019 09:00:20 +0000 (11:00 +0200)]
vxlanmultuicast: on_update_hook: check vnet tag in allowed vxlan

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovlan: on_update_hook: check vnet tag in allowed vlan
Alexandre Derumier [Fri, 3 May 2019 09:00:19 +0000 (11:00 +0200)]
vlan: on_update_hook: check vnet tag in allowed vlan

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agoapi2: update_hook: also verify transport associated to vnet
Alexandre Derumier [Fri, 3 May 2019 09:00:18 +0000 (11:00 +0200)]
api2: update_hook: also verify transport associated to vnet

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovnet: update_hook: verify if tag already exist in another vnet
Alexandre Derumier [Fri, 3 May 2019 09:00:17 +0000 (11:00 +0200)]
vnet: update_hook: verify if tag already exist in another vnet

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovnet: rename read_local_vm_config to read_cluster_vm_config
Alexandre Derumier [Fri, 3 May 2019 09:00:16 +0000 (11:00 +0200)]
vnet: rename read_local_vm_config to read_cluster_vm_config

and remove "next if !$d->{node}"

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovnet: dynamic require of qemuserver && lxc
Alexandre Derumier [Fri, 3 May 2019 09:00:15 +0000 (11:00 +0200)]
vnet: dynamic require of qemuserver && lxc

like for firewall, to avoid dependency loop

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
4 years agovxlanmulticast: add mtu to vxlan interface too.
Alexandre Derumier [Fri, 3 May 2019 09:00:14 +0000 (11:00 +0200)]
vxlanmulticast: add mtu to vxlan interface too.

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
5 years agovnetplugin: on_delete_hook : verify if vnet exist in vm && ct
Alexandre Derumier [Thu, 4 Apr 2019 14:12:45 +0000 (16:12 +0200)]
vnetplugin: on_delete_hook : verify if vnet exist in vm && ct

5 years agorename vnet "name" option to "alias"
Alexandre Derumier [Thu, 4 Apr 2019 14:12:44 +0000 (16:12 +0200)]
rename vnet "name" option to "alias"

and use it with ifupdown2 alias.

5 years agoadd on_update_hook
Alexandre Derumier [Thu, 4 Apr 2019 08:18:35 +0000 (10:18 +0200)]
add on_update_hook

do nothing for now

5 years agoadd on_delete_hook
Alexandre Derumier [Thu, 4 Apr 2019 08:18:34 +0000 (10:18 +0200)]
add on_delete_hook

empty for now

5 years agovlanplugin : make uplink-id non optional
Alexandre Derumier [Thu, 4 Apr 2019 08:18:33 +0000 (10:18 +0200)]
vlanplugin : make uplink-id non optional

5 years agovxlanmulticast plugin : make uplink-id && multicast addres non optional
Alexandre Derumier [Thu, 4 Apr 2019 08:18:32 +0000 (10:18 +0200)]
vxlanmulticast plugin : make uplink-id && multicast addres non optional