Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

IPv4network.supernet() returns new network with invalid repr #98

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?

In [3]: ipaddr.IPv4Network("10.254.188.64/26").supernet()
Out[3]: IPv4Network('10.254.188.64/25')

In [4]: ipaddr.IPv4Network("10.254.188.64/26").supernet().network
Out[4]: IPv4Address('10.254.188.0')

In [5]: ipaddr.IPv4Network("10.254.188.64/26").supernet().prefixlen
Out[5]: 25


What is the expected output? What do you see instead?

The returned supernet should be displayed as "10.254.188.0/25"


What version of the product are you using? On what operating system?

ipaddr-2.1.10.tar.gz
Python 2.7.2 |EPD 7.3-1 (32-bit)| (default, Sep  7 2011, 09:16:50) 
MacOS 10.7.4


Original issue reported on code.google.com by [email protected] on 11 Jul 2012 at 10:21

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions