auto netkit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2014 10:43 PM
is there any documentation on autonetkit and any options to tweak how it configures?
i get that you can change configs before they are applied, but if you re autoconfig they are lost. do would be great to be able to tweak the behaviour in some cases.
also want to change script on server images etc, but cannot find any documentation. :-(
- Labels:
-
Cisco Modeling Labs

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2014 04:24 PM
Hi,
There is not a supported way to change the template, but I can tell you how to do it as a "at your own risk"
1. From the CML Server, open an xterm
2. Type "python"
3. type "import autonetkit"
4. type "autonetkit.__file__" (thats two underscores on each side of the word file)
5. the result is the directory location of the template directory
virl@virl:~$ python
Python 2.7.3 (default, Feb 27 2014, 19:58:35)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import autonetkit
>>> autonetkit.__file__
'/usr/local/lib/python2.7/dist-packages/autonetkit/__init__.pyc' <========
6. Press ctrl-D to exit Python
7. cd /usr/local/lib/pyhton2.7/dist-packages/autonetkit/templates
8. sudo cp ios.mako ios.mako.backup
9. sudo vi ios.mako
Make the changes that you want. Personally, I used this when i wanted to update 50 routers.
If things go ascrew then put the backed up file back.
For the NX-OS and XR templates, these are compiled because they are not open-source versions.
-Craig
