- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to fill the variables of a config templates when calling the API via python
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2019 04:38 AM
Hello all,
I am working on automating the configuration and the changes with netmri through external python scripting.
I try top update the description for a particular interface based on an external csv file, I use the fllowing API:
"api_request('config_templates/run', {
'id':template_id,'device_ids':device_id,
# 'template_variables':template_variables,
'template_variables': '$ifdesc==test',"
I created a config template with the variable $ifdesc and i populate it from the csv file when calling the API
I'm unable to use the template_variables and the descritpion goes empty ones i execute the script.
does someone has an idea please how to use this ?
Thx a lot for your help
Have a good day
Re: How to fill the variables of a config templates when calling the API via python
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2019 08:25 AM
Take a look here
Let me know if you have any questions
Twitter: https://twitter.com/sifbaksh
https://sifbaksh.com