summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-11-06 20:53:10 +0100
committerJan Pokorný <jpokorny@redhat.com>2013-11-06 20:53:10 +0100
commit9c42133ce236f5d60639deca787c0a5ffa7c788e (patch)
treeb4c3ee105181ac7133a7ed51c48c661c21dd42b6
parent61158cad3d91def0414c1550862e8ab5589afef2 (diff)
downloadcluster-overview-9c42133ce236f5d60639deca787c0a5ffa7c788e.zip
cluster-overview-9c42133ce236f5d60639deca787c0a5ffa7c788e.tar.gz
cluster-overview-9c42133ce236f5d60639deca787c0a5ffa7c788e.tar.xz
lib_nodes: add UnixSocket + use it instead of Artefact when suitable
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-xcluster-cman.py4
-rw-r--r--lib_nodes.py8
2 files changed, 10 insertions, 2 deletions
diff --git a/cluster-cman.py b/cluster-cman.py
index 9ce5f99..346f0f5 100755
--- a/cluster-cman.py
+++ b/cluster-cman.py
@@ -126,7 +126,7 @@ graph = lambda\
,Agent('node_b-libRedHatClusterProvider.so'
,label='libRedHatCluster\nProvider.so'
)
- ,Artefact('node_b-clumond.sock'
+ ,UnixSocket('node_b-clumond.sock'
,label='/var/run/\nclumond.sock'
)
,CmanRicci('node_b-ricci'
@@ -173,7 +173,7 @@ graph = lambda\
)
,CmanClustat('node_b-clustat'
)
- ,Artefact('node_b-rgmanager.sk'
+ ,UnixSocket('node_b-rgmanager.sk'
,label='/var/run/\ncluster/\nrgmanager.sk'
)]
,_edges=\
diff --git a/lib_nodes.py b/lib_nodes.py
index 0a044b9..a31aa9c 100644
--- a/lib_nodes.py
+++ b/lib_nodes.py
@@ -47,6 +47,14 @@ class Daemon(Executable):
))
+class UnixSocket(LibNode):
+ defaults = dict((
+ SHAPE.box3d,
+ FILLCOLOR.wheat,
+ STYLE.filled,
+ ))
+
+
class Artefact(LibNode):
defaults = dict((
SHAPE.box3d,