{"action":"created","issue":{"url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/11","labels_url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/11/comments","events_url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/11/events","html_url":"https://github.com/debops/ansible-dhcpd/pull/11","id":90668599,"number":11,"title":"Support of multiple MAC addresses for host declaration and a little fix to failover","user":{"login":"redrampage","id":1389959,"avatar_url":"https://avatars.githubusercontent.com/u/1389959?v=3","gravatar_id":"","url":"https://api.github.com/users/redrampage","html_url":"https://github.com/redrampage","followers_url":"https://api.github.com/users/redrampage/followers","following_url":"https://api.github.com/users/redrampage/following{/other_user}","gists_url":"https://api.github.com/users/redrampage/gists{/gist_id}","starred_url":"https://api.github.com/users/redrampage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redrampage/subscriptions","organizations_url":"https://api.github.com/users/redrampage/orgs","repos_url":"https://api.github.com/users/redrampage/repos","events_url":"https://api.github.com/users/redrampage/events{/privacy}","received_events_url":"https://api.github.com/users/redrampage/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-24T12:53:59Z","updated_at":"2015-06-29T22:14:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/debops/ansible-dhcpd/pulls/11","html_url":"https://github.com/debops/ansible-dhcpd/pull/11","diff_url":"https://github.com/debops/ansible-dhcpd/pull/11.diff","patch_url":"https://github.com/debops/ansible-dhcpd/pull/11.patch"},"body":"I'm back again with a new PR.\r\n\r\nI've run into some problems with static DHCP reservations on bonded interfaces:\r\n\r\n* The resulting MAC address assigned to the bond can be inherited from any slave interface, whichever is first added to the bond.\r\n* When using iPXE to boot from LACP enabled interfaces it will choose any of the slave interfaces whichever discovered first.\r\n\r\nSo I wrote a small patch to support assignment of multiple MACs to a single host. It creates a separate host statements for each MAC(because dhcpd wants them to be unique).\r\nIf no 'option host-name' is specified in 'host.options' - it is added. This is made for compatibility with 'use-host-decl-names on' dhcpd option.\r\n\r\nAlso there is a small patch for failover configuration which allows usage of hostnames in inventory file.\r\n\r\nAnd some fixes for group expanding macros."},"comment":{"url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/comments/116862020","html_url":"https://github.com/debops/ansible-dhcpd/pull/11#issuecomment-116862020","issue_url":"https://api.github.com/repos/debops/ansible-dhcpd/issues/11","id":116862020,"user":{"login":"redrampage","id":1389959,"avatar_url":"https://avatars.githubusercontent.com/u/1389959?v=3","gravatar_id":"","url":"https://api.github.com/users/redrampage","html_url":"https://github.com/redrampage","followers_url":"https://api.github.com/users/redrampage/followers","following_url":"https://api.github.com/users/redrampage/following{/other_user}","gists_url":"https://api.github.com/users/redrampage/gists{/gist_id}","starred_url":"https://api.github.com/users/redrampage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redrampage/subscriptions","organizations_url":"https://api.github.com/users/redrampage/orgs","repos_url":"https://api.github.com/users/redrampage/repos","events_url":"https://api.github.com/users/redrampage/events{/privacy}","received_events_url":"https://api.github.com/users/redrampage/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T22:14:03Z","updated_at":"2015-06-29T22:14:03Z","body":"I've reverted macros names back to long and distinct ones. Also switched DHCP Probe off by default as mentioned in https://github.com/debops/ansible-dhcpd/issues/12 (left lib paths as is, because don't know which ones to use). And finally added default value for default subnet(otherwise task breaks, is there is no default IPv6 defined on host), didn't thought of anything better than loopback for that."}}