Hi!
I don't have a 11.2.1 available, but it seems to be working in 11.5.1, with the latest powershell snapin (have you installed, or upgraded recently?).
Sample config:
ltm virtual /Common/Forwardtest {
destination /Common/10.1.1.0:0
ip-protocol tcp
mask 255.255.255.0
profiles {
/Common/fastL4 { }
}
source 0.0.0.0/0
translate-address disabled
translate-port disabled
}
ltm virtual /Common/Reject {
destination /Common/1.1.1.1:0
ip-protocol tcp
mask 255.255.255.255
profiles {
/Common/tcp { }
}
reject
source 0.0.0.0/0
translate-address enabled
translate-port enabled
}
ltm virtual /Common/Stateless {
destination /Common/2.2.2.2:80
ip-protocol udp
mask 255.255.255.255
pool /Common/PajoIIS-8080-8081_pool
profiles {
/Common/udp { }
}
source 0.0.0.0/0
stateless
translate-address enabled
translate-port enabled
}
Powershell code:
Initialize Snapin
if ( (Get-PSSnapin | Where-Object { $_.Name -eq "iControlSnapIn"}) -eq $null ){
Add-PSSnapIn iControlSnapIn
}
$User = "iUser"
$Password = "mypassword"
$Partition = "Common"
$BigIP = "192.168.161.10"
Connect to the BigIP
$Success = Initialize-F5.iControl -HostName $BigIP -Username $User -Password $Password
Get an iControl Handle
$F5 = Get-F5.iControl
$vslist = $f5.LocalLBVirtualServer.get_list()
$f5.LocalLBVirtualServer.get_type($vslist)
Output:
RESOURCE_TYPE_L2_FORWARDING
RESOURCE_TYPE_REJECT
RESOURCE_TYPE_STATELESS
Probably not the answer you were hoping for, but I'd suggest upgrading the PS snapin and then, if needed, the LTM.
Hope it helped.
/Patrik