def _parse_expr(self, part):
self._logger.debug("<STR_LIT>" + str(part))<EOL>key, op, val = part<EOL>success = True<EOL>dictsql = {<EOL>'<STR_LIT>': op,<EOL>'<STR_LIT>': key,<EOL>'<STR_LIT>': str(val),<EOL>'<STR_LIT>': {<EOL>'<STR_LIT:string>': key + op + val,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': key,<EOL>'<STR_LIT>': op,<EOL>'<STR_LIT:error>': False<EOL>}<EOL>}<EOL>if key in self.attributes:<EOL><INDENT>if type(self.attributes[key]) is list:<EOL><INDENT>if val not in self.attributes[key]:<EOL><INDENT>dictsql['<STR_LIT>']['<STR_LIT:error>'] = True<EOL>dictsql['<STR_LIT>']['<STR_LIT>'] = '<STR_LIT>'<EOL>success = False<EOL><DEDENT><DEDENT><DEDENT>else:<EOL><INDENT>dictsql['<STR_LIT>']['<STR_LIT:error>'] = True<EOL>dictsql['<STR_LIT>']['<STR_LIT>'] = '<STR_LIT>'<EOL>success = False<EOL><DEDENT>return success, dictsql<EOL>
Parse matching expression in form key <op> value

            For example;
                vlan > 1
                node = FOO-BAR