@classmethod
    def get_assigned_ips(cls, network_id):
        ips = [
            x[0] for x in db().query(
                models.IPAddr.ip_addr
            ).filter(
                models.IPAddr.network == network_id,
                or_(
                    models.IPAddr.node.isnot(None),
                    models.IPAddr.vip_name.isnot(None)
                )
            )]

        return ips
Get all IPs assigned to specified network group.
dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/extensions/network_manager/objects/network_group.py/NetworkGroup.get_assigned_ips