def load_bgp_database(filename):
""" load bgp database
we load our existing bgp information from the yaml file generated from
our first script here in order to graph that information """
# initialize our bgp db
bgp_db = {}
# load our existing bgp databses
with open(filename, 'r') as fn:
yaml=YAML()
bgp_db = yaml.load(fn)
return bgp_db
评论列表
文章目录