README.md hinzugefügt
This commit is contained in:
53
README.md
Normal file
53
README.md
Normal file
@ -0,0 +1,53 @@
|
||||
Cisco Nexus zu FortiGate Konverter
|
||||
|
||||
Ein Python-Skript, das Cisco Nexus Interface-Konfigurationen (alte und neue NX-OS-Syntax) einliest und automatisch die passende FortiGate Interface-Konfiguration erzeugt.
|
||||
Es verarbeitet standardmäßig VLANs, IP-Adressen, DHCP-Relays, Secondary IPs und Aliase.
|
||||
|
||||
✨ Funktionen
|
||||
|
||||
Unterstützt die alte und neue Cisco Nexus NX-OS-Syntax:
|
||||
|
||||
ip address <IP> <MASK> (alte Schreibweise)
|
||||
|
||||
ip address <IP>/<CIDR> (neue Schreibweise)
|
||||
|
||||
Erkennt automatisch Interface-Blöcke (mit oder ohne ! als Trenner)
|
||||
|
||||
Konvertiert DHCP-Relay-Einstellungen (ip helper-address & ip dhcp relay address)
|
||||
|
||||
Unterstützt HSRP-IPs (inklusive Secondary-Adressen)
|
||||
|
||||
Schneidet Alias/Beschreibung automatisch auf max. 25 Zeichen
|
||||
|
||||
Generiert FortiGate config system interface-Blöcke
|
||||
|
||||
📂 Projektstruktur
|
||||
|
||||
cisco-nexus-to-fortigate-converter/
|
||||
│── input/
|
||||
│ └── input_nexus.txt # Cisco Nexus Interface-Konfiguration
|
||||
│── output/
|
||||
│ └── forti_config.txt # Generierte FortiGate-Konfiguration
|
||||
│── main.py # Hauptskript
|
||||
│── README.md # Diese Datei
|
||||
|
||||
📖 Beispielausgabe
|
||||
|
||||
Eingabe (Cisco Nexus):
|
||||
|
||||
interface Vlan12
|
||||
description 192.168.178__House
|
||||
ip address 192.168.178.2/24
|
||||
ip dhcp relay address 192.168.178.80
|
||||
|
||||
Ausgabe (FortiGate):
|
||||
|
||||
edit "VL.12"
|
||||
set vdom "root"
|
||||
set dhcp-relay-service enable
|
||||
set ip 192.168.178.2/24
|
||||
set alias "192.168.178__House"
|
||||
set dhcp-relay-ip "192.168.178.80"
|
||||
set interface "ae1"
|
||||
set vlanid 12
|
||||
next
|
||||
Reference in New Issue
Block a user