Forum Discussion
Michel_van_der_
Nimbostratus
Jan 30, 2006Default gateway
I'm trying to add a default gateway to my BigIP, but perhaps I'm using
the wrong method?
I'm trying something like this (perl):
$soap = SOAP::Lite->uri("urn:iControl:Networking/RouteTable")
->proxy("https://$ip/iControl/iControlPortal.cgi") ||
die "Can't create SOAP object for $ip\n";
$soapResponse = $soap->set_static_route_gateway(
SOAP::Data->name('routes' => [ { 'destination' => '0.0.0.0',
'netmask' => '0.0.0.0' } ]),
SOAP::Data->name('gateways' => [ '1.2.3.1' ]),
);The response I get is:
SOAP Error: SOAP-ENV:Server; Exception caught in Networking::RouteTable::set_static_route_gateway()
Exception: Common::OperationFailed
primary_error_code : 16908337 (0x01020031)
secondary_error_code : 0
error_string : 01020031:3: Opened and closed structures are mixed up.What am I not reading right? No default route is set (as a matter of fact,
I deleted it with iControl...). Perhaps I should use add_static_route, but
than what should the attributes look like?
Thanks, Michel
1 Reply
- Loc_Pham_101863Historic F5 AccountYou should use RouteTable::add_static_route method to add a default gateway. In the "attributes" parameter, you only need to specify the gateway, i.e. the vlan_name and pool_name should be left empty.
There's a bug in set_static_route_gateway that caused the exception you saw. This will be fixed in the next release 9.4.0.
Regards,
Loc
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
