Forum Discussion
Lee_Payne_53457
Cirrostratus
Jun 13, 2014LocalLBVirtualServer.get_type() not returning correct values.
I have the following powershell set, the VS is of type Performance (Layer 4)
$ic = get-f5.icontrol
$vs = "/partition/vs"
$ic.LocalLBVirtualServer.get_type($vs)
It seems to always return: RE...
shaggy_121467
Cumulonimbus
Jun 13, 2014I am seeing the same behavior between a standard and Perf L4 VS in v11.5.0 (albeit using python/bigsuds):
ltm virtual test_asm_vs {
destination 1.1.1.1:http
ip-protocol tcp
mask 255.255.255.255
pool test_asm_pl
profiles {
http { }
tcp { }
}
source 0.0.0.0/0
vs-index 2
}
ltm virtual test_asm_fastl4_vs {
destination 1.1.1.6:80
ip-protocol tcp
mask 255.255.255.255
profiles {
fastL4 { }
}
source 0.0.0.0/0
vs-index 6
}
Python:
>>> b.LocalLB.VirtualServer.get_type(['test_asm_vs'])
['RESOURCE_TYPE_POOL']
>>> b.LocalLB.VirtualServer.get_type(['test_asm_fastl4_vs'])
['RESOURCE_TYPE_POOL']
Since VS-type as is not necessarily a configuration item within the VS config, you may need to identify a VS by examining the profiles in combination with VirtualServer.get_type(). Seems a little weird, but its an option:
>>> b.LocalLB.VirtualServer.get_profile(['test_asm_fastl4_vs'])
[[{'profile_name': '/Common/fastL4', 'profile_context': 'PROFILE_CONTEXT_TYPE_ALL','profile_type': 'PROFILE_TYPE_FAST_L4'}]]
shaggy_121467
Cumulonimbus
Jun 13, 2014It's not necessarily the "wrong" thing, as it is a pool-based VS; however, the get_type wiki (https://clouddocs.f5.com/api/icontrol-soap/LocalLB__VirtualServer__VirtualServerType.html) does say that VirtualServerType contains member "RESOURCE_TYPE_FAST_L4". I'm curious to see what combination of VS options trigger that get_type response
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects