func play(ovs *libovsdb.OvsdbClient) { go processInput(ovs) for { select { case currUpdate := <-update: for table, tableUpdate := range currUpdate.Updates { if table == "Bridge" { for uuid, row := range tableUpdate.Rows { newRow := row.New if _, ok := newRow.Fields["name"]; ok { name := newRow.Fields["name"].(string) if name == "stop" { fmt.Println("Bridge stop detected : ", uuid) ovs.Disconnect() quit <- true } } } } } } } }