def get_snmp_information(self):
snmp_information = {}<EOL>snmp_config = junos_views.junos_snmp_config_table(self.device)<EOL>snmp_config.get()<EOL>snmp_items = snmp_config.items()<EOL>if not snmp_items:<EOL><INDENT>return snmp_information<EOL><DEDENT>snmp_information = {<EOL>py23_compat.text_type(ele[<NUM_LIT:0>]): ele[<NUM_LIT:1>] if ele[<NUM_LIT:1>] else "<STR_LIT>"<EOL>for ele in snmp_items[<NUM_LIT:0>][<NUM_LIT:1>]<EOL>}<EOL>snmp_information["<STR_LIT>"] = {}<EOL>communities_table = snmp_information.pop("<STR_LIT>")<EOL>if not communities_table:<EOL><INDENT>return snmp_information<EOL><DEDENT>for community in communities_table.items():<EOL><INDENT>community_name = py23_compat.text_type(community[<NUM_LIT:0>])<EOL>community_details = {"<STR_LIT>": "<STR_LIT>"}<EOL>community_details.update(<EOL>{<EOL>py23_compat.text_type(ele[<NUM_LIT:0>]): py23_compat.text_type(<EOL>ele[<NUM_LIT:1>]<EOL>if ele[<NUM_LIT:0>] != "<STR_LIT>"<EOL>else C.SNMP_AUTHORIZATION_MODE_MAP.get(ele[<NUM_LIT:1>])<EOL>)<EOL>for ele in community[<NUM_LIT:1>]<EOL>}<EOL>)<EOL>snmp_information["<STR_LIT>"][community_name] = community_details<EOL><DEDENT>return snmp_information<EOL>
Return the SNMP configuration.