def augment_lab_config(lab_config):
  """augment the configuration by
  - adding a "connected_to" attribute to each port which has a cable plugged in

  Args:
      lab_config (dict): [description]

  Returns:
      dict: lab_config
  """
  
  for cable in lab_config["cables"]:    
    lab_config["devices"][cable["source"]["device"]]["ports"][cable["source"]["port"]]["connected_to"] = cable["destination"]
    lab_config["devices"][cable["source"]["device"]]["ports"][cable["source"]["port"]]["cable"] = cable
    
    
    lab_config["devices"][cable["destination"]["device"]]["ports"][cable["destination"]["port"]]["connected_to"] = cable["source"]
    lab_config["devices"][cable["destination"]["device"]]["ports"][cable["destination"]["port"]]["cable"] = cable
  
  return lab_config