This tool connects to a FortiGate device using the fortigate-api library and retrieves configuration a specified VDOM and then converted into Juniper CLI commands to facilitate migration.
- Python 3.7 or higher
The following Python libraries are required:
- fortigate-api: For connecting and interacting with the FortiGate API.
- requests: For handling HTTP requests.
- logging: For error and process logging.
To install these dependencies, run:
pip install fortigate-api requests- Clone the repository:
git clone https://github.com/alireza82/FortigateToJuniper.git
- Install dependencies:
pip install -r requirements.txt
Update the FortiGate connection details in the script:
HOST: IP address of the FortiGate device.USERNAME: Username for authentication.PASSWORD: Password for authentication.VDOM: The VDOM (Virtual Domain) name to fetch interfaces from.
Run the script to fetch FortiGate configuration and convert them to Juniper CLI commands:
python converter.pyUpon successful execution, the Juniper CLI commands will be printed in the console, providing the equivalent configuration.
This tool is provided "as is" without any warranties, express or implied. The authors and contributors are not responsible for any potential damages or misconfigurations resulting from the use of this tool. It is recommended to review the generated configurations before applying them to any production environment.