Piotr_Lewandow1
Aug 18, 2017Nimbostratus
Hi,
I am not sure what error message? Script is executing without any error. Only problem is that in VS details via GUI I have this result:
If I will remove if(... part an leave just:
$virtualserversourceaddresstranlationtypelist = $f5.LocalLBVirtualServer.get_source_address_translation_type($virtualserverlist)
$virtualserversourceaddresssnatpool = $f5.LocalLBVirtualServer.get_source_address_translation_snat_pool($virtualserverlist)
and
$objTempVirtualServer.sourcexlatetype = [string]$virtualserversourceaddresstranlationtypelist[$i]
$objTempVirtualServer.sourcexlatepool = [string]$virtualserversourceaddresssnatpool[$i]
correct data about SNAT is presented in GUI.
Thanks for sample code, I will try it and see if it's what I need.
Piotr