'This is a feature used by the pxe_just_once support, see manpage.
Sets system named "name" to no-longer PXE.  Disabled by default as
this requires public API access and is technically a read-write operation.'

def disable_netboot(self, name, token=None, **rest):

    self._log('disable_netboot', token=token, name=name)
    if (not self.api.settings().pxe_just_once):
        return False
    if (str(self.api.settings().nopxe_with_triggers).upper() in ['1', 'Y', 'YES', 'TRUE']):
        triggers_enabled = True
    else:
        triggers_enabled = False
    systems = self.api.systems()
    obj = systems.find(name=name)
    if (obj is None):
        return False
    obj.set_netboot_enabled(0)
    systems.add(obj, save=True, with_triggers=triggers_enabled, with_sync=False, quick_pxe_update=True)
    self.api.sync_dhcp()
    return True
