My favorites | Sign in
Project Logo
                
Search
for
Updated Sep 14, 2009 by drkjam
Labels: Featured
CHANGELOG  

Release: 0.7.3

Date: 14th Sep 2009

Changes since 0.7.3

Added add, radd, sub, rsub operators to the IPAddress class.

Added support for validation and iteration of simple nmap style IPv4 ranges (raised in  Issue 46 ).

Removed some unused constants from fallback socket module.

Specific bug fixes addressed in this release


Release: 0.7.2

Date: 20th Aug 2009

Changes since 0.7.1

Fixed a boundary problem with the iter_iprange() generator function and all associated calls to it throughout the codebase, including unit test coverage and adjustments.

Replaced regular expressions in cidr_merge() with pre-compiled equivalents for a small speed boost.

Adjustments to README raised by John Eckersberg.

Specific bug fixes addressed in this release


Release: 0.7.1

Date: 14th Aug 2009

Changes since 0.7

Renamed the netaddr shell script from nash to plain netaddr. This is to avoid a potentially nasty clash with an important Linux tool with the same name. Thanks to John Eckersberg for spotting this one early!

Updated IANA and IEEE data files with latest versions.

Specific bug fixes addressed in this release

  •  Issue 42  - Bug in cidr_merge() function when passed the CIDRs 0.0.0.0/0 and/or ::/0

Release: 0.7

Date: 11th Aug 2009

Changes since 0.6.x

Please Note - This release represents a major overhaul of netaddr. It breaks backward compatibility with previous releases. See the API documentation for full details of what is available.

Some highlights of what has changed :-

Internal module hierarchy has been completely overhauled and redesigned. This fixes up a lot of inconsistencies and problems with interdependent imports. All public classes, objects, functions and constants are still published via the main netaddr module namespace as in previous releases.

No more AT_* and ST_* 'constants'.

The Addr base class is gone. This removes the link between EUI and IP functionality so the library is can now easily be split into distinct units without many interdependencies between layer 2 and layer 3 functionality.

The use of custom descriptor classes has been completely discontinued.

Strategy classes and singleton objects have been replaced with a group of strategy modules in their own netaddr.strategy namespace. Each IP or EUI address object now holds a reference to a module rather than a singleton object.

Many operations that were previously static class methods are now presented as functions in the relevant modules. See the API documentation for details. The IP and CIDR classes have been replaced with two new classes called IPAddress and IPNetwork respectively. This name change is important as the IP part of netaddr has been completed redesigned. The notion of an individual IP address and an IP network or subnet has been made more obvious. IPAddress objects are now true scalars and do not evaluate in a list or tuple context. They also do not support any notion of a netmask or CIDR prefix; this is the primary function of an IPNetwork object.

Abritrary IP ranges and are still supported but a lot of their functionality has also been exposed via handy functions.

IP globbing routines (previous known as Wildcards) have been moved into their own submodule.

Added a new IPSet class which fully emulates a mutable Python set. This replaces a lot of half-baked experimental classes found in 0.5.x and 0.6.x such as IPRangeSet and CIDRGroup. See documentation for details.

All methods and properties that previously used or supported the 'fmt' formatting property no longer do so. In all cases, objects are now returned to correctly support pass through calls without side effects. It is up to the user to extract data in the right format from the objects IPAddress objects returned as required.

Unit tests have been completed re-written to support docstring style tests bundled into test suites. These are handy as they double up as documentation being combined with wiki syntax. Implemented code coverage checking using coverage 3.x.

nash - a nascent shell like tool for the netaddr library (requires IPython).

Support for RFC 1924 added ;-)

Specific bug fixes addressed in this release


Release: 0.6.4

Date: 11th Aug 2009

Major changes since 0.6.3

A small bug fix release for 0.6.x. For new code see release 0.7.

Specific bug fixes addressed in this release

 Issue 40  - Building RPM wth "python setup.py bdist_rpm" fails, multiple errors


Release: 0.6.3

Date: 23rd Jun 2009

Major changes since 0.6.2

