Skip to content

MoAl78741/FortiGate-Config-Merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FortiGate-Config-Merger

Synopsis

Merges specific sections of one FortiGate config file into another FortiGate config file.

Purpose

This can be a useful tool for adapting prod configs to a lab environment for testing.

What the app does:

  • Parses command lines arguments and YAML config file. CLI args overwrite YAML args.
  • Splits configuration into dictionaries.
  • Parses YAML for start and end lines that refer to sections of the configuration.
  • Does a find and replace for those sections of the config.
  • Produces a new configuration <original_name>_transposed.conf that can be uplaoded to FortiGate.

About

Merges two FortiGate configuration files via regex

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages