summaryrefslogtreecommitdiff
path: root/PVE/Network/SDN/Controllers/EvpnPlugin.pm
AgeCommit message (Collapse)Author
2023-05-25separate packaging and source build systemThomas Lamprecht
like almost all of our repos do nowadays, modern git can detect such things on rebase so in development stuff should be hopefully not too much affected by this. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-01-16frr: add prefix-list supportAlexandre Derumier
parsing of prefix-list in frr.conf.local was missing reported on forum: https://forum.proxmox.com/threads/using-the-proxmox-sdn-to-manage-host-connectivity-with-bgp.118553 Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2022-12-30controllers: evpn : correctly limit the number of controllers to max 1Alexandre Derumier
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2022-08-31evpn controller: avoid declaration in conditional statementThomas Lamprecht
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>
2022-08-31evpn controller: style fixesThomas Lamprecht
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-08-31frr: config : add exit on router && routemaps.Alexandre Derumier
added recently in last frr releases, just to be sure to no break on future releases Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2022-08-31frr: add a local config parser and merge with generated configAlexandre Derumier
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>
2022-08-31frr: update config frrversion to 8.2.2Alexandre Derumier
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2022-04-27controllers: evpn: fix multiple exit-nodes with route-map filteringAlexandre Derumier
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>
2022-02-24controllers: evpn : use frr restart if reload failAlexandre Derumier
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>
2022-02-13controllers: evpn : remove ip forwarding, ipv6 forwarding and add frr versionAlexandre Derumier
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>
2022-02-13controllers: evpn : remove "no bgp ebgp-requires-policy"Alexandre Derumier
It's already disabled in the default datacenter profile since frr 7.4 Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2022-02-13zones: evpn : add rt-importAlexandre Derumier
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>
2022-02-13controllers: evpn: add missing bgp router-id in vrfAlexandre Derumier
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>
2022-02-13controllers: evpn/bgp : add exitnodes-primary && rework route-mapAlexandre Derumier
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>
2022-02-13controllers: evpn : add min/max value to asnAlexandre Derumier
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2022-02-13controllers: bgp: use loopback ip src for loopback networkAlexandre Derumier
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>
2021-08-24evpn: add exitnodes-local-routingAlexandre Derumier
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>
2021-08-24evpn : add advertise-subnets optionAlexandre Derumier
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>
2020-12-18controllers: add generate_controller_rawconfigAlexandre Derumier
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18zones: evpn: fix exitnodes for snatAlexandre Derumier
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-12-18evpn: frr: use datacenter default profile (lower timeouts)Alexandre Derumier
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-11-25controllers: improve bgp-evpnAlexandre Derumier
- add new bgp plugin - add ebgp support - add loopback support - move gateway-nodes option to zone as 'exitnodes' - move external-peers to bgp plugin
2020-07-01split declaration and initialization with post-ifFabian Grünbichler
since combining them is undefined behaviour in perl and can cause strange side-effects. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2020-07-01use PVE::Tools::split_list for ip listsAlexandre Derumier
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-05-19evpn: prefix interfacesAlexandre Derumier
vnets can have random name, prefix other interfaces to avoid conflicts Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-01-16evpn: use file_{g,s}et_contents and import run_commandThomas Lamprecht
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-16evpn: indentation, whitespace cleanup and code refactoringThomas Lamprecht
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2020-01-16controller : evpn : only allow 1 evpn controllerAlexandre Derumier
we can only have 1 bgp router on a server Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2020-01-16evpn: add support for local frr.configAlexandre Derumier
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>
2019-11-28move find_local_ip_interface sub helper to zone pluginAlexandre Derumier
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-11-28evpn: remove uplink-idAlexandre Derumier
instead, auto find interfaces Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-11-26controller: evpn: use frr-reload.py for reloading frrAlexandre Derumier
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>
2019-11-26cleanup old transport/router/sdn_cfg referencesAlexandre Derumier
use zone/controller... Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-11-26evpn zone plugin : remove vrf optionAlexandre Derumier
instead, use zone name as vrf Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2019-11-26rename frrevpn controller plugin to evpn pluginAlexandre Derumier
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>