The contrib.network.ip.get_address_in_network() func should consider all addr on an iface

Bug #1678128 reported by Peter Sabaini
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charm Helpers
Fix Released
High
Peter Sabaini

Bug Description

The contrib.network.ip.get_address_in_network() func should consider all addr on an iface when searching for an ipaddr, but for IPv4 it only tests against the first address (it does check against all addr for IPv6)

On a cloud of ours we have several ip addr on a given iface and as it happens the first one happens to be outside of the given net (because of Reasons(tm)). The charmhelper call thus returns with no addr found even though there would be one available

Related branches

Changed in charm-helpers:
importance: Undecided → High
assignee: nobody → Peter Sabaini (peter-sabaini)
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.