From 5503b5ba0e8730575a8ade7b16b6633e5f3e53f2 Mon Sep 17 00:00:00 2001 From: Rick Date: Wed, 14 Oct 2020 01:01:12 +0200 Subject: [PATCH] Update README.md --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ea89f80..ecbfdf7 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,9 @@ # 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). +Parser in PHP by Tim Price, rewrite in Python with enhancements by rick@gnous.eu -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. +Use `cli.py` to parse a Juniper configuration file to a series of set commands. +Use `gui.cly` to enter a text. -The script will take a juniper config piped to it from STDIN and output the results to STDOUT - -You will need to `chown 755 juniper-config-to-set.php` after you download it, you may also need to check the PHP path in the start of the file. - -Usage example: `cat juniper-config.txt | juniper-config-to-set.php` +Requirements : PyQt