links have better names for debugging

This commit is contained in:
Tim Young 2017-08-25 15:37:36 -05:00
parent 743c531c1f
commit f2f7afc38d

View File

@ -114,6 +114,10 @@ namespace EduNetworkBuilder
}
}
Network myNet = NB.GetNetwork();
NetworkDevice snd = myNet.GetDeviceFromID(SrcNic);
NetworkDevice dnd = myNet.GetDeviceFromID(DstNic);
if (snd != null && dnd != null && hostname == "")
hostname = snd.hostname + "_link_" + dnd.hostname;
myNet.MarkAsLinked(SrcNic, GetUniqueIdentifier);
myNet.MarkAsLinked(DstNic, GetUniqueIdentifier);
}