solar connections graph fix, README updated

This commit is contained in:
Przemyslaw Kaminski 2015-07-15 10:46:29 +02:00
parent 9f375a341f
commit 181a954d43
2 changed files with 7 additions and 1 deletions

View File

@ -79,6 +79,12 @@ solar connections show
solar connections graph solar connections graph
``` ```
You can also limit graph to show only specific resources:
```
solar connections graph --start-with mariadb_service --end-with keystone_db
```
* You can make sure that all input values are correct and mapped without duplicating your values with this command: * You can make sure that all input values are correct and mapped without duplicating your values with this command:
``` ```
solar resource validate solar resource validate

View File

@ -258,7 +258,7 @@ def init_cli_connections():
end_with=end_with) end_with=end_with)
nx.write_dot(g, 'graph.dot') nx.write_dot(g, 'graph.dot')
fabric_api.local('dot', '-Tpng', 'graph.dot', '-o', 'graph.png') fabric_api.local('dot -Tpng graph.dot -o graph.png')
# Matplotlib # Matplotlib
#pos = nx.spring_layout(g) #pos = nx.spring_layout(g)