Forum Discussion
Tony___Keith_93
Nimbostratus
Oct 10, 2005Help with get_netmask
I'm reposting this question to the proper forum. (It was originally mistakenly posted to Forums > iRules > v4.x)
The BIP-IP device that I'm working with is using 4.5.11 firmware.
I’m having a problem with the get_netmask method within the SelfIP interface.
I’m using the following code:
//The following three lines work fine
string[] str_iplist = iSelfIP.get_list();
string str_IP = "ip: " + str_iplist[0];
string str_VlanName = "Name: " + iSelfIP.get_vlan(str_iplist[0]);
//The next line produces an error:
long l_IPMask = iSelfIP.get_netmask(str_iplist[0]); //errors
Error
An unhandled exception of type 'System.InvalidOperationException' occurred in system.xml.dll
Additional information: There is an error in XML document (12, 42).
Does anyone have any ideas?
Thanks,
Tony
- Tony,
- Tony___Keith_93
Nimbostratus
Hi Joe, - I think I found the problem. the get_netmask() method should return a string, not a long. Which version of the SDK are you using? This was a known issue that I thought was addressed in the 4.6.2 SDK but this one method could have slipped through the cracks.
- Tony___Keith_93
Nimbostratus
Hi Joe, - Great! I'll make sure that the SDK is updated with the patched WSDL files. Thanks for bringing this to our attention.
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