Re: Downloadable CIDR network calculator

2018-09-12 Thread Edward Lopez-Acosta
Is it possible to get this hosted on GitLab or GiHub for collaboration to improve the script? I have used, and like, sipcalc but options are always good. If you are using Python 3.6 or newer you may consider using f-strings as well for better readability when substituting variables into

Re: Downloadable CIDR network calculator

2018-09-12 Thread Marc Peters
On Tue, Sep 11, 2018 at 11:59:04AM -0600, Andrew wrote: > > FWIW: a small network calculator without a python dependency is already > in packages. > > $> pkg_info ipcalc > Information for inst:ipcalc-1.4p0 > > Comment: > small network calculator > > Description: ipcalc is a small tool that

Re: Downloadable CIDR network calculator

2018-09-11 Thread Paul de Weerd
On Tue, Sep 11, 2018 at 03:34:40PM -0400, Steve Litt wrote: | > Also, sthen, since it is 2018 .. you shouldn't be using eui64 | > addressing anymore ;-) | | I'm confused. Was I using eui addressing in the IPV4 version? If I | shouldn't use eui, what *should* I use instead? My understanding from |

Re: Downloadable CIDR network calculator

2018-09-11 Thread mark
>From the link: IPV6: An Internet addressing protocol using 2128, less some stretches used for special things. IPV6 is not relevant to this document, nor is this document relevant to IPV6. > On 12 Sep 2018, at 1:28 am, Stuart Henderson wrote: > > On 2018-09-11, Steve Litt wrote: >> I've

Re: Downloadable CIDR network calculator

2018-09-11 Thread Steve Litt
On Tue, 11 Sep 2018 20:10:39 +0200 Paul de Weerd wrote: > On Tue, Sep 11, 2018 at 12:32:26PM -0400, Steve Litt wrote: > | > $ python3 cidr_calc.py.txt > | > 2a02:8011:7003:1:fab1:56ff:feac:3276/64 > | > > | > IP address (2a02:8011:7003:1:fab1:56ff:feac:3276) not numeric.

Re: Downloadable CIDR network calculator

2018-09-11 Thread Paul de Weerd
On Tue, Sep 11, 2018 at 12:32:26PM -0400, Steve Litt wrote: | > $ python3 cidr_calc.py.txt | > 2a02:8011:7003:1:fab1:56ff:feac:3276/64 | > | > IP address (2a02:8011:7003:1:fab1:56ff:feac:3276) not numeric. | > USAGE: subnet_calc ipaddr/maskbits | > EXAMPLE: subnet_calc

Re: Downloadable CIDR network calculator

2018-09-11 Thread Andrew
On 09/11/18 12:32, Steve Litt wrote: On Tue, 11 Sep 2018 15:28:09 + (UTC) Stuart Henderson wrote: On 2018-09-11, Steve Litt wrote: > I've created a downloadable CIDR (Classless Inter-Domain Routing) > network calculator, whose sole dependency is Python3. It runs in any > terminal or

Re: Downloadable CIDR network calculator

2018-09-11 Thread Oliver Leaver-Smith
On Tue, Sep 11, 2018 at 12:39:03PM -0400, Steve Litt wrote: > The preceding might bring up Python 2.7, which wouldn't work. If > there's a similar environment variable that either brings up the > Python3 executable, or nothing at all, that would be better. Ah yes, apologies for my oversight

Re: Downloadable CIDR network calculator

2018-09-11 Thread Steve Litt
On Tue, 11 Sep 2018 16:57:09 +0100 Oliver Leaver-Smith wrote: > Nice helpful script, thanks. Didn't run off the bat for me as it > expects python3 in /usr/bin/ > > `#!/usr/bin/env python` is more portable The preceding might bring up Python 2.7, which wouldn't work. If there's a similar

Re: Downloadable CIDR network calculator

2018-09-11 Thread Steve Litt
On Tue, 11 Sep 2018 15:28:09 + (UTC) Stuart Henderson wrote: > On 2018-09-11, Steve Litt wrote: > > I've created a downloadable CIDR (Classless Inter-Domain Routing) > > network calculator, whose sole dependency is Python3. It runs in any > > terminal or terminal emulator on any Linux or

Re: Downloadable CIDR network calculator

2018-09-11 Thread Oliver Leaver-Smith
Nice helpful script, thanks. Didn't run off the bat for me as it expects python3 in /usr/bin/ `#!/usr/bin/env python` is more portable ols leaversmith.com/privacy

Re: Downloadable CIDR network calculator

2018-09-11 Thread Stuart Henderson
On 2018-09-11, Steve Litt wrote: > I've created a downloadable CIDR (Classless Inter-Domain Routing) > network calculator, whose sole dependency is Python3. It runs in any > terminal or terminal emulator on any Linux or presumably BSD machine. > > http://troubleshooters.com/linux/cidr_calc.htm

Downloadable CIDR network calculator

2018-09-11 Thread Steve Litt
Hi all, I've created a downloadable CIDR (Classless Inter-Domain Routing) network calculator, whose sole dependency is Python3. It runs in any terminal or terminal emulator on any Linux or presumably BSD machine. http://troubleshooters.com/linux/cidr_calc.htm SteveT Steve Litt September 2018