{"action":"created","issue":{"url":"https://api.github.com/repos/psychomario/PyPXE/issues/71","labels_url":"https://api.github.com/repos/psychomario/PyPXE/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/psychomario/PyPXE/issues/71/comments","events_url":"https://api.github.com/repos/psychomario/PyPXE/issues/71/events","html_url":"https://github.com/psychomario/PyPXE/issues/71","id":69459184,"number":71,"title":"DHCP Lease file","user":{"login":"pbertera","id":443924,"avatar_url":"https://avatars.githubusercontent.com/u/443924?v=3","gravatar_id":"","url":"https://api.github.com/users/pbertera","html_url":"https://github.com/pbertera","followers_url":"https://api.github.com/users/pbertera/followers","following_url":"https://api.github.com/users/pbertera/following{/other_user}","gists_url":"https://api.github.com/users/pbertera/gists{/gist_id}","starred_url":"https://api.github.com/users/pbertera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbertera/subscriptions","organizations_url":"https://api.github.com/users/pbertera/orgs","repos_url":"https://api.github.com/users/pbertera/repos","events_url":"https://api.github.com/users/pbertera/events{/privacy}","received_events_url":"https://api.github.com/users/pbertera/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/psychomario/PyPXE/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2015-04-19T20:08:08Z","updated_at":"2015-06-10T15:04:42Z","closed_at":null,"body":"Would be a good improvement to have the lease file saved on the file system. This will avoid IP address conflicts after service restarts. What do you think about ? If it's considered useful I'll start working on it."},"comment":{"url":"https://api.github.com/repos/psychomario/PyPXE/issues/comments/110787846","html_url":"https://github.com/psychomario/PyPXE/issues/71#issuecomment-110787846","issue_url":"https://api.github.com/repos/psychomario/PyPXE/issues/71","id":110787846,"user":{"login":"psychomario","id":1041406,"avatar_url":"https://avatars.githubusercontent.com/u/1041406?v=3","gravatar_id":"","url":"https://api.github.com/users/psychomario","html_url":"https://github.com/psychomario","followers_url":"https://api.github.com/users/psychomario/followers","following_url":"https://api.github.com/users/psychomario/following{/other_user}","gists_url":"https://api.github.com/users/psychomario/gists{/gist_id}","starred_url":"https://api.github.com/users/psychomario/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psychomario/subscriptions","organizations_url":"https://api.github.com/users/psychomario/orgs","repos_url":"https://api.github.com/users/psychomario/repos","events_url":"https://api.github.com/users/psychomario/events{/privacy}","received_events_url":"https://api.github.com/users/psychomario/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T15:04:42Z","updated_at":"2015-06-10T15:04:42Z","body":"I have found a solution to the `SIGINT` issue, however I've come across a new issue. The `DHCPD.leases` object contains quite a lot of binary data (keys are raw mac addresses, we have an options dict which contains raw packet contents), which the json encoder is not having fun with.\r\n\r\nWe could potentially use something like [`pickle`](https://docs.python.org/2/library/pickle.html) to keep the data as is, or we could convert the mac addresses (using `DHCPD.get_mac()`) and remove the `options` dictionary before we export. This would mean we lose the `options` dict upon restart, but I don't think that this will be an issue as it's only used when we give out leases."}}