]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1458] added documentation for ACL related methods of ZoneConfig.
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 25 May 2012 06:09:28 +0000 (23:09 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Fri, 25 May 2012 06:09:28 +0000 (23:09 -0700)
src/lib/python/isc/ddns/zone_config.py

index 6fd7ea3472db407df1a1e1e9060d012e3bdcdb0e..388770cb6ec3bdf51ae4bcc6b404c4ccf212377e 100644 (file)
@@ -72,10 +72,30 @@ class ZoneConfig:
         return ZONE_NOTFOUND, None
 
     def get_update_acl(self, zone_name, zone_class):
+        '''Return the update ACL for the given zone.
+
+        This method searches the internally stored ACL map to see if
+        there's an ACL to be applied to the given zone.  If found, that
+        ACL will be returned; otherwise the default ACL (see the constructor
+        description) will be returned.
+
+        Parameters:
+        zone_name (isc.dns.Name): The zone name.
+        zone_class (isc.dns.RRClass): The zone class.
+        '''
         acl = self.__acl_map.get((zone_name, zone_class))
         if acl is not None:
             return acl
         return self.__default_acl
 
     def set_update_acl_map(self, new_map):
+        '''Set a new ACL map.
+
+        This replaces any stored ACL map, either at construction or
+        by a previous call to this method, with the given new one.
+
+        Parameter:
+        new_map: same as the acl_map parameter of the constructor.
+
+        '''
         self.__acl_map = new_map