designate.mdns.handler.
RequestHandler
(storage, tg)[source]¶Bases: designate.mdns.xfr.XFRMixin
central_api
¶designate.mdns.notify.
NotifyEndpoint
(tg)[source]¶Bases: designate.mdns.base.BaseEndpoint
RPC_API_NAMESPACE
= ‘notify’¶RPC_API_VERSION
= ‘2.0’¶get_serial_number
(context, zone, host, port, timeout, retry_interval, max_retries, delay)[source]¶Get zone serial number from a resolver using retries.
Parameters: |
|
---|---|
Returns: | a tuple of (status, actual_serial, retries) status is either “SUCCESS” or “ERROR”. actual_serial is either the serial number returned in the SOA message from the nameserver or None. retries is the number of retries left. The return value is just used for testing and not by pool manager. The pool manager is informed of the status with update_status. |
notify_zone_changed
(*args, **kwargs)[source]¶Parameters: |
|
---|---|
Returns: | a tuple of (response, current_retry) where response is the response on success or None on failure. current_retry is the current retry number. The return value is just used for testing and not by pool manager. |
poll_for_serial_number
(context, zone, nameserver, timeout, retry_interval, max_retries, delay)[source]¶Get the serial number of a zone on a resolver, then call update_status on Pool Manager to update the zone status.
Parameters: |
|
---|---|
Returns: | None |
designate.mdns.rpcapi.
MdnsAPI
(topic=None)[source]¶Bases: object
Client side of the mdns RPC API.
Notify API version history:
1.0 - Added notify_zone_changed and poll_for_serial_number. 1.1 - Added get_serial_number. 2.0 - Changed method signatures
RPC_NOTIFY_API_VERSION
= ‘2.0’¶RPC_XFR_API_VERSION
= ‘1.0’¶get_instance
()[source]¶The rpc.get_client() which is called upon the API object initialization will cause a assertion error if the designate.rpc.TRANSPORT isn’t setup by rpc.init() before.
This fixes that by creating the rpcapi when demanded.
get_serial_number
(*args, **kwargs)¶notify_zone_changed
(*args, **kwargs)¶perform_zone_xfr
(*args, **kwargs)¶poll_for_serial_number
(*args, **kwargs)¶designate.mdns.xfr.
XFRMixin
[source]¶Bases: object
Utility mixin that holds common methods for XFR functionality.
designate.mdns.xfr.
XfrEndpoint
(tg)[source]¶Bases: designate.mdns.base.BaseEndpoint
, designate.mdns.xfr.XFRMixin
RPC_API_NAMESPACE
= ‘xfr’¶RPC_API_VERSION
= ‘1.0’¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.