@staticmethod<EOL><INDENT>def _get_address_family(table):<DEDENT>
address_family_mapping = {<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>}<EOL>family = table.split('<STR_LIT:.>')[-<NUM_LIT:2>]<EOL>try:<EOL><INDENT>address_family = address_family_mapping[family]<EOL><DEDENT>except KeyError:<EOL><INDENT>address_family = family<EOL><DEDENT>return address_family<EOL>
Function to derive address family from a junos table name.

:params table: The name of the routing table
:returns: address family