From dfa060dc1d6d34e79842502603846db677bfaec5 Mon Sep 17 00:00:00 2001 From: pgnuta Date: Thu, 24 Nov 2016 10:26:07 +1300 Subject: [PATCH] Create README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b8dd3d7 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# juniper-config-to-set +Converts Juniper Networks configurations to a series of set commands + +The purpose of this script is to take a juniper config and convert it to set commands, i created it because i couldn't find one anywhere else and i prefer ot work with PHP (don't hate me). + +There was a business need to audit the correctness of Juniper configs which is easier done when the config is in set format. The process of logging into each Juniper device and dumping the configs in set format was too burdensome on both the Juniper devices in question but also extended the execution time of the audit scripts by some minutes. Instead you can take the stored backup configs that rancid creates and convert them to set format using this script. + +The script will take a juniper config piped to it from STDIN and output the results to STDOUT + +Usage example: `cat juniper-config.txt | juniper-config-to-set.php`