@@ -21,11 +21,11 @@ How are methods executed on HardwareManagers?
2121---------------------------------------------
2222Methods that modify hardware are dispatched to each hardware manager in
2323priority order. When a method is dispatched, if a hardware manager does not
24- have a method by that name or raises `IncompatibleHardwareMethodError `, IPA
24+ have a method by that name or raises `` IncompatibleHardwareMethodError ` `, IPA
2525continues on to the next hardware manager. Any hardware manager that returns
2626a result from the method call is considered a success and its return value
2727passed on to whatever dispatched the method. If the method is unable to run
28- successfully on any hardware managers, `HardwareManagerMethodNotFound ` is
28+ successfully on any hardware managers, `` HardwareManagerMethodNotFound ` ` is
2929raised.
3030
3131Why build a custom HardwareManager?
@@ -65,11 +65,11 @@ in :ironic-doc:`Ironic Cleaning </admin/cleaning.html>`. A node will perform
6565a set of cleaning steps any time the node is deleted by a tenant or moved from
6666``manageable `` state to ``available `` state. Ironic will query
6767IPA for a list of clean steps that should be executed on the node. IPA
68- will dispatch a call to `get_clean_steps() ` on all available hardware managers
69- and then return the combined list to Ironic.
68+ will dispatch a call to `` get_clean_steps() `` on all available hardware
69+ managers and then return the combined list to Ironic.
7070
7171To expose extra clean steps, the custom hardware manager should have a function
72- named `get_clean_steps() ` which returns a list of dictionaries. The
72+ named `` get_clean_steps() ` ` which returns a list of dictionaries. The
7373dictionaries should be in the form:
7474
7575.. code-block :: python
@@ -89,18 +89,18 @@ dictionaries should be in the form:
8989 }
9090 ]
9191
92- Then, you should create functions which match each of the `step ` keys in
93- the clean steps you return. The functions will take two parameters: `node `,
94- a dictionary representation of the Ironic node, and `ports `, a list of
95- dictionary representations of the Ironic ports attached to `node `.
92+ Then, you should create functions which match each of the `` step ` ` keys in
93+ the clean steps you return. The functions will take two parameters: `` node ` `,
94+ a dictionary representation of the Ironic node, and `` ports ` `, a list of
95+ dictionary representations of the Ironic ports attached to `` node ` `.
9696
97- When a clean step is executed in IPA, the `step ` key will be sent to the
97+ When a clean step is executed in IPA, the `` step ` ` key will be sent to the
9898hardware managers in hardware support order, using
99- `hardware.dispatch_to_managers() `. For each hardware manager, if the manager
100- has a function matching the `step ` key, it will be executed. If the function
99+ `` hardware.dispatch_to_managers() ` `. For each hardware manager, if the manager
100+ has a function matching the `` step ` ` key, it will be executed. If the function
101101returns a value (including None), that value is returned to Ironic and no
102102further managers are called. If the function raises
103- `IncompatibleHardwareMethodError `, the next manager will be called. If the
103+ `` IncompatibleHardwareMethodError ` `, the next manager will be called. If the
104104function raises any other exception, the command will be considered failed,
105105the command result's error message will be set to the exception's error
106106message, and no further managers will be called. An example step:
@@ -159,7 +159,7 @@ function with extra parameters.
159159
160160 .. note ::
161161
162- If two managers return steps with the same `step ` key, the priority will
162+ If two managers return steps with the same `` step ` ` key, the priority will
163163 be set to whichever manager has a higher hardware support level and then
164164 use the higher priority in the case of a tie.
165165
@@ -319,10 +319,10 @@ Priority
319319~~~~~~~~
320320A hardware manager has a single overall priority, which should be based on how
321321well it supports a given piece of hardware. At load time, IPA executes
322- `evaluate_hardware_support() ` on each hardware manager. This method should
322+ `` evaluate_hardware_support() ` ` on each hardware manager. This method should
323323return an int representing hardware manager priority, based on what it detects
324324about the platform it's running on. Suggested values are included in the
325- `HardwareSupport ` class. Returning a value of 0 aka `HardwareSupport.NONE `,
325+ `` HardwareSupport `` class. Returning a value of 0 aka `` HardwareSupport.NONE ` `,
326326will prevent the hardware manager from being used. IPA will never ship a
327327hardware manager with a priority higher than 3, aka
328- `HardwareSupport.SERVICE_PROVIDER `.
328+ `` HardwareSupport.SERVICE_PROVIDER ` `.
0 commit comments