cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
731
Views
0
Helpful
1
Replies

auto netkit

richard.troman
Level 1
Level 1

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. :-(  

1 Reply 1

Craig Brown
Level 4
Level 4

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: