#977 add comment to netdisco-do renumber about device_identity

This commit is contained in:
Oliver Gorwits
2023-03-07 20:15:54 +00:00
parent 1505a8637b
commit 2848877d74
2 changed files with 6 additions and 1 deletions

View File

@@ -18,6 +18,9 @@ register_worker({ phase => 'check' }, sub {
return Status->error("Bad host or IP: ".($job->extra || '0.0.0.0')); return Status->error("Bad host or IP: ".($job->extra || '0.0.0.0'));
} }
debug 'NB: this feature will change the primary IP of a device to support migrations';
debug 'NB: use the device_identity feature if you wish to steer Netdisco in choosing the canonical IP of devices';
return Status->done('Renumber is able to run'); return Status->done('Renumber is able to run');
}); });

View File

@@ -260,9 +260,11 @@
<div class="modal-body"> <div class="modal-body">
<blockquote> <blockquote>
<ul> <ul>
<li><p>This action is run immediately</p></li> <li><p>This will change the primary IP of a device to support migrations.</p></li>
<li><p>You can to change to an existing interface IP or a new IP</p></li> <li><p>You can to change to an existing interface IP or a new IP</p></li>
<li><p>No check is made as to whether the new IP is reachable</p></li> <li><p>No check is made as to whether the new IP is reachable</p></li>
<li><p>The action is run immediately</p></li>
<li><p>The <a href="https://github.com/netdisco/netdisco/wiki/Configuration#device_identity"><code>device_identity</code></a> setting is safer and may work better</p></li>
</ul> </ul>
</blockquote> </blockquote>
<label>Enter new IP address: <input list="interfaces" name="newip" data-form="renumber"/></label> <label>Enter new IP address: <input list="interfaces" name="newip" data-form="renumber"/></label>