def METHOD_NAME(self, options):
    self._properties = sysfs_options.properties(self.master)
    current_options = sysfs_options.get_options(self._properties)
    if options != current_options:
        mode_will_be_changed = (
            'mode' in options
            and current_options['mode'] != options['mode']
        )
        if mode_will_be_changed:
            with _preserve_iface_state(self._master) as interface:
                interface.down()
                with self._temporarily_detached_slaves():
                    sysfs_options.METHOD_NAME(self._master, options)
        else:
            sysfs_options.METHOD_NAME(self._master, options)
    logging.info('Bond %s options set: %s.', self._master, options)
    self._options = options