pycontrol ConfigSync synchronize LTMs

Hello All,

I’ve been following the iControl devcentral site to write a python script that will sync our LTMs

This is what i have so far:

import pycontrol.pycontrol as pc

systemConfigSync = pc.BIGIP(hostname=cluster,username=soapUser,password=soapPasswd,fromurl=True,wsdls=[‘System.ConfigSync’])

systemConfigSync.System.ConfigSync.synchronize_configuration(systemConfigSync.System.ConfigSync.SyncMode.CONFIGSYNC_BASIC)

but i get a ‘object has no attribute SyncMode’

Thx,

Jim

Jim: It looks like you’re not calling the actual sync method: System.ConfigSync.synchronize_configuration(). Have a look here for info:

--Matt