summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2007-02-06 21:18:16 +0000
committerNarayan Desai <desai@mcs.anl.gov>2007-02-06 21:18:16 +0000
commit834fd0546eda71bca4e853fe265b2afdf422380a (patch)
treedf23c069bf2ca00bae9b20934fa78506f982bfdb /src
parent29efe905e9df01cc8e279f29e17f24e1683ee904 (diff)
downloadbcfg2-834fd0546eda71bca4e853fe265b2afdf422380a.tar.gz
bcfg2-834fd0546eda71bca4e853fe265b2afdf422380a.tar.bz2
bcfg2-834fd0546eda71bca4e853fe265b2afdf422380a.zip
More colors and a category key in bcfg2-admin viz
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2791 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rwxr-xr-xsrc/sbin/bcfg2-admin7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-admin b/src/sbin/bcfg2-admin
index 932b28c31..a8236a55f 100755
--- a/src/sbin/bcfg2-admin
+++ b/src/sbin/bcfg2-admin
@@ -8,7 +8,8 @@ import Bcfg2.Server.Core, Bcfg2.Logging
log = logging.getLogger('bcfg-admin')
colors = ['steelblue1', 'chartreuse', 'gold', 'magenta', 'indianred1', 'limegreen',
- 'orange1', 'lightblue2', 'green1', 'blue1', 'yellow1']
+ 'orange1', 'lightblue2', 'green1', 'blue1', 'yellow1', 'darkturquoise',
+ 'gray66']
usage = '''
bcfg2-admin [options]
@@ -346,6 +347,10 @@ def do_viz(args):
dotpipe.tochild.write('''\tGroup [shape="ellipse"];\n''')
dotpipe.tochild.write('''\tProfile [style="bold", shape="ellipse"];\n''')
dotpipe.tochild.write('''\tHblock [label="Host1|Host2|Host3", shape="record"];\n''')
+ for category in categories:
+ dotpipe.tochild.write('''\t''' + category + ''' [label="''' + category + \
+ '''", shape="record", style="filled", fillcolor=''' + \
+ categories[category] + '''];\n''')
dotpipe.tochild.write('''\tlabel="Key";\n''')
dotpipe.tochild.write("\t}\n")
dotpipe.tochild.write("}\n")