'Checks if the device is in configuration mode or not.
Aruba uses "(<controller name>) (config) #" as config prompt'

def check_config_mode(self, check_string=u'(config)    #', pattern=u''):

    if (not pattern):
        pattern = re.escape(self.base_prompt[:16])
    return super(ArubaSSH, self).check_config_mode(check_string=check_string, pattern=pattern)
