def clear_flows():
 for c in core.openflow.connections:
  d = of.ofp_flow_mod(command=of.OFPFC_DELETE)
  c.send(d)

def clear_flows ( ) : for c in core . openflow . connections : d = of . ofp_flow_mod ( command = of . OFPFC_DELETE ) c . send ( d )
clear flows on all switches .