gerald_wegener_
Sep 23, 2008Nimbostratus
pycontrol - upload data group external file
I am a pycontrol newbie and have been unable to figure out how to reload a data group list (external) file once it has be edited. The name of the data group is 'blacklisttest' type:external contents:address and the external file location/name is /var/class/blacklist. I basically copy the blacklisted file to bipip and would like a way to activate rather than using 'b load'
I can see how to use 'get' using pycontrol but can't figure out how to reload the class file:
b.LocalLB_Class.get_external_class_file_name(class_names = ['blacklisttest'])
{'return': ['/var/class/blacklist']}
Thank you for any help.