Using custom TextFSM templates

Apr 7, 2025 | Knowledge Base

First, place your TextFSM index and templates in a directory on the host machine.

Then, edit the x-api section in docker-compose.override.yml by 

  • Adding a new environment variable NET_TEXTFSM
  • Adding a new volume mapping

example:x-api: &api_common
environment:
NET_TEXTFSM: /textfsm
volumes:
- <your-template-dir>:/textfsm

This is how Netmiko will find the templates. Of course – the template directory has to contain all TextFSM templates, not only the customized / your own ones.

On this page
Explore our products
See what Flock9 can do for your network.
View products

Can't find what you need?

Our engineers answer questions on Discord and by ticket.