Forum Discussion
jwilnerzon_4845
Nimbostratus
Jun 03, 2010Error using ManagementZoneBindingStub.add_zone_file() in iControl (Java)
When I try to use the add_zone_file() method in the ZoneBindingStub I get some errors ("The requested result () was not found", "Error parsing file"). I've tried some different parameters, but how does it work? Is there an example?
The code I'm running:
ManagementZoneLocator lo = new ManagementZoneLocator();
ManagementZoneBindingStub stub = (ManagementZoneBindingStub)lo.getManagementZonePort(new URL(url));
ManagementZoneInfo zoneInfo = new ManagementZoneInfo();
zoneInfo.setZone_type(ManagementZoneType.MASTER);
zoneInfo.setOption_seq(new String[]{});
zoneInfo.setZone_name(zoneName);
zoneInfo.setView_name(viewName);
zoneInfo.setZone_file(zoneFileContent);
stub.add_zone_file(new ManagementZoneInfo[]{zoneInfo}, new String[]{fileSrcPath}, new boolean[]{false});
In the setZone_file() method; should the file content be the parameter (it says max 255 characters)?
Thanks in advance, Jonas
1 Reply
- George_Watkins_Historic F5 AccountHi Jonas,
I came across your thread while I was looking for the same answer. Turns out that the src_file_names is an array of zone file paths local to BIG-IP. You'll want to upload the zone file to the BIG-IP prior to referencing it with the add_zone_file metthod. Here is a more complete answer and accompanying code: Getting Error while using add_zone_file API for creating Management Zone.
-George
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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