conga/luci/cluster form-macros
CVSROOT: /cvs/cluster
Module name: conga
Changes by: jparsons at sourceware.org 2006-08-16 21:48:38
Modified files:
luci/cluster : form-macros
Log message:
faildom junk
luci/cluster/form-macros +60 -1
@@ -1220,7 +1220,66 @@ </div> <div metal:define-macro="fdomlist-form"> - <h2>Failover Domains List Form</h2> + <span tal:define="ragent python:here.getRicciAgent(request/clustername); + global sta python:here.getClusterStatus(ragent); + global fdominfo python:here.getFdomsInfo(modelb, request, sta);"> + <span tal:repeat="fdom fdominfo"> + <div class="fdomname"> + <h2>Failover Domain Name: <font color="blue"><a href="" tal:attributes="href fdom/cfgurl"><span tal:content="fdom/name"/></a></font></h2> + </div> + <div class="fdomordered"> + <span tal:condition="python:fdom['ordered'] == True"> + <h2>This Failover Domain is <i>Ordered</i></h2> + </span> + <span tal:condition="python:fdom['ordered'] == False"> + <h2>This Failover Domain is <i>Unordered</i></h2> + </span> + </div> + <div class="fdomrestricted"> + <span tal:condition="python:fdom['restricted'] == True"> + <h2>This Failover Domain is <i>Restricted</i></h2> + </span> + <span tal:condition="python:fdom['restricted'] == False"> + <h2>This Failover Domain is <i>Unrestricted</i></h2> + </span> + </div> + <div class="fdommembers"> + <ul> + <span tal:repeat="node fdom/nodeslist"> + <li style="list-style-image: url(small_node_active.png);" tal:condition="python:node['status'] == '0'"> + <a href="" tal:attributes="href node/nodecfgurl"><font color="green"><span tal:content="node/nodename"/></font></a> + </li> + <li style="list-style-image: url(small_node_inactive.png);" tal:condition="python:node['status'] == '1'"> + <a href="" tal:attributes="href node/nodecfgurl"><font color="red"><span tal:content="node/nodename"/></font></a> + </li> + <li style="list-style-image: url(small_node_unknown.png);" tal:condition="python:node['status'] == '2'"> + <a href="" tal:attributes="href node/nodecfgurl"><font color="gray"><span tal:content="node/nodename"/></font></a> + </li> + </span> + </ul> + </div> + <div class="fdomservice"> + <h2>Services employing this Failover Domain: </h2> + <ul> + <span tal:condition="python:len(cstatus['currentservices']) < 1"> + <li><i>No Services Defined</i></li> + </span> + <span tal:repeat="svc fdom/svclist"> + <span tal:condition="python:svc['srunning'] == 'true'"> + <li style="list-style-image:url(small_svc.png);"> + <a href="" tal:attributes="href svc/svcurl"><font color="green"><span tal:content="svc/name"/></font></a> Running On Node <span tal:content="svc/location"/> + </li> + </span> + <span tal:condition="python:svc['srunning'] != 'true'"> + <li style="list-style-image:url(small_svc_stopped.png);"> + <a href="" tal:attributes="href svc/svcurl"><font color="red"><span tal:content="svc/name"/></font></a> Not Running + </li> + </span> + </span> + </ul> + </div> + </span> + </span> </div> <div metal:define-macro="fdomadd-form">