Module slb_template :: Class TemplateSourceIpPersist
[hide private]
[frames] | no frames]

Class TemplateSourceIpPersist

source code

   object --+    
            |    
base.AxObject --+
                |
               TemplateSourceIpPersist


Implementation of the aXAPI slb.template.cache.* method to 
manage the SLB cache template as getAll/searchByName/create/delete/update 

Usage:
    # cache template with options:
    # name               (required) cache template name 
    
    # Example: create a cache template
    # !
    # slb template cache my_cache_templ1
    #    policy uri abc nocache
    #    policy uri 123 nocache
    # !
    cache1 = TemplateRamCache(name="my_cache_templ1")
    cache1.policy_list = [{"uri": "abc", "action": 1}, {"uri": "123", "action": 1}]
    cache1.create()
    # get all cache templates
    caches = TemplateRamCache.getAll()
    for e in caches:
        print e
        # use aCache here
        ...

Instance Methods [hide private]
 
create(self)
method: slb.template.cache.create Create the cache template.
source code
 
delete(self)
method: slb.template.cache.delete Delete the cache template.
source code
 
update(self)
method: slb.template.cache.update Update the cache template.
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 : slb.template.cache.getAll Returns a list of cache template in TemplateSourceIpPersist instance.
source code
 
searchByName(name)
method: slb.template.cache.search Search the cache template by given name.
source code
Class Variables [hide private]
  __display__ = ['name']
  __obj_name__ = 'cache_template'
  __xml_convrt__ = {'cache_template_list': 'cache_template', 'po...

Inherited from base.AxObject: __obj_readonly__

Properties [hide private]

Inherited from object: __class__

Class Variable Details [hide private]

__xml_convrt__

Value:
{'cache_template_list': 'cache_template',
 'policy_list': 'policy',
 'policys': 'policy'}