From f2f7afc38d010770c76150de3c6f53fa428390b5 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Fri, 25 Aug 2017 15:37:36 -0500 Subject: [PATCH] links have better names for debugging --- EduNetworkBuilder/NetworkLink.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/EduNetworkBuilder/NetworkLink.cs b/EduNetworkBuilder/NetworkLink.cs index 11106a6..ce7535a 100644 --- a/EduNetworkBuilder/NetworkLink.cs +++ b/EduNetworkBuilder/NetworkLink.cs @@ -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); }