def get_bgp_attrs(g, node):
    """Return a dict of all BGP related attrs given to a node"""
    if 'bgp' not in g.node[node]:
       g.node[node]['bgp'] = {'asnum': None, 'neighbors': {}, 'announces': {}}
    return g.node[node]['bgp']