#NEWLINE# @ staticmethod #NEWLINE# def get_allocated_vlans_sorted( ) : #NEWLINE# #INDENT# used_vlans = vlanController . get_allocated_vlans ( ) #NEWLINE# sorted_vlans = [ 0 for x in xrange ( 4 ) ] #NEWLINE# sorted_vlans [ 0 ] = [ x for x in used_vlans if ( x <= 1000 ) ] #NEWLINE# sorted_vlans [ 1 ] = [ x for x in used_vlans if ( ( x > 1000 ) and ( x <= 2000 ) ) ] #NEWLINE# sorted_vlans [ 2 ] = [ x for x in used_vlans if ( ( x > 2000 ) and ( x <= 3000 ) ) ] #NEWLINE# sorted_vlans [ 3 ] = [ x for x in used_vlans if ( x > 3000 ) ] #NEWLINE# return sorted_vlans