socmake_graph
flatten_graph(NODE **kwargs)
Flatten the dependency graph of NODE into a topologically-sorted flat list.
With no EXCLUDED_IPS, the result is cached in the FLAT_GRAPH target property (read it back
with get_property). When EXCLUDED_IPS is passed, the excluded IPs and any of their
dependencies that are not also reachable through a non-excluded IP are left out of the traversal;
since that result is specific to this call's exclusion set, it is returned via OUTVAR instead
of being cached.
Parameters
| Name | Type | Description |
|---|---|---|
NODE | string | The root IP target whose dependency graph should be flattened. |
Keyword Arguments
| Name | Type | Description |
|---|---|---|
OUTVAR | string | Variable that receives the flattened list. Required when EXCLUDED_IPS is used. |
EXCLUDED_IPS | list[string] | Exclude the listed IPs (and dependencies only reachable through them) from the graph. |
compare_lists(L1 L2 RET)
Function to compare 2 list, will return 1 if they are equal, otherwise, will return -1.
Parameters
| Name | Type | Description |
|---|---|---|
L1 | list | 1st list |
L2 | list | 2nd list |
RET | integer | returned value for the comparison |