MDNS¶
MDNS Base¶
MDNS Handler¶
- class designate.mdns.handler.RequestHandler(storage, tg)[source]¶
Bases:
designate.mdns.xfr.XFRMixin
- property central_api¶
MDNS Notify¶
- class designate.mdns.notify.NotifyEndpoint(tg)[source]¶
Bases:
designate.mdns.base.BaseEndpoint
- RPC_API_NAMESPACE = 'notify'¶
- RPC_API_VERSION = '2.2'¶
- get_serial_number(context, zone, host, port, timeout, retry_interval, max_retries, delay)[source]¶
Get zone serial number from a resolver using retries.
- Parameters
context – The user context.
zone – The designate zone object. This contains the zone name. zone.serial = expected_serial
host – A notify is sent to this host.
port – A notify is sent to this port.
timeout – The time (in seconds) to wait for a SOA response from nameserver.
retry_interval – The time (in seconds) between retries.
max_retries – The maximum number of retries mindns would do for an expected serial number. After this many retries, mindns returns an ERROR.
delay – The time to wait before sending the first request.
- 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.
MDNS RPC API¶
- class 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. 2.1 - Removed unused functions. 2.2 - Changed get_serial_number signature to make upgrade safer.
- XFR API version history:
1.0 - Added perform_zone_xfr.
- RPC_NOTIFY_API_VERSION = '2.2'¶
- RPC_XFR_API_VERSION = '1.0'¶
MDNS Service¶
MDNS XFR¶
- class designate.mdns.xfr.XFRMixin[source]¶
Bases:
object
Utility mixin that holds common methods for XFR functionality.
- class designate.mdns.xfr.XfrEndpoint(tg)[source]¶
Bases:
designate.mdns.base.BaseEndpoint
,designate.mdns.xfr.XFRMixin
- RPC_API_NAMESPACE = 'xfr'¶
- RPC_API_VERSION = '1.0'¶