Module system :: Class SystemNtp
[hide private]
[frames] | no frames]

Class SystemNtp

source code

   object --+    
            |    
base.AxObject --+
                |
               SystemNtp


Implementation of the aXAPI system.ntp.* method to 
set up the NTP 

Usage:
    # create the NTP server at 2.2.2.2 at disabled status
    ntp1 = SystemNtp(server="2.2.2.2", status=STATUS_DISABLED)
    ntp1.add()
    # enable the NTP server:
    ntp1.status = STATUS_ENABLED.
    ntp1.update()

    # get all NTP configuration
    ntp_list = SystemNtp.getAll()
    for aNtp in ntp_list:
        # use aNtp here
        ...

Instance Methods [hide private]
 
add(self)
method: system.ntp.add Create the NTP entry.
source code
 
delete(self)
method: system.ntp.delete Delete the NTP entry.
source code
 
update(self)
method: system.ntp.update Update the NTP entry.
source code

Inherited from base.AxObject: __getattr__, __getitem__, __init__, __repr__, __setattr__, __setitem__, __str__, dump, get, getInfo, getObjectDict, getRequestPostDataJson, getRequestPostDataXml

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Static Methods [hide private]
 
getAll()
method : system.ntp.get Returns a list of NTP configuration in SystemNtp instance.
source code
Class Variables [hide private]
  __display__ = ['server', 'status']
  __obj_name__ = 'ntp'
  __xml_convrt__ = {'ntp_list': 'ntp'}

Inherited from base.AxObject: __obj_readonly__

Properties [hide private]

Inherited from object: __class__