Python Script to convert firewall rules

Jason Friedman jsf80238 at gmail.com
Mon Dec 15 00:07:53 EST 2014


> Thank you very much. Appreciated ! But the first requirement was to convert
> format1 to format2 as below:
>
> set interface ethernet2/5 ip 10.17.10.1/24 (format 1)
> set interfaces ge-0/0/0 unit 0 family inet address 10.17.10.1/24 (format 2)
> (set, interface, ip) = (set, interfaces, family inet address)
> But some values are variable and should ask the user to convert manually
> like ethernet2/5 equal to ge-0/0/0 or ge-0/0/1 or ge-0/0/2
> And some values keep as it is like 10.17.10.1/24

Kashif, perhaps you should contact me off list, this subject is
becoming very particular and maybe not of interest to the general
audience.



More information about the Python-list mailing list