@graft(namespace='<STR_LIT>')<EOL>def gateways_info():
data = netifaces.gateways()<EOL>results = {'<STR_LIT:default>': {}}<EOL>with suppress(KeyError):<EOL><INDENT>results['<STR_LIT>'] = data[netifaces.AF_INET]<EOL>results['<STR_LIT:default>']['<STR_LIT>'] = data['<STR_LIT:default>'][netifaces.AF_INET]<EOL><DEDENT>with suppress(KeyError):<EOL><INDENT>results['<STR_LIT>'] = data[netifaces.AF_INET6]<EOL>results['<STR_LIT:default>']['<STR_LIT>'] = data['<STR_LIT:default>'][netifaces.AF_INET6]<EOL><DEDENT>return results<EOL>
Returns gateways data.