source: trunk/templates/showsubs.tmpl@ 893

Last change on this file since 893 was 692, checked in by Kris Deugau, 10 years ago

/trunk

Start adding support for advisory "reserved block" assignments - when
creating a new assignment, flag an equal-sized block ahead or behind
to expand the assignment in the future. See #24.

  • free block assignment
  • guided assignment (still needs tweaking to dodge existing reserved blocks)
  • note flagged blocks in free block list
File size: 3.4 KB
Line 
1<div class="tbltitle">Subnets in <TMPL_VAR NAME=block>
2(<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;id=<TMPL_VAR NAME=self_id>&amp;basetype=b">Edit</a>)
3</div>
4
5<TMPL_VAR NAME=addperm>
6
7<TMPL_IF contlist>
8<hr class="w30">
9<div class="tbltitle">Containers</div>
10<br>
11<table class="center altrows" width="98%" cellspacing="0">
12<tr class="headrow">
13<td class="heading">Container block</td>
14<td class="heading">Location</td>
15<td class="heading">Type</td>
16<td class="heading">Description/Name</td>
17<td class="heading">Allocations</td>
18<td class="heading">Free blocks</td>
19<td class="heading">Largest free block</td>
20</tr>
21
22<TMPL_LOOP NAME=contlist>
23<tr>
24<td><a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=showsubs&amp;parent=<TMPL_VAR NAME=id>"><TMPL_VAR NAME=block></a></td>
25<td><TMPL_VAR NAME=city></td>
26<td><TMPL_VAR NAME=type></td>
27<td><TMPL_VAR NAME=desc></td>
28<td><TMPL_VAR NAME=suballocs></td>
29<td><TMPL_VAR NAME=subfree></td>
30<td><TMPL_VAR ESCAPE=HTML NAME=lfree></td>
31</TMPL_LOOP>
32</table>
33<TMPL_ELSE>
34<hr class="w30">
35<div class="tbltitle">No container blocks in <TMPL_VAR NAME=block></div>
36</TMPL_IF>
37
38<TMPL_IF alloclist>
39<br>
40<hr class="w30">
41<div class="tbltitle">Usage allocations</div>
42<br>
43<table width="98%" cellspacing="0" class="center altrows">
44<tr>
45<td class="heading">CIDR allocation</td>
46<td class="heading">Location</td>
47<td class="heading">Type</td>
48<td class="heading">CustID</td>
49<td class="heading">SWIPed?</td>
50<td class="heading">Description/Name</td>
51</tr>
52
53<TMPL_LOOP NAME=alloclist>
54<tr>
55<td>
56<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=edit&amp;id=<TMPL_VAR NAME=id>&amp;basetype=b"><TMPL_VAR NAME=block></a>
57<TMPL_IF listpool> &nbsp; <a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=listpool&amp;pool=<TMPL_VAR NAME=id>">List IPs</a></TMPL_IF>
58</td>
59<td><TMPL_VAR NAME=city></td>
60<td><TMPL_VAR NAME=type></td>
61<td><TMPL_VAR NAME=custid></td>
62<td><TMPL_VAR NAME=swip><TMPL_IF partswip><small>*</small></TMPL_IF></td>
63<td><TMPL_VAR NAME=desc></td>
64</tr>
65</TMPL_LOOP>
66</table>
67<TMPL_ELSE>
68<hr class="w30">
69<div class="tbltitle">No usage allocations in <TMPL_VAR NAME=block></div>
70</TMPL_IF>
71
72<TMPL_IF maydel>
73<div class="tbltitle">
74<br>
75<form action="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi" method=POST>
76<fieldset><legend class="noshow">&nbsp;</legend>
77<input type=hidden name=action value="delete">
78<input type=hidden name=block value="<TMPL_VAR NAME=self_id>">
79<input type=hidden name=basetype value="b">
80<input type=submit value=" Remove this block ">
81</fieldset>
82</form>
83</div>
84</TMPL_IF>
85
86<br>
87<hr class="w60">
88
89<div class="tbltitle">Free blocks within <TMPL_VAR NAME=block></div>
90
91<TMPL_IF freelist>
92<table width="98%" cellspacing="0" class="center altrows">
93<tr>
94<td class="heading">CIDR block</td>
95<td class="heading">Range</td>
96</tr>
97
98<TMPL_LOOP name=freelist>
99<tr>
100<TMPL_IF newvrf><td colspan=2>vrf: <TMPL_VAR NAME=newvrf></td>
101<TMPL_ELSE>
102<td>
103<TMPL_IF mayadd>
104<a href="<TMPL_VAR NAME=webpath>/cgi-bin/main.cgi?action=assign&amp;block=<TMPL_VAR NAME=fblock>&amp;fbid=<TMPL_VAR NAME=fbid>&amp;parent=<TMPL_VAR NAME=fbparent>"><TMPL_VAR NAME=fblock></a>
105<TMPL_ELSE>
106<TMPL_VAR NAME=fblock>
107</TMPL_IF>
108<TMPL_IF resv><br>(Reserved to expand <TMPL_VAR NAME=resv>)</TMPL_IF>
109</td>
110<td><TMPL_VAR NAME=frange></td>
111</TMPL_IF>
112</tr>
113</TMPL_LOOP>
114</table>
115<TMPL_ELSE>
116<br>
117<hr class="w30">
118<div class="tbltitle">No unassigned blocks in <TMPL_VAR NAME=block></div>
119</TMPL_IF>
Note: See TracBrowser for help on using the repository browser.