Skip to content

Perl script to generate a Junos/Paloalto "set file" from a tree configuration

Notifications You must be signed in to change notification settings

rediris-es/tree2set

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

tree2set

Perl script to generate a Junos "set file" from a tree configuration , use as a filter:

tree2set.pl < config-file > config.set

currently is generic so it will work (most of less) with any vendor config file that use a configuration similar to Junos.

About comments:

Two options for comments

--nocom == remove the comments /* ..... */ from the output needed as this line is invalid

set snmp /* Warnings */ trap-group name version v2

--annotate == Remove the commments from the code, but also generate at the end edit/annotate sequences with the comments

set snmp trap-group name version v2

and at the end

edit snmp annotate trap-group Avisos version v2 " Avisos urgentes "

Note this last part has not been tested

About

Perl script to generate a Junos/Paloalto "set file" from a tree configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%