Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Included which files are changed

...

  • All DNSAPI logging is done with "com.globo.dnsapi" namespace

  • There are no special events triggered

  • Some inconsistencies are fixed automatically:

    • When a new record is created and the network domain no longer exists in Bind server, network domain will be created first to allow record creation.

    • If record already exists in zone, it will be overwritten. Same for reverse records.

    • When networks are deleted, all records in that network domain will be deleted too.

    • To avoid conflict with records names, only lower case hostnames are allowed.

Changes in code:

  • All new files are in plugins/network-elements/dns-api
  • api/src/com/cloud/network/Network.java: Created new provider called DnsAPI
  • api/src/org/apache/cloudstack/network/ExternalNetworkDeviceManager.java: Created new device called DnsAPI
  • client/pom.xml: Included plugin dependency
  • client/tomcatconf/commands.properties.in: declared new command addDnsApiHost permission
  • plugins/pom.xml: included plugin module
  • server/src/com/cloud/configuration/Config.java: Included configuration of default template used in new domains
  • setup/db/db/schema-421to430.sql: Migrations to create new tables and insertion of configuration
  • ui/scripts/system.js: Detail view of plugin configuration

 

Use cases

Enable plugin in Zone

...