Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82545
| References | (2 earlier) <e0d8dd24-2256-4b89-972e-c1ebe82f72a9@googlegroups.com> <mailman.16931.1418437882.18130.python-list@python.org> <c89c75f8-190d-4678-b575-b92db5c38983@googlegroups.com> <CANy1k1jZ=XPh_hDhe9UpFWwUuJGT-p9q6qBgJv-oggNpq9CwrA@mail.gmail.com> <CANuPgZihkdD85j683pqaWLAXnGUTJbT3PBg2qunpv_21LMSTqg@mail.gmail.com> |
|---|---|
| Date | 2014-12-14 22:07 -0700 |
| Subject | Re: Python Script to convert firewall rules |
| From | Jason Friedman <jsf80238@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16968.1418620081.18130.python-list@python.org> (permalink) |
> 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.
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Python Script to convert firewall rules Kashif Rana <kashifrana84@gmail.com> - 2014-12-10 10:51 -0800
Re: Python Script to convert firewall rules Jason Friedman <jsf80238@gmail.com> - 2014-12-11 18:44 -0700
Re: Python Script to convert firewall rules Kashif Rana <kashifrana84@gmail.com> - 2014-12-11 23:54 -0800
Re: Python Script to convert firewall rules Jason Friedman <jsf80238@gmail.com> - 2014-12-12 19:31 -0700
Re: Python Script to convert firewall rules Kashif Rana <kashifrana84@gmail.com> - 2014-12-13 09:41 -0800
Re: Python Script to convert firewall rules Jason Friedman <jsf80238@gmail.com> - 2014-12-13 18:35 -0700
Re: Python Script to convert firewall rules Kashif Rana <kashifrana84@gmail.com> - 2014-12-14 10:51 +0400
Re: Python Script to convert firewall rules Jason Friedman <jsf80238@gmail.com> - 2014-12-14 22:07 -0700
csiph-web