#NEWLINE# @ classmethod #NEWLINE# def get_assigned_ips( cls , network_id ) : #NEWLINE# #INDENT# 'Get all IPs assigned to specified network group.\n\n        :param network_id: NetworkGroup ID\n        :type network_id: int\n        :returns: list of IPAddr instances\n        ' #NEWLINE# ips = [ network_id [ 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 ) ) ) ] #NEWLINE# return ips