diff options
Diffstat (limited to 'cobbler/item_system.py')
-rw-r--r-- | cobbler/item_system.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cobbler/item_system.py b/cobbler/item_system.py index 56ec9c3d..cb1381e0 100644 --- a/cobbler/item_system.py +++ b/cobbler/item_system.py @@ -276,6 +276,8 @@ class System(item.Item): raise CX(_("invalid format for IP address (%s)") % address) def set_mac_address(self,address,interface): + if address == "random": + address = utils.get_random_mac(self.config.api) intf = self.__get_interface(interface) if address == "" or utils.is_mac(address): intf["mac_address"] = address.strip() |