'Set the priority of the repository.  1= highest, 99=default
Only works if host is using priorities plugin for yum.'

def set_priority(self, priority):

    try:
        priority = int(str(priority))
    except:
        raise CX((_('invalid    priority    level:    %s') % priority))
    self.priority = priority
