Forum Discussion
splion_86861
May 04, 2011Nimbostratus
Wrong VirtualServer-Type
Hey,
In the web-interface on the device the type of Virtual Server call "Performance (Layer 4)".
I use the saop-method "vir:get_type" and it returns the value "RESOURCE_TYPE_POOL" but i expect the value "RESOURCE_TYPE_FAST_L4". What's my mistake?
Other checks:
Standard -> RESOURCE_TYPE_POOL
Forwarding (Layer 2) -> RESOURCE_TYPE_L2_FORWARDING
Forwarding (IP) -> RESOURCE_TYPE_IP_FORWARDING
Performance (HTTP) -> RESOURCE_TYPE_POOL
Performance (Layer 4) -> RESOURCE_TYPE_POOL
Reject -> RESOURCE_TYPE_REJECT
bye Andreas
- What toolkit are you using? Could you provide the snippet of code you are using to make the call and I'll see if I can reproduce the issue you are seeing. I'll dig into the source for this interface and see if I can find any reason why this happens.
- OK, I just dug into the source and found that RESOURCE_TYPE_FAST_L4, RESOURCE_TYPE_FAST_HTTP, AND RESOURCE_TYPE_POOL all map to RESOURCE_TYPE_POOL in both the get_type() and set_type() method. Not sure why. I'll dig a bit longer...
- Think I've got it figured out. The "Type" selection in the GUI actually does a bit more than just set the type. It also assigns the client protocol profile to use. For "Standard", it defaults to the "tcp". For "Perfornace (Layer 4)" it assings the fastl4 profile, and for "Performance (HTTP)" it assigns the "fasthttp" protocol profile to the virtual.
- splion_86861NimbostratusHey,
VirtualServerType VirtualServerProfileAttribute{profile_type} --------------------------------------------------------------------------------------------------------- Forwarding (Layer 2) -> RESOURCE_TYPE_L2_FORWARDING Forwarding (IP) -> RESOURCE_TYPE_IP_FORWARDING Reject -> RESOURCE_TYPE_REJECT Standard -> RESOURCE_TYPE_POOL -> !PROFILE_TYPE_FAST_L4 && !PROFILE_TYPE_FAST_HTTP Performance (HTTP) -> RESOURCE_TYPE_POOL -> PROFILE_TYPE_FAST_HTTP Performance (Layer 4) -> RESOURCE_TYPE_POOL -> PROFILE_TYPE_FAST_L4
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