Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25
Daniel Flick
daniel.p.flick at gmail.com
Tue Oct 17 17:24:50 EDT 2017
More information about the Python-list mailing list
Tue Oct 17 17:24:50 EDT 2017
- Previous message (by thread): Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25
- Next message (by thread): Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<SNIP> Peter, I am not following. Are you saying that there is a function that returns the network only? network_address was giving me the mask attached to the end but maybe I was doing something wrong. For an input of LAN_IP=192.168.99.1/24 ipaddress.IPv4Interface(LAN_IP).ip returns 192.168.99.0/24 I need the 192.168.99.0 part only.
- Previous message (by thread): Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25
- Next message (by thread): Is there a function of ipaddress to get the subnet only from input like 192.168.1.129/25
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list