mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-08-18 21:23:40 +00:00
135 lines
3.9 KiB
Text
135 lines
3.9 KiB
Text
{% block graph_dot %}
|
|
digraph {
|
|
graph [label="TOPOLOGIE DU RÉSEAU", labelloc=t, fontsize=40];
|
|
node [fontname=Helvetica fontsize=8 shape=plaintext];
|
|
edge[arrowhead=none];
|
|
|
|
|
|
{% block subgraphs %}
|
|
{% for sub in subs %}
|
|
subgraph cluster_{{ sub.bat_id }} {
|
|
fontsize=15;
|
|
label="Bâtiment {{ sub.bat_name }}";
|
|
|
|
{% if sub.bornes %}
|
|
{% block bornes %}
|
|
node [label=<
|
|
<TABLE BGCOLOR="{{ colors.back}}" BORDER="0" CELLBORDER="0" CELLSPACING="0">
|
|
<TR>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head_bornes }}">
|
|
<FONT FACE="Helvetica Bold" COLOR="white">Borne</FONT></TD>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head_bornes }}">
|
|
<FONT FACE="Helvetica Bold" COLOR="white">Switch</FONT></TD>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head_bornes }}">
|
|
<FONT FACE="Helvetica Bold" COLOR="white">Port</FONT></TD>
|
|
</TR>
|
|
{% for borne in sub.bornes %}
|
|
<TR>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BORDER="0">
|
|
<FONT COLOR="{{ colors.texte }}" >{{ borne.name }}</FONT>
|
|
</TD>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BORDER="0">
|
|
<FONT COLOR="{{ colors.texte }}" >{{ borne.switch }}</FONT>
|
|
</TD>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BORDER="0">
|
|
<FONT COLOR="{{ colors.texte }}" >{{ borne.port }}</FONT>
|
|
</TD>
|
|
</TR>
|
|
{% endfor %}
|
|
</TABLE>
|
|
>] "{{sub.bat_name}}bornes";
|
|
{% endblock %}
|
|
{% endif %}
|
|
|
|
{% if sub.machines %}
|
|
{% block machines %}
|
|
node [label=<
|
|
<TABLE BGCOLOR="{{ colors.back}}" BORDER="0" CELLBORDER="0" CELLSPACING="0">
|
|
<TR>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head_server }}">
|
|
<FONT FACE="Helvetica Bold" COLOR="white">Machine</FONT></TD>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head_server }}">
|
|
<FONT FACE="Helvetica Bold" COLOR="white">Switch</FONT></TD>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head_server }}">
|
|
<FONT FACE="Helvetica Bold" COLOR="white">Port</FONT></TD>
|
|
</TR>
|
|
|
|
{% for machine in sub.machines %}
|
|
<TR>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BORDER="0">
|
|
<FONT COLOR="{{ colors.texte }}" >{{ machine.name }}</FONT>
|
|
</TD>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BORDER="0">
|
|
<FONT COLOR="{{ colors.texte }}" >{{ machine.switch }}</FONT>
|
|
</TD>
|
|
<TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BORDER="0">
|
|
<FONT COLOR="{{ colors.texte }}" >{{ machine.port }}</FONT>
|
|
</TD>
|
|
</TR>
|
|
{% endfor %}
|
|
</TABLE>
|
|
>] "{{sub.bat_name}}machines";
|
|
{% endblock %}
|
|
{% endif %}
|
|
|
|
|
|
{% block switchs %}
|
|
{% for switch in sub.switchs %}
|
|
node [label=<
|
|
<TABLE BGCOLOR="{{ colors.back }}" BORDER="0" CELLBORDER="0" CELLSPACING="0">
|
|
<TR><TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head }}">
|
|
<FONT FACE="Helvetica Bold" COLOR="white">
|
|
{{ switch.name }}
|
|
</FONT></TD></TR>
|
|
<TR><TD ALIGN="LEFT" BORDER="0">
|
|
<FONT COLOR="{{ colors.texte }}" >Modèle</FONT>
|
|
</TD>
|
|
<TD ALIGN="LEFT">
|
|
<FONT COLOR="{{ colors.texte }}" >{{ switch.model }}</FONT>
|
|
</TD></TR>
|
|
<TR><TD ALIGN="LEFT" BORDER="0">
|
|
<FONT COLOR="{{ colors.texte }}" >Taille</FONT>
|
|
</TD>
|
|
<TD ALIGN="LEFT">
|
|
<FONT COLOR="{{ colors.texte }}" >{{ switch.nombre }}</FONT>
|
|
</TD></TR>
|
|
{% block liens %}
|
|
{% for port in switch.ports %}
|
|
<TR><TD ALIGN="LEFT" BORDER="0">
|
|
<FONT COLOR="{{ colors.texte }}" >{{ port.numero }}</FONT>
|
|
</TD>
|
|
<TD ALIGN="LEFT">
|
|
<FONT COLOR="{{ colors.texte }}" >{{ port.related }}</FONT>
|
|
</TD></TR>
|
|
{% endfor %}
|
|
{% endblock %}
|
|
</TABLE>
|
|
>] "{{ switch.id }}" ;
|
|
{% endfor %}
|
|
{% endblock %}
|
|
}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block isoles %}
|
|
{% for switchs in alone %}
|
|
"{{switchs.id}}" [label=<
|
|
<TABLE BGCOLOR="{{ colors.back }}" BORDER="0" CELLBORDER="0" CELLSPACING="0">
|
|
<TR><TD COLSPAN="2" CELLPADDING="4" ALIGN="CENTER" BGCOLOR="{{ colors.head }}">
|
|
<FONT FACE="Helvetica Bold" COLOR="white">
|
|
{{switchs.name}}
|
|
</FONT></TD></TR>
|
|
</TABLE>
|
|
>]
|
|
{% endfor %}
|
|
{% endblock %}
|
|
|
|
|
|
{% block links %}
|
|
{% for link in links %}
|
|
"{{ link.depart }}" -> "{{ link.arrive }}";
|
|
{% endfor %}
|
|
{% endblock %}
|
|
}
|
|
{% endblock %}
|