ect.keys(d).forEach((key) => validKeys.includes(key) || delete d[key] );
  })
  console.log('this is the save data',all_data)
  var all_data_json = encodeURIComponent(JSON.stringify(all_data));

  url = {{ url_for('api_blueprint.save_topology')|tojson }}+'?arr='+all_data_json
  var saveData = $.ajax({
        type: 'POST',
        url: url,
        dataType: "text",
        success: function(resultData) { alertify.notify("Peering and Transit Topology Saved ", 'success', 5) },
        error: function() { ale