def set_match_statements(self, name, action, seqno, statements):
        try:
            current_statements = self.get(name)[action][seqno]['match']
        except:
            current_statements = []

        commands = list()

        # remove set statements from current routemap
        for entry in set(current_statements).difference(statements):
            commands.append('route-map %s %s %s' % (name, action, seqno))
            commands.append('no match %s' % entry)

        # add new set statements to the routemap
        for entry in set(statements).difference(current_statements):
            commands.append('route-map %s %s %s' % (name, action, seqno))
            commands.append('match %s' % entry)

        return self.configure(commands) if commands else True
Configures the match statements within the routemap clause.
dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/routemaps.py/Routemaps.set_match_statements