def get_facts(self):
commands = ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]<EOL>result = self.device.run_commands(commands)<EOL>version = result[<NUM_LIT:0>]<EOL>hostname = result[<NUM_LIT:1>]<EOL>interfaces_dict = result[<NUM_LIT:2>]["<STR_LIT>"]<EOL>uptime = time.time() - version["<STR_LIT>"]<EOL>interfaces = [i for i in interfaces_dict.keys() if "<STR_LIT:.>" not in i]<EOL>interfaces = string_parsers.sorted_nicely(interfaces)<EOL>return {<EOL>"<STR_LIT>": hostname["<STR_LIT>"],<EOL>"<STR_LIT>": hostname["<STR_LIT>"],<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT>": version["<STR_LIT>"],<EOL>"<STR_LIT>": version["<STR_LIT>"],<EOL>"<STR_LIT>": version["<STR_LIT>"],<EOL>"<STR_LIT>": int(uptime),<EOL>"<STR_LIT>": interfaces,<EOL>}<EOL>
Implementation of NAPALM method get_facts.