Tools to decorate networkx graphs in situ, i.e., as constructed rather than as read from a textual file.
Bases: object
Add the informational part of device links to the graph.
Returns elements that get decorated.
Get devlink values for graph nodes that correspond to devices.
Parameters: |
|
---|---|
Returns: | dict of property name, node, property value |
Return type: | dict of str * str * ((list of str) or NoneType) |
Get device links values on this element.
Returns: | a map of devicelinks values |
---|---|
Return type: | dict of str * (list of str * NoneType) |
Bases: object
Find sysfs attributes for the device nodes of a network graph.
Get attributes on this element.
Returns: | a map of sysfs attributes |
---|---|
Return type: | dict of str * (str or NoneType) |
Returns elements that get decorated.
Get sysfs attributes for graph nodes that correspond to devices.
Parameters: |
|
---|---|
Returns: | dict of property name, node, property value |
Return type: | dict |
Bases: object
Find udev properties for the device nodes of a network graph.
Returns elements that get decorated.
Get properties on this element.
Returns: | a map of udev properties |
---|---|
Return type: | dict |
Get udev properties for graph nodes that correspond to devices.
Parameters: |
|
---|---|
Returns: | dict of property name, node, property value |
Return type: | dict |