-
Notifications
You must be signed in to change notification settings - Fork 3
/
updatesurrogate.html
55 lines (52 loc) · 1.95 KB
/
updatesurrogate.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{% extends "base.html" %}
{% block content %}
<form method="post" action="updatesurrogate">
<input name="id" type="hidden" value="{{ surrogate.key }}" />
<dl>
<dt>ip address</dt>
<dd><input name="ip" type="text" value="{{ surrogate.ip }}" /></dd>
<dt>type</dt>
<dd>
<select name="type">
<option value="{{ surrogate.type }}">{{ surrogate.type }}
<option value="">None
<option value="CNAME">CNAME
</select>
If <b>"{{ surrogate.ip }}"</b> is <a href="http://httpd.apache.org/docs/2.0/en/vhosts/name-based.html">Name-based Virtual Host</a>, select "CNAME".
</dd>
<dt>preference</dt>
<dd><input name="preference" type="text" value="{{ surrogate.preference }}" /></dd>
<dt>country (*1)</dt>
<dd><input name="country" type="text" value="{{ surrogate.country }}" /></dd>
<dt>continent</dt>
<dd><input name="continent" type="text" value="{{ surrogate.continent }}" /></dd>
<dt>hostname</dt>
<dd><input name="hostname" type="text" value="{{ surrogate.hostname }}" /></dd>
<dt>target AS(*2)</dt>
<dd>
{% if surrogate.targetnet %}
<input name="targetasnum" type="text" value="{{ surrogate.targetasnum }}" />
{% else %}
<input name="targetasnum" type="text" /><span class="prefred">UPDATE</span>
{% endif %}
</dd>
<dt>target net(*3)</dt>
<dd>
{% if surrogate.targetnet %}
<input name="targetnet" type="text" value="{{ surrogate.targetnet }}" />
{% else %}
<input name="targetnet" type="text" /><span class="prefred">UPDATE</span>
{% endif %}
</dd>
</dl>
(*1)Please fill country name in three-letter country codes. ((<a href="http://en.wikipedia.org/wiki/ISO_3166-1_alpha-3">ISO-3166</a>, cf. DEU, FRA, JPN, USA))
<br>
(*2)cf. 2500, 2516
<br>
(*3)cf. "128.59.0.0/16", "130.34.0.0/16"
<br>
"Preference" High = 10, Middle = 100, Low = 1000, Minimum = 9999.
<br>
<input type="submit" value="Update surrogate">
</form>
{% endblock %}