Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

added ipv6 support #13

Open
zedaf opened this issue Apr 18, 2017 · 0 comments
Open

added ipv6 support #13

zedaf opened this issue Apr 18, 2017 · 0 comments

Comments

@zedaf
Copy link

zedaf commented Apr 18, 2017

def get_aaaa_record(self, name):
'''
Added by Aaron Fabiani, retrieves a quad A record
'''
if not name:
self.module.exit_json(msg="You must specify the option 'name'.")
return self.invoke('get', "record:aaaa", params={'name': name, 'view': self.dns_view})

def create_aaaa_record(self, name, address, comment):
if not name or not address:
self.module.exit_json(msg="You must specify the option 'name' and 'address'.")

    payload = {"name": name, "ipv6addr": address, "comment": comment, "view": self.dns_view}
    return self.invoke("post", "record:aaaa", ok_codes=(200, 201, 400), json=payload)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant