Primo risultato cercando "netmask to cidr in Python" https://stackoverflow.com/questions/38085571/how-use-netaddr-to-convert-subnet-mask-to-cidr-in-python
On Fri, Sep 13, 2019, 11:56 Lorenzo Mainardi <lorma...@gmail.com> wrote: > Qualcuno di voi ha idea se è possibile convertire una netmask in una CIDR > con il modulo built-in ipaddress? > > Mi farebbe comodo convertire 255.255.255.255 -> 32 oppure 255.255.255.0 -> > 24 > > è facile da implementare, ma magari c'è già un metodo e non voglio > reinventare la ruota. > > -- > LORENZO MAINARDI > > _______________________________________________ > Python mailing list > Python@lists.python.it > https://lists.python.it/mailman/listinfo/python >
_______________________________________________ Python mailing list Python@lists.python.it https://lists.python.it/mailman/listinfo/python