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); }