Forum Discussion
Hamish
Cirrocumulus
Mar 12, 2010Format of external (STring) class file
Does anyone know what the actual format of an external string class file should be for v10.1?
I'm trying to translate some code from v9 to v10.1... And dropping the deprecated findclass functions. But
[class search -value $class equals $lookup]
returns nothing... Investigating a bit I realised that the iControl script I use to upload the content(That works for a v9 external class) doesn't get anything automatic for the new key:=value syntax...
But I can't find how to do this... At the moment I've stopped trying to use the iControl, and am just trying to create a new external file class (Of type string), but having tried
key:=some value
"key":="some value"
"key:=some value"
and just in case the v10 description on the wiki was a bit mixed up I even tried
class images {
"square.gif" := ""
"circle.gif" := ""
}
and several other combinations, all I ever get is an error when trying to create the new class with invalid format in line 1...
What's the ACTUAL syntax required in the file itself? (I can't use an internal group, because the values are base64 encoded html pages and images... The format of
filename mimetype base64encodedcontent
where the filename is the key and the "mimetype base64encodedcontent" is the value
(On v9 it as easy. Just
"filename mimetype base64encodedcontent",
"filename mimetype base64encodedcontent",
"filename mimetype base64encodedcontent"
Is this supported on v10.1? I did see a posting between Aaron and Sparkie that indicated it wasn't in 10.0... But Aaron thought it was going to be in 10.1...
- Hamish
Cirrocumulus
In fact if I just create an empty class (External) and try to add string/values using the example from the 'b class' manpage... It fails...[root@cdc-3-lb5-mgmt:Active] class b class filter.pages { "AL" { "Alabama" } "AK" { "Alaska" } AZ { "Arizona" } "AR" { "Arkansas" } } BIGpipe parsing error: 012e0017:3: The requested item (AL {) is invalid ( | show | list | help) for 'class ip item' [root@cdc-3-lb5-mgmt:Active] class
- Hamish
Cirrocumulus
And to answer my own question... it's a two part process... (Once the class is set up). - hoolio
Cirrostratus
Cool deal. That seems to work for the external file as well:cat /var/class/my.strings.class "key1" := "value", "key2" := "value",
b class my.strings.class list class my.strings.class { type string filename "/var/class/my.strings.class" mode read separator ":=" }
- poornima_72971
Nimbostratus
I am a newbie to iRule. Can any one please point out the steps to create a class in BIG-IP. For example to create a class which calls an external file - Chris_Miller
Altostratus
Posted By poornima on 01/19/2011 08:26 AM - poornima_72971
Nimbostratus
Chris, I am trying to create an external class using GUI if possible. Thanks!
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