Add descriptions

Change-Id: I74a5d9531212e0e08c34257cc8798e609955306c
This commit is contained in:
Federico Ceratto authored and Kiall Mac Innes committed 2016-04-26 20:43:35 +00:00
1 parent f2f6b5d082
commit 7a808151d3
2 files changed
+25

No files matched your search

+11
View File
@@ -13,6 +13,17 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""
agent.service
~~~~~~~~~~~~~
Typically runs on the resolver hosts. Listen for incoming DNS requests
on a port different than 53 and execute create_zone/delete_zone on the
backend adaptor (e.g. Bind9)
Configured in [service:agent]
"""
from oslo_config import cfg
from designate import utils
+14
View File
@@ -13,6 +13,17 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
"""
backend.agent
~~~~~~~~~~~~~
Agent backend for Pool Manager.
Sends DNS requests to a remote agent using private OPCODEs to trigger
creation / deletion / update of zones.
Configured in the [service:pool_manager] section
"""
import eventlet
import dns
import dns.rdataclass
@@ -46,11 +57,14 @@ class AgentPoolBackend(base.Backend):
def __init__(self, target):
super(AgentPoolBackend, self).__init__(target)
self.host = self.options.get('host', '127.0.0.1')
# TODO(Federico): move all port defaults into a defaults module
self.port = int(self.options.get('port', 5358))
self.timeout = CONF['service:pool_manager'].poll_timeout
self.retry_interval = CONF['service:pool_manager'].poll_retry_interval
self.max_retries = CONF['service:pool_manager'].poll_max_retries
# FIXME: the agent retries creating zones without any interval
@property
def mdns_api(self):
return mdns_api.MdnsAPI.get_instance()