def cli(self, interface='', output=None):
    if (output is None):
        if interface:
            cmd = self.cli_command[1].format(interface=interface)
        else:
            cmd = self.cli_command[0]
        out = self.device.execute(cmd)
    else:
        out = output
    result_dict = {}
    index = 1
    p1 = re.compile('(?P<interface>(\\S+)) +(?P<status>(\\S+)([\\s+](\\S+))?) +(?P<protocol>(\\S+))(?: +(?P<description>(.*)))?$')
    for line in out.splitlines():
        line = line.strip()
        m = p1.match(line)
        if (m and (m.groupdict()['protocol'] != 'Protocol')):
            group = m.groupdict()
            interface = Common.convert_intf_name(group['interface'])
            intf_dict = result_dict.setdefault('interfaces', {}).setdefault(interface, {})
            intf_dict['status'] = group['status']
            intf_dict['protocol'] = group['protocol']
            if (group['description'] is not None):
                intf_dict['description'] = str(group['description'])
            else:
                intf_dict['description'] = ''
            index += 1
            continue
    return result_dict
def cli(self, interface=, output=None):
    if (output is None):
        if interface:
            cmd = self.cli_command[1].format(interface=interface)
        else:
            cmd = self.cli_command[0]
        out = self.device.execute(cmd)
    else:
        out = output
    result_dict = {}
    index = 1
    p1 = re.compile('(?P<interface>(\\S+)) +(?P<status>(\\S+)([\\s+](\\S+))?) +(?P<protocol>(\\S+))(?: +(?P<description>(.*)))?$')
    for line in out.splitlines():
        line = line.strip()
        m = p1.match(line)
        if (m and (m.groupdict()['protocol'] != 'Protocol')):
            group = m.groupdict()
            interface = Common.convert_intf_name(group['interface'])
            intf_dict = result_dict.setdefault('interfaces', {}).setdefault(interface, {})
            intf_dict['status'] = group['status']
            intf_dict['protocol'] = group['protocol']
            if (group['description'] is not None):
                intf_dict['description'] = str(group['description'])
            else:
                intf_dict['description'] = 
            index += 1
            continue
    return result_dict