def set_banner(self, banner_type, value=None, default=False,
                   disable=False):
        """Configures system banners

        Args:
            banner_type(str): banner to be changed (likely login or motd)
            value(str): value to set for the banner
            default (bool): Controls the use of the default keyword
            disable (bool): Controls the use of the no keyword`

        Returns:
            bool: True if the commands completed successfully otherwise False
        """

        command_string = banner_type % "banner %s"
        if default is True or disable is True:
            cmd = self.command_builder(command_string, value=None,
                                       default=default, disable=disable)
            return self.configure(cmd)
        else:
            if not value.endswith("\n"):
                value = value + "\n"
            command_input = dict(cmd=command_string, input=value)
            return self.configure([command_input])
dataset/ETHPy150Open arista-eosplus/pyeapi/pyeapi/api/system.py/System.set_banner/swapped operands of `%`