def dhcp_leases_clear_db(): ''' We need to clear the db if the dhcp config is not present and dnsmasq is starting for the first time ''' dhcp_leases = DHCPLeaseDB() status = dhcp_leases.clear_db() if status != ovs.db.idl.Transaction.SUCCESS: vlog.err("dhcp_leases clear_db failed") dhcp_leases.close()