{"action":"created","issue":{"url":"https://api.github.com/repos/CygnusNetworks/pypureomapi/issues/20","repository_url":"https://api.github.com/repos/CygnusNetworks/pypureomapi","labels_url":"https://api.github.com/repos/CygnusNetworks/pypureomapi/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/CygnusNetworks/pypureomapi/issues/20/comments","events_url":"https://api.github.com/repos/CygnusNetworks/pypureomapi/issues/20/events","html_url":"https://github.com/CygnusNetworks/pypureomapi/pull/20","id":173332180,"number":20,"title":"added lookup_hostname and add_host_without_ip","user":{"login":"anlaksh88","id":21246824,"avatar_url":"https://avatars.githubusercontent.com/u/21246824?v=3","gravatar_id":"","url":"https://api.github.com/users/anlaksh88","html_url":"https://github.com/anlaksh88","followers_url":"https://api.github.com/users/anlaksh88/followers","following_url":"https://api.github.com/users/anlaksh88/following{/other_user}","gists_url":"https://api.github.com/users/anlaksh88/gists{/gist_id}","starred_url":"https://api.github.com/users/anlaksh88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anlaksh88/subscriptions","organizations_url":"https://api.github.com/users/anlaksh88/orgs","repos_url":"https://api.github.com/users/anlaksh88/repos","events_url":"https://api.github.com/users/anlaksh88/events{/privacy}","received_events_url":"https://api.github.com/users/anlaksh88/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-25T23:05:12Z","updated_at":"2016-08-29T11:16:21Z","closed_at":"2016-08-29T11:16:12Z","pull_request":{"url":"https://api.github.com/repos/CygnusNetworks/pypureomapi/pulls/20","html_url":"https://github.com/CygnusNetworks/pypureomapi/pull/20","diff_url":"https://github.com/CygnusNetworks/pypureomapi/pull/20.diff","patch_url":"https://github.com/CygnusNetworks/pypureomapi/pull/20.patch"},"body":"i have added following functions to pypureomapi:\r\n1. lookup_hostname-> this is in parallel to lookup_ip and lookup_mac. It looks up hostname based on ip address of the client.\r\n2. add_host_without_ip -> this adds host declaration without the static IP address. A client passes known-clients filter in a pool if it has a host declaration. By adding host declarations without static IP we can make dhcp assign addresses from 2 different pools for known-client(with host declaration) and unknown-clients(without host declaration);\r\npool {\r\ndeny unknown-clients;\r\n..\r\n}\r\npool {\r\nallow unknown-clients;\r\n..\r\n}"},"comment":{"url":"https://api.github.com/repos/CygnusNetworks/pypureomapi/issues/comments/243097012","html_url":"https://github.com/CygnusNetworks/pypureomapi/pull/20#issuecomment-243097012","issue_url":"https://api.github.com/repos/CygnusNetworks/pypureomapi/issues/20","id":243097012,"user":{"login":"cygnusb","id":2878247,"avatar_url":"https://avatars.githubusercontent.com/u/2878247?v=3","gravatar_id":"","url":"https://api.github.com/users/cygnusb","html_url":"https://github.com/cygnusb","followers_url":"https://api.github.com/users/cygnusb/followers","following_url":"https://api.github.com/users/cygnusb/following{/other_user}","gists_url":"https://api.github.com/users/cygnusb/gists{/gist_id}","starred_url":"https://api.github.com/users/cygnusb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cygnusb/subscriptions","organizations_url":"https://api.github.com/users/cygnusb/orgs","repos_url":"https://api.github.com/users/cygnusb/repos","events_url":"https://api.github.com/users/cygnusb/events{/privacy}","received_events_url":"https://api.github.com/users/cygnusb/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T11:16:21Z","updated_at":"2016-08-29T11:16:21Z","body":"Thank you for your contribution"}}
{"actor":{"display_login":"cygnusb"}}