code: def set_priority(self, name, vrid, value=None, disable=False,
                       default=False, run=True):
          
  
          if not default and not disable:
              if not str(value).isdigit() or value < 1 or value > 254:
                  raise ValueError("vrrp property 'priority' must be "
                                   "an integer in the range 1-254")
  
          cmd = self.command_builder('vrrp %d priority' % vrid, value=value,
                                     default=default, disable=disable)
  
          # Run the command if requested
          if run:
              result = self.configure_interface(name, cmd)
              # And verify the command succeeded
              if result is False:
                  return self.error
              return result
  
          # Otherwise return the formatted command
          return cmd
docs: Set the primary_ip property of the vrrp
  
          Args:
              name (string): The interface to configure.
              vrid (integer): The vrid number for the vrrp to be managed.
              value (integer): Priority to assign to the vrrp.
              disable (boolean): Unset priority if True.
              default (boolean): Set priority to default if True.
              run (boolean): Set to True to execute the command, False to
                  return a string with the formatted command.
  
          Returns:
              If run is True, returns True if the command executed successfully,
              error if failure.
  
              If run is False, returns the formatted command string which can
              be passed to the node