Title: AAAA Records · Issue #25 · Infoblox-Development/Infoblox-API-Python · GitHub
Open Graph Title: AAAA Records · Issue #25 · Infoblox-Development/Infoblox-API-Python
X Title: AAAA Records · Issue #25 · Infoblox-Development/Infoblox-API-Python
Description: Hi, Found an issue where we can't find a host if it has AAAA record set. I updated infoblox.py to search extattrs by ip aswell def get_ip_extattrs(self, ip_v4, attributes=None): """ Implements IBA REST API call to retrieve host extensibl...
Open Graph Description: Hi, Found an issue where we can't find a host if it has AAAA record set. I updated infoblox.py to search extattrs by ip aswell def get_ip_extattrs(self, ip_v4, attributes=None): """ Implements IBA ...
X Description: Hi, Found an issue where we can't find a host if it has AAAA record set. I updated infoblox.py to search extattrs by ip aswell def get_ip_extattrs(self, ip_v4, attributes=None): ""&qu...
Opengraph URL: https://github.com/Infoblox-Development/Infoblox-API-Python/issues/25
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AAAA Records","articleBody":"Hi,\r\n\r\nFound an issue where we can't find a host if it has AAAA record set.\r\n\r\n\r\nI updated infoblox.py to search extattrs by ip aswell \r\n```\r\n def get_ip_extattrs(self, ip_v4, attributes=None):\r\n\t\"\"\" Implements IBA REST API call to retrieve host extensible attributes\r\n\tReturns hash table of attributes with attribute name as a hash key\r\n\t:param ipv4: ipv4\r\n\t:param attributes: array of extensible attribute names (optional)\r\n\t\"\"\"\r\n\trest_url = 'https://' + self.iba_host + '/wapi/v' + self.iba_wapi_version + '/ipv4address?ip_address=' + ip_v4 + '\u0026_return_fields=extattrs'\r\n\r\n\ttry:\r\n\t r = requests.get(url=rest_url, auth=(self.iba_user, self.iba_password), verify=self.iba_verify_ssl)\r\n\t r_json = r.json()\r\n\t if r.status_code == 200:\r\n\t\tif len(r_json) \u003e 0:\r\n\t\t extattrs = {}\r\n\t\t if attributes:\r\n\t\t\tfor attribute in attributes:\r\n\t\t\t if attribute in r_json[0]['extattrs']:\r\n\t\t\t\textattrs[attribute] = r_json[0]['extattrs'][attribute]['value']\r\n\t\t\t else:\r\n\t\t\t\traise InfobloxNotFoundException(\"No requested attribute found: \" + attribute)\r\n\t\t else:\r\n\t\t\tfor attribute in r_json[0]['extattrs'].keys():\r\n\t\t\t extattrs[attribute] = r_json[0]['extattrs'][attribute]['value']\r\n\t\t return extattrs\r\n\t\telse:\r\n\t\t raise InfobloxNotFoundException(\"No requested host found: \" + fqdn)\r\n\t else:\r\n\t\tif 'text' in r_json:\r\n\t\t raise InfobloxNotFoundException(r_json['text'])\r\n\t\telse:\r\n\t\t r.raise_for_status()\r\n\texcept ValueError:\r\n\t raise Exception(r)\r\n\texcept Exception:\r\n\t raise\r\n","author":{"url":"https://github.com/gekkyy","@type":"Person","name":"gekkyy"},"datePublished":"2018-04-16T10:37:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/25/Infoblox-API-Python/issues/25"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:56d2e334-b7b3-aab5-62ff-85d73e90a028 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B942:3F9FF:213939C:2B0CD7A:697D7E96 |
| html-safe-nonce | cf0024e388e34ef4c410893ddbf318a8a3e2988485104addf40f5b859fa00b9c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTQyOjNGOUZGOjIxMzkzOUM6MkIwQ0Q3QTo2OTdEN0U5NiIsInZpc2l0b3JfaWQiOiI2NTA1MzI0MTc3NDQ3MDI2MzI2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 14b05dea89e685e85f2b937969743be849094dc6157ee828fdf993aea69ec7c2 |
| hovercard-subject-tag | issue:314593286 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Infoblox-Development/Infoblox-API-Python/25/issue_layout |
| twitter:image | https://opengraph.githubassets.com/67c59e1dd526d859727e49b7cd26a8beff71c03e0a0b324cb54a1c6c95770ec5/Infoblox-Development/Infoblox-API-Python/issues/25 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/67c59e1dd526d859727e49b7cd26a8beff71c03e0a0b324cb54a1c6c95770ec5/Infoblox-Development/Infoblox-API-Python/issues/25 |
| og:image:alt | Hi, Found an issue where we can't find a host if it has AAAA record set. I updated infoblox.py to search extattrs by ip aswell def get_ip_extattrs(self, ip_v4, attributes=None): """ Implements IBA ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gekkyy |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/Infoblox-Development/Infoblox-API-Python git https://github.com/Infoblox-Development/Infoblox-API-Python.git |
| octolytics-dimension-user_id | 8240171 |
| octolytics-dimension-user_login | Infoblox-Development |
| octolytics-dimension-repository_id | 22124028 |
| octolytics-dimension-repository_nwo | Infoblox-Development/Infoblox-API-Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22124028 |
| octolytics-dimension-repository_network_root_nwo | Infoblox-Development/Infoblox-API-Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width