Specific bug fixes addressed in this release

  •  Issue 33  - CIDR subtraction is broken for out-of-range CIDR objects
  •  Issue 35  - install error (on Python interpreters where socket.has_ipv6 is False)
  •  Issue 36  - netaddr.CIDR fails to parse default route CIDR
  •  Issue 37  - Bug in bitwise AND operator for IP addresses
  •  Issue 38  - Feature request: Addr.nonzero
  •  Issue 39  - CIDR.abbrev_to_verbose() not applying implicit classful netmask rules consistently

Release: 0.6.2

Date: 13th Apr 2009

Major changes since 0.6.1

Refreshed IEEE and IANA data files with latest revisions from their respective URLs.

Added get_latest_files() functions to both the netaddr.eui and netaddr.ip modules to assist in automating release builds.

Specific bug fixes addressed in this release


Release: 0.6.1

Date: 7th Apr 2009

Major changes since 0.6

Added a COPYRIGHT file with details and attribution for all 3rd party files bundled with netaddr.

Minimum Python version required is now 2.4.x changed from 2.3.x.

Integer addresses passed to the IP() and EUI() constructors no longer require a mandatory second address type (AT_*) argument in most cases. This is now only really required to disambiguate between IPv4/IPv6 addresses with the same numerical value. The same behaviour applies to EUI-48/EUI-64 identifiers. A small speed boost is achieved if the 2nd address type argument is explicitly provided. IPv6 addresses returned by EUI.ipv6_link_local() now always have a subnet prefix of /64.

Default sort order of aggregate classes (IPRange, CIDR and Wildcard) has been changed (again). They now sort initially by first address and then by network block size from largest to smallest which feels more natural.

Fixed a bug in the CIDR.abbrev_to_verbose() static method where IPv4 addresses with 4 octets (i.e. non-partial addresses) were being assigned subnet prefixes using abbreviated rules. All complete IPv4 addresses should always get a /32 prefix where it is not explicitly provided.

Abbreviated address expansion in the CIDR constructor is now optional and can be controlled by a new expand_abbrev boolean argument.

Added the new CIDR.summarize() static method which transforms lists of IP addresses and CIDRs into their most compact forms. Great for trimming down large ad hoc address lists!

Added the previous() and next() methods to the CIDR classes which return the CIDR subnets either side of a given CIDR that are of the same size. For the CIDR 192.0.2.0/24, previous will return 192.0.1.0/24 and next will return 192.0.3.0/24. Also accepts and optional step size (default is 1).

Added the supernet() method to the CIDR class which returns a generator of all the subnets that contain the current CIDR found by decrementing the prefixlen value for each step until it reaches zero.

Changed the way the fallback code works when the socket module is missing important constants and functions.

Removed the uppercase options from the Strategy constructors and internals as this behaviour can be easily replicated using the word_fmt option instead and requires less code (word_fmt='%X').

Specific bug fixes addressed in this release

  •  Issue 23  - Improve IPv6 IPv4 mapped/compatible address formatting
  •  Issue 24  - bug in CIDR.subnet() when using the fmt argument
  •  Issue 29  - CIDR.subnet method's count argument isn't working as documented
  •  Issue 30  - not compatible with Python 2.3
  •  Issue 31  - byte order in documentation confusing or wrong

Release: 0.6

Date: 22nd Jan 2009

Major changes since 0.5.x

Namespace changes

3 new sub namespaces have been added :-

netaddr.eui

Currently contains IEEE OUI and IAB classes and lookup code.

netaddr.ip

Currently contains IANA IPv4, IPv6 and IPv4 multicast lookup code.

netaddr.core

Currently contains only a couple of classes that are shared between code in netaddr.eui and netaddr.ip.

Please Note This change is part of a two stage internal restructuring of netaddr. In future releases, layer-2 MAC/EUI functionality will be separated from and layer-3 IP, CIDR and Wildcard functionality. All shared code will be moved to netaddr.core. When the migration is complete (expected in 0.7) the netaddr.address and netaddr.strategy namespaces will be removed. Please endeavour to access everything you need via the top-level netaddr namespace from this release onwards rather than diving down into the sub module. See the netaddr.__all__ variable for details of constants, objects, classes and functions exposed and intended for the public interface.

Addition of IEEE and IANA informational lookups

Addr() class removed from the public interface

Deletion of AddrRange() class

Addition of new IPRange() class

IP() class updates

nrange() generator function updates

CIDR() class updates

Support for many more MAC and IPv4 string address representation added

repr() method behaviour change

'klass' property renamed to 'fmt' (format)

Complete re-work and consolidation of unit tests

Nascent support for Python eggs and setuptools

Significant bug fixes

EXPERIMENTAL FEATURES

added bitwise operators to the IP class

IPRangeSet() class added


Release: 0.5.2

Date: 29th Sep 2008

Bug fixes for 0.5 - release 2

  • Fixed Issue 15 in bug tracker. Bad validation and conversion of IPv4 mapped IPv6 address values in IPv6Strategy class. Covered with unit test cases.
  • Updated PrefixLenDescriptor() class so that modifications to the property CIDR.prefixlen also update CIDR.first and CIDR.last keeping them in sync. Covered by unit test cases.
  • IP.hostname() method returns None when DNS lookup fails.

Release: 0.5.1

Date: 23rd Sep 2008

Bug fixes for 0.5 - release 1


Release: 0.5

Date: 19th Sep 2008

Major changes since 0.4.x

General changes

  • added checks and workaround code for Python runtime environments that suffer from the infamous socket module inet_aton('255.255.255.255') bug. This was discovered recently in Python 2.4.x on PowerPC under MacOS X. The fix also applies in cases where the socket module is not available (e.g. on Google App Engine).

  • all general Exception raising in the strategy module has now been replaced with more specific exceptions, mainly ValueError (these were unintentionally missed out of the 0.4 release).
  • implemented __hash__() operations for the Addr and AddrStrategy classes. This allows you to use IP, CIDR and Wildcard objects as keys in dictionaries and as elements in sets. Please note - this is currently an experimental feature which may change in future releases.
  • added the __ne__() operation to Addr and AddrRange classes.
  • obeying the Law of Demeter, the address type of Addr and AddrRange (sub)class instances can be accessed using the property directly :-

obj.addr_type # 0.5 onwards
rather than having to go via the strategy object :-
obj.strategy.addr_type # 0.4 and earlier

  • renamed the AT_DESCR lookup dictionary to AT_NAMES. Removed invalid and duplicated imports from all modules.

Addr class changes

IP class changes

  • added the hostname() method to IP instances which performs a reverse DNS

  • the IP class __str__() method now omits the subnet prefix is now implicit for IPv4 addresses that are /32 and IPv6 addresses that are /128. Subnet prefix is maintained in return value for all other values.

AddrRange class changes

Instead, self.first and self.last contain integer values and a reference to a strategy object is stored. Doing this is a lot more useful and cleaner for implementing internal logic.
To get Addr (sub)class objects (or strings, hex etc when manipulating the klass property) use the index values obj[0] and obj[-1] as a substitute for obj.first() and obj.last() respectively.
  • AddrRange (sub)class instances now define the increment, __iadd__(), and decrement, __isub__(), operators. This allows you to 'slide' CIDRs and Wildcards upwards and downwards based on their block sizes.

  • the _retval() method has now been renamed data_flavour() - yes, the UK spelling ;-) You shouldn't really care much about this as it mostly for internal use. I gave it a decent name as I didn't see any real need to hide the functionality if users wanted it.

CIDR class changes

Wildcard class changes


Release: 0.4

Date: 7th Aug 2008

Major changes since 0.3.x

Housekeeping Changes

  • Thorough review of code using pylint.
  • netaddr module now has the special __version__ variable defined which is also referenced by setup.py.
  • Some minor changes to setup.py and MANIFEST.in.
  • constants and custom Exception classes have been moved to __init__.py from strategy.py.

  • A from netaddr import * friendly __all__ has been defined for the netaddr namespace which should remove the need to delve too much into the address and strategy submodules.
  • fixed a number of line-ending issues in several files.

Hosted by Google Code