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 strings.
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 oper
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
|
>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 cr
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.
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 1
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 termi
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 there
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 enviro
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 pre
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
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
Do
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
13 matches
Mail list logo