Using Python Bigsuds for Replacing TCP Profile
Hi,
I'm trying to run the following from a Python script but i'm getting the following error message. I've tried both options but I'm getting the same error message. Any idea on why this would be happening?
Option 1.) lb_obj.LocalLB.VirtualServer.add_profile([vip],[[{'profile_context': 'PROFILE_CONTEXT_TYPE_ALL', 'profile_name': '/Common/tcp-lan-optimized'}]])
Option 2.) lb_obj.LocalLB.VirtualServer.remove_profile([vip],[[{'profile_context': 'PROFILE_CONTEXT_TYPE_CLIENT', 'profile_name': count['profile_name']}]]) lb_obj.LocalLB.VirtualServer.add_profile([vip],[[{'profile_context': 'PROFILE_CONTEXT_TYPE_ALL', 'profile_name': '/Common/tcp-lan-optimized'}]])
Error message: bigsuds.ServerError: Server raised fault: 'Exception caught in LocalLB::urn:iControl:LocalLB/VirtualServer::add_profile() Exception: Common::OperationFailed primary_error_code : 17236119 (0x01070097) secondary_error_code : 0 error_string : 01070097:3: Virtual server /Common/TESTVIP lists duplicate profiles.'