sample
variables.csv
andtemplate.txt
located in sample
-
Suggested folder structure:
$HOME/simple-network-templates/ └── project-name/ ├── configs/ ├── template.txt └── variables.csv
-
Create a
template.txt
config 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.csv
file in the same folder as yourtemplate
file.It must be called
variables.csv
The A1 entry must be
VARIABLES
ex. 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
_config
located in theconfigs
folder 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