allow us to ping from, or traceroute from locked devices. A bug kept us from doing this previously.

This commit is contained in:
2017-06-28 10:11:12 -05:00
parent 13b4fac6ea
commit 47b26362b5
4 changed files with 77 additions and 74 deletions

View File

@ -97,17 +97,17 @@ namespace EduNetworkBuilder
}
public bool Edit(NetworkDevice FromWhat, Form ParentForm, string message="")
public bool Edit(NetworkDevice FromWhat, Form ParentForm, string message="", bool JustPinging = false)
{
IPAddressEntry IPe = new IPAddressEntry(this, FromWhat, ParentForm);
IPAddressEntry IPe = new IPAddressEntry(this, FromWhat, ParentForm, JustPinging);
if (message != "")
IPe.Text = message;
return IPe.Edit();
}
public bool Edit(NetworkDevice FromWhat, IPAddress DHCPif, Form ParentForm)
public bool Edit(NetworkDevice FromWhat, IPAddress DHCPif, Form ParentForm, bool JustPinging = false)
{
IPAddressEntry IPe = new IPAddressEntry(this, FromWhat, ParentForm);
IPAddressEntry IPe = new IPAddressEntry(this, FromWhat, ParentForm, JustPinging);
return IPe.Edit(FromWhat, DHCPif);
}