1
# Copyright 2012 Canonical Ltd. This software is licensed under the
2
# GNU Affero General Public License version 3 (see the file LICENSE).
4
from __future__ import (
10
"""Testing tools for `provisioningserver`."""
18
def network_infos(network):
19
"""Return a dict of info about a network.
21
:param network: The network object from which to extract the data.
22
:type network: IPNetwork.
25
subnet_mask=str(network.netmask),
26
broadcast_ip=str(network.broadcast),
27
ip_range_low=str(network.first),
28
ip_range_high=str(network.last),