Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-868

POWERDNS create_record

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • DNS
    • None
    • linux python3.5 pip version of libcloud

    Description

      create_record is not compatible with the powerdns 4.0 rest api.
      the code creates the json as follow:

      record =

      { 'content': data, 'disabled': False, 'name': name, 'ttl': extra['ttl'], 'type': type, }

      payload = {'rrsets': [

      {'name': name, 'type': type, 'changetype': 'REPLACE', 'records': [record] }

      ]
      }

      Instead the portocol wants:

      { "rrsets":
      [
      {
      "name": <string>,
      "type": <string>,
      "ttl": <int>,
      "changetype": <changetype>,
      "records":
      [

      { "content": <string>, "disabled": <bool>, "set-ptr": <bool> }

      , ...
      ],
      "comments":
      [

      { "account": <string>, "content": <string>, "modfied_at": <int> }

      , ...
      ]
      },

      { ... }

      ]
      }

      I'll manage to modify the method and to add also comment parameter.

      Christian

      Attachments

        Activity

          People

            Unassigned Unassigned
            biggosh Christian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: