ironic_python_agent.extensions.clean module¶
- class ironic_python_agent.extensions.clean.CleanExtension(agent=None)[source]¶
- Bases: - BaseAgentExtension- execute_clean_step(step, node, ports, clean_version=None, **kwargs)[source]¶
- Execute a clean step. - Parameters:
- step – A clean step with ‘step’, ‘priority’ and ‘interface’ keys 
- node – A dict representation of a node 
- ports – A dict representation of ports attached to node 
- clean_version – The clean version as returned by hardware.get_current_versions() at the beginning of cleaning/zapping 
 
- Returns:
- a CommandResult object with command_result set to whatever the step returns. 
 
 
