sample
variables.csvandtemplate.txtlocated in sample
-
Suggested folder structure:
$HOME/simple-network-templates/ └── project-name/ ├── configs/ ├── template.txt └── variables.csv -
Create a
template.txtconfig file, (file extension does not matter, as long as it is a plaintext file)a. Encapsulate the data you want to replace in double curly braces, {{LIKE SO}}
! example template config t hostname {{HOSTNAME}} int vlan 1 ip add {{VLAN1IP}} {{VLAN1MASK}} -
Create a
variables.csvfile in the same folder as yourtemplatefile.It must be called
variables.csvThe A1 entry must be
VARIABLESex. variables.csv
VARIABLES DEVICE1 DEVICE2 HOSTNAME router1 router2 VLAN1IP 192.168.0.1 192.168.1.1 VLAN1MASK 255.255.255.0 255.255.255.0 -
Clone this repo, and run the gui
git clone https://github.com/Noxsios/Simple-Network-Template.git cd Simple-Network-Template & .\gui.ps1
-
Drag and drop your template text file into the empty window, then click START.
-
Your template will be applied to the devices listed in the variables file. The files ending in
_configlocated in theconfigsfolder are the generated config files. -
To overwrite your changes, simply rerun with different values in your
variables.csv.
Drag n Drop GUI derived from : this
Invoke-Pester -Output Detailed .\cli.Tests.ps1