Forum Discussion

Andy_4386's avatar
Andy_4386
Icon for Nimbostratus rankNimbostratus
May 28, 2010

Sending nil data in iControl operation

For certain operations, there are extended attributes, which do not normally require configuration when using the GUI. How can I pass nil data for these extended attributes? If I leave out the elements in the xml, the F5 complains, and if I include those elements in the xml with no data, the F5 does not complete the operation and I get no errors. An example would be setting up self IPs for two redundant BigIPs needing one floating self IP and two self IPs, one for each BigIP interface. The create method for self IPs requires floating_state and unit_id. When I set up the self IPs on each BigIP, I technically don't need the float state and unit id values..is there a way to pass a nil value? Any ideas? Cheers!

3 Replies

  • For IP address fields, you might try empty strings. Let me know the specific method you are referring to and I'll look at the source to see what the behavior is for empty fields.

     

     

    -Joe

     

  • Here's one method that I'm working with - Module: Networking, Interface: SelfIP, method: create. More background about what's going on. I was given the Big IP conf files and I'm trying to replicate the behavior using iControl. But I discovered that iControl wants all the parameters with values, whereas in the conf files, not every parameter is set. I tried empty arrays and empty string so far; the Big IP does not return an error so it looks like a success, but upon inspection of the configuration via the GUI, the requested change was in fact not successful. Thanks for the help!
  • Actually a better example would be LocalLB:VirtualServer:create. I'm trying to configure a wildcard virtual server using iControl, which has way fewer config options than a standard virtual server. It would be cool to only need to provide the min requirements for the wildcard virtual server. Thanks again!