def rootdn_cleanup(topology_st): """Do a cleanup of the config area before the test """ log.info('Cleaning up the config area') plugin = RootDNAccessControlPlugin(topology_st.standalone) plugin.remove_all_allow_host() plugin.remove_all_deny_host() plugin.remove_all_allow_ip() plugin.remove_all_deny_ip()
def clear_all_ips(inst, basedn, log, args): plugin = RootDNAccessControlPlugin(inst) plugin.remove_all_allow_ip() plugin.remove_all_deny_ip() log.info('ip-based policy was cleared')