cloudstack-mirror/scripts/vm/network/vnet
Wido den Hollander 4816e05938
KVM: add configurable MAC/IP script hook for static ARP/NDP and routes (#13495)
* KVM: add configurable MAC/IP script hook for static ARP/NDP and routes

Introduces a new agent.properties option `vm.network.macip.static`
(false by default) that makes BridgeVifDriver invoke on modifymacip.sh
on every NIC plug (VM start) and unplug (VM stop).

This is very useful in EVPN+VXLAN environments as it can reduce BUM
traffic. By setting static ARP/NDP entries bridges can be configured
using 'neigh_suppress on' as the ARP/NDP entries are already set
statically by CloudStack.

Setting 'neigh_suppress on' requires a manual change in the modifyvxlan.sh
script as this is not the default behavior.

* vxlan: In EVPN mode, disable ARP/NDP learning

FRR populates the FDB via BGP EVPN, so kernel data-plane learning is
redundant and counterproductive.

Static ARP (IPv4) and NDP (IPv6) entries are added on startup of the
Instance and remove on shutdown.

FRR populates the FDB/neighbor table via control plane, and neigh_suppress
tells the kernel bridge to use that information instead of flooding.

This will vastly reduce BUM traffic with static ARP/NDP entries.
2026-07-10 11:40:20 +02:00
..
cloudstack_pluginlib.py Add Python flake8 linting for W291 trailing whitespace with Super-Linter (#4687) 2022-03-28 11:40:26 -03:00
modifymacip.sh KVM: add configurable MAC/IP script hook for static ARP/NDP and routes (#13495) 2026-07-10 11:40:20 +02:00
modifyvlan.sh pre-commit: add hook to trim trailing whitespace (#8205) 2024-05-28 09:01:30 +02:00
modifyvxlan-evpn.sh KVM: add configurable MAC/IP script hook for static ARP/NDP and routes (#13495) 2026-07-10 11:40:20 +02:00
modifyvxlan.sh scripts: creates /var/run/cloud folder for creation of lock file (#4373) 2020-10-14 15:45:22 +05:30
ovstunnel.py removed code in comments (#11145) 2025-12-08 16:31:48 +01:00