'all.bs.table', function () {
  $('.toggle-event').bootstrapToggle()
})

function save_topology(){
  event.preventDefault();
  var external_table = $('#external_table')
  external_table.bootstrapTable("resetSearch","");
  var all_data_pre = external_table.bootstrapTable('getData', false)
  var all_data = JSON.parse(JSON.stringify(all_data_pre))
  validKeys = ['index','source','target','node','interface','direction','src_icon','tar_icon','cir','alert_status','type']
  all_data.forEach( function (d) { 
   Obj