def compare_config(self):
if self.config_session is None:<EOL><INDENT>return "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>commands = ["<STR_LIT>" % self.config_session]<EOL>result = self.device.run_commands(commands, encoding="<STR_LIT:text>")[<NUM_LIT:0>]["<STR_LIT>"]<EOL>result = "<STR_LIT:\n>".join(result.splitlines()[<NUM_LIT:2>:])<EOL>return result.strip()<EOL><DEDENT>
Implementation of NAPALM method compare_config.