Forum Discussion

brad_anton_1025's avatar
brad_anton_1025
Icon for Nimbostratus rankNimbostratus
Mar 13, 2006

Using Include's for bigip.conf to define classes

i wanted to have a list of classes defined in a file other than bigip.conf. this way i can dynamically update the classes via ssh without touching the config. is there a way to specify include files for bigip, or within classes..

3 Replies

  • One of the Data Group types is external which can point to a file in either the /config or /var/class directories. Here's an example bigip.conf reference to an external string class

     

     

    class image_types_ext extern {
       type string
       filename "/var/class/image_types.txt"
    }

     

     

    Configuration help is available in the GUI or you can type "bigpipe class help" for commmand line help.

     

     

    Keep in mind that simply overwriting the contents of the file won't cause the BIG-IP code to reload it into it's running configuration. You will either have to reload the config with a "bigpipe load" command. A recent forum post also covered how to maintain external class lists with iControl.

     

     

    http://devcentral.f5.com/Default.aspx?tabid=28&view=topic&forumid=1&postid=6384

     

    Click here

     

     

    -Joe
  • thanks for the quick response, what format does the file need to be in? its not clear in b class help. is this acceptable:

     

     

     

    class test extern {

     

    filename /config/strings

     

    type string

     

     

    start file contents:

     

     

    string test

     

    string test1

     

    string test2

     

    string test3

     

     

    end file contents
  • Here are the contents for my "/var/class/image_types/ext.txt" file

     

     

    ".bmp",

     

    ".gif",

     

    ".joe",

     

    ".jpg",

     

    ".tiff",

     

     

    I believe it's the same format that is saved in the bigip.conf for internal classes so if you are unsure you can always create an internal class and look at it's format. If you don't have it formatted correctly you'll probably receive a load error.

     

     

    -Joe