]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1514] modified the comments. Appended the prerequisite comments for update_soa
authorhaikuo zhang <zhanghaikuo@cnnic.cn>
Fri, 1 Jun 2012 06:45:26 +0000 (14:45 +0800)
committerhaikuo zhang <zhanghaikuo@cnnic.cn>
Fri, 1 Jun 2012 06:45:26 +0000 (14:45 +0800)
function in DDNS_SOA class

src/lib/python/isc/ddns/session.py

index 1b1032e3bb2de2a9be14849d851b843db0c6d4ee..c97ddc7375a2491a6b5fb62f91c655c2e08ef328 100644 (file)
@@ -148,13 +148,14 @@ class DDNS_SOA:
             return False
 
     def update_soa(self, origin_soa, inc_number = 1):
-        ''' Update the soa number incrementally as RFC 2136.
+        ''' Update the soa number incrementally as RFC 2136. Please make sure
+        that the origin_soa exists and not null before invoke this function.
         Parameters:
             origin_soa, the soa resource record which will be updated.
             inc_number, the number which will be added into the serial number of
             origin_soa, the default value is one.
         Output:
-            the new origin soa whoes serial number has been updated.
+            The new origin soa whoes serial number has been updated.
         '''
         soa_num = self.__get_serial_internal(origin_soa)
         soa_num = soa_num + inc_number