'Return whether interface is up'

def isUp(self, setUp=False):

    if setUp:
        cmdOutput = self.ifconfig('up')
        if cmdOutput:
            error(('Error    setting    %s    up:    %s    ' % (self.name, cmdOutput)))
            return False
        else:
            return True
    else:
        return ('UP' in self.ifconfig())
