Custom Arista Configuration Snippets
Netris allows administrators to deploy custom configuration to switches running Arista EOS using configuration snippets. These snippets are plain EOS CLI configuration fragments that are merged into the configuration the agent generates before it’s applied to the switch, letting clients apply local customizations the controller doesn’t yet support without patching the agent.
The agent reads snippets from a fixed directory on the switch:
/mnt/flash/netris-snippets
Tip
This path is a constant and entirely operator-managed, meaning the agent does not create this directory, write to it, or modify its contents.
Selection rules:
Only files whose name contains
.confare included. Anything else in the directory — other files, subdirectories, sockets, devices, or editor leftovers likefoo.conf~— is ignored. Selection is by filename only.Files are read in filename sort order, so a numeric prefix convention is required to control merge order:
00-snippet.conf,01-snippet.conf, etc.Snippet contents are appended to the end of the generated
new_config.conf, before the trailingEND, in that sort order — after the controller-managed configuration.
Example:
Determine the desired EOS configuration. For example,
management api http-commands
vrf default
no shutdown
Save it as a file under
/mnt/flash/netris-snippets/using the numeric-prefix convention — for example,/mnt/flash/netris-snippets/00-api-http-commands.conf.On the next agent run, this fragment is appended to the end of
new_config.conf(beforeEND) and applied to the switch along with the controller-generated configuration.