@staticmethod<EOL><INDENT>def _get_address_family(table, instance):<DEDENT>
address_family_mapping = {"<STR_LIT>": "<STR_LIT>", "<STR_LIT>": "<STR_LIT>", "<STR_LIT>": "<STR_LIT>"}<EOL>if instance == "<STR_LIT>":<EOL><INDENT>family = table.rsplit("<STR_LIT:.>", <NUM_LIT:1>)[-<NUM_LIT:2>]<EOL><DEDENT>else:<EOL><INDENT>family = table.split("<STR_LIT:.>")[-<NUM_LIT:2>]<EOL><DEDENT>try:<EOL><INDENT>address_family = address_family_mapping[family]<EOL><DEDENT>except KeyError:<EOL><INDENT>address_family = None<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