|
@@ -19695,7 +19695,7 @@ function renderRipInstances() {
|
|
|
<td class="py-1.5 px-3 font-semibold text-white flex items-center gap-1.5">
|
|
<td class="py-1.5 px-3 font-semibold text-white flex items-center gap-1.5">
|
|
|
<span class="text-rose-400">↳</span> <span>${escapeHtml(inst.name || 'default')}</span>
|
|
<span class="text-rose-400">↳</span> <span>${escapeHtml(inst.name || 'default')}</span>
|
|
|
</td>
|
|
</td>
|
|
|
- <td class="py-1.5 px-3 uppercase text-rose-300 font-bold">${escapeHtml(inst.version || 'rip2')}</td>
|
|
|
|
|
|
|
+ <td class="py-1.5 px-3 uppercase text-rose-300 font-bold">${inst.version == 1 || inst.version === 'ripng' ? 'RIPng' : 'RIPv2'}</td>
|
|
|
<td class="py-1.5 px-3 text-slate-400">${inst.update_time || 30}s</td>
|
|
<td class="py-1.5 px-3 text-slate-400">${inst.update_time || 30}s</td>
|
|
|
<td class="py-1.5 px-3 text-slate-400">${inst.timeout_time || 180}s</td>
|
|
<td class="py-1.5 px-3 text-slate-400">${inst.timeout_time || 180}s</td>
|
|
|
<td class="py-1.5 px-3 font-mono text-cyan-300">${redist.join(', ') || 'none'}</td>
|
|
<td class="py-1.5 px-3 font-mono text-cyan-300">${redist.join(', ') || 'none'}</td>
|
|
@@ -19774,7 +19774,7 @@ function openRipInstanceModal() {
|
|
|
document.getElementById('rip-instance-modal-title').innerText = 'New RIP Instance';
|
|
document.getElementById('rip-instance-modal-title').innerText = 'New RIP Instance';
|
|
|
document.getElementById('modal-rip-instance-id').value = '';
|
|
document.getElementById('modal-rip-instance-id').value = '';
|
|
|
document.getElementById('modal-rip-instance-name').value = 'rip1';
|
|
document.getElementById('modal-rip-instance-name').value = 'rip1';
|
|
|
- document.getElementById('modal-rip-instance-version').value = 'rip2';
|
|
|
|
|
|
|
+ document.getElementById('modal-rip-instance-version').value = '2';
|
|
|
document.getElementById('modal-rip-instance-update').value = '30';
|
|
document.getElementById('modal-rip-instance-update').value = '30';
|
|
|
document.getElementById('modal-rip-instance-timeout').value = '180';
|
|
document.getElementById('modal-rip-instance-timeout').value = '180';
|
|
|
document.getElementById('modal-rip-instance-garbage').value = '120';
|
|
document.getElementById('modal-rip-instance-garbage').value = '120';
|
|
@@ -19795,7 +19795,7 @@ function openEditRipInstanceModal(id) {
|
|
|
document.getElementById('rip-instance-modal-title').innerText = `Edit RIP Instance: ${inst.name}`;
|
|
document.getElementById('rip-instance-modal-title').innerText = `Edit RIP Instance: ${inst.name}`;
|
|
|
document.getElementById('modal-rip-instance-id').value = inst.id;
|
|
document.getElementById('modal-rip-instance-id').value = inst.id;
|
|
|
document.getElementById('modal-rip-instance-name').value = inst.name || '';
|
|
document.getElementById('modal-rip-instance-name').value = inst.name || '';
|
|
|
- document.getElementById('modal-rip-instance-version').value = inst.version || 'rip2';
|
|
|
|
|
|
|
+ document.getElementById('modal-rip-instance-version').value = (inst.version == 1 || inst.version === 'ripng') ? '1' : '2';
|
|
|
document.getElementById('modal-rip-instance-update').value = inst.update_time || 30;
|
|
document.getElementById('modal-rip-instance-update').value = inst.update_time || 30;
|
|
|
document.getElementById('modal-rip-instance-timeout').value = inst.timeout_time || 180;
|
|
document.getElementById('modal-rip-instance-timeout').value = inst.timeout_time || 180;
|
|
|
document.getElementById('modal-rip-instance-garbage').value = inst.garbage_time || 120;
|
|
document.getElementById('modal-rip-instance-garbage').value = inst.garbage_time || 120;
|
|
@@ -19820,7 +19820,7 @@ async function submitRipInstance(e) {
|
|
|
const payload = {
|
|
const payload = {
|
|
|
id: id || undefined,
|
|
id: id || undefined,
|
|
|
name: document.getElementById('modal-rip-instance-name').value.trim(),
|
|
name: document.getElementById('modal-rip-instance-name').value.trim(),
|
|
|
- version: document.getElementById('modal-rip-instance-version').value,
|
|
|
|
|
|
|
+ version: parseInt(document.getElementById('modal-rip-instance-version').value, 10) || 2,
|
|
|
update_time: parseInt(document.getElementById('modal-rip-instance-update').value, 10) || 30,
|
|
update_time: parseInt(document.getElementById('modal-rip-instance-update').value, 10) || 30,
|
|
|
timeout_time: parseInt(document.getElementById('modal-rip-instance-timeout').value, 10) || 180,
|
|
timeout_time: parseInt(document.getElementById('modal-rip-instance-timeout').value, 10) || 180,
|
|
|
garbage_time: parseInt(document.getElementById('modal-rip-instance-garbage').value, 10) || 120,
|
|
garbage_time: parseInt(document.getElementById('modal-rip-instance-garbage').value, 10) || 120,
|