« Back to TCL-API

call an http url via vrf

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi ,
I would like to call an http url via ::http::geturl  from a TCL script. The router is configured with vrf and has no default route.
Is there a way to execute an HTTP request via VRF?
 
Mathias

Sorry don't have a direct answer for you.
1. There are a few different Tcl application, IOS tcl shell, EEM Tcl and Tcl IVR API which is this forum discussing don't which one you are referring to ?
2. Tcl IVR API is in application layer, know nothing about routing stuff. All lower layer stuff is handled by IOS.
3. Never tried in this way before, so my guess is if IOS is allowed to do in this way then maybe Tcl IVR API can do.

Thanks.
We use the Tcl IVR API in our project. To test we have used Sockets in the IOS tcl shell environment. An acces via vrl was possible with sockets. The Tcl IVR API does not support sockets. It only supports http. I have not seen any possibility to use VRF with HTTP geturl requests.  Without vrf we have no route to the endpoint.
1source "tmpsys:lib/tcl/http.tcl"
2set gotit [::http::geturl "http://10.X.X.X/Number2NameService" ]
3puts [::http::data $gotit]

Hi Mathias,
   It is not possible to call a vrf interface using http::geturl .
Thanks and Regards,
Geevarghese