def discard_config(self):
if self.config_session is not None:<EOL><INDENT>commands = ["<STR_LIT>".format(self.config_session), "<STR_LIT>"]<EOL>self.device.run_commands(commands)<EOL>self.config_session = None<EOL><DEDENT>
Implementation of NAPALM method discard_config.