netaddr 0.7.16 changed the behavior of IPNetworks with /31 and /32
prefixes to make their 'broadcast' attribute return None. This patch
replaces the use of the attribute with a -1 index lookup to get the
last address instead.
Revert Ida700555c133e27da2c76357986adfc8193fe89b and re-enables the
test_routerrule_detail test.
Reviewed: https:/ /review. openstack. org/218763 /git.openstack. org/cgit/ openstack/ horizon/ commit/ ?id=749aecda4c8 1f68eb1e4c0c9d1 0075135eb5ef81
Committed: https:/
Submitter: Jenkins
Branch: master
commit 749aecda4c81f68 eb1e4c0c9d10075 135eb5ef81
Author: Frode Nordahl <email address hidden>
Date: Mon Aug 31 10:25:27 2015 +0200
Fix usage of netaddr '.broadcast'
netaddr 0.7.16 changed the behavior of IPNetworks with /31 and /32
prefixes to make their 'broadcast' attribute return None. This patch
replaces the use of the attribute with a -1 index lookup to get the
last address instead.
Revert Ida700555c133e2 7da2c76357986ad fc8193fe89b and re-enables the routerrule_ detail test.
test_
Change-Id: I0887b0112f97b5 37e4c1467c47ab7 8b1f94f238b
Closes-Bug: 1490403
Closes-Bug: 1490423