]> git.proxmox.com Git - pve-container.git/commit
config: hwaddr: enforce unicast MAC addresses
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 12 Mar 2019 15:07:42 +0000 (16:07 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 14 Mar 2019 09:04:11 +0000 (10:04 +0100)
commit603536e0fa27bb1cf693da4a2c3a4f76acecde62
tree7b3f438db70fc6a973d8e65219bf4abf03d8f87e
parente1f38e915c4ccedb25fe2f8a4626a518d9065585
config: hwaddr: enforce unicast MAC addresses

having a container with a multicast mac (see [1]), prevents it from starting
(see [0,3]).

This patch uses the 'mac-addr' standard_option defined in PVE::JSONSchema to
ensure only unicast macaddresses are used for netconfig.

[0] https://lists.linuxcontainers.org/pipermail/lxc-users/2010-August/000783.html
[1] https://en.wikipedia.org/wiki/MAC_address
[2] https://pve.proxmox.com/pipermail/pve-devel/2019-March/035996.html

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/LXC/Config.pm