diff --git a/EduNetworkBuilder/Network.cs b/EduNetworkBuilder/Network.cs index 473b41a..457c509 100644 --- a/EduNetworkBuilder/Network.cs +++ b/EduNetworkBuilder/Network.cs @@ -1536,7 +1536,7 @@ namespace EduNetworkBuilder return null; } - public List GetHostnames(bool EvenNonNetworked = false) + public List GetHostnames(bool EvenNonNetworked = false, bool includeTrees = false) { List tList = new List(); NetworkDevice ND; @@ -1547,6 +1547,7 @@ namespace EduNetworkBuilder ND = (NetworkDevice)NC; if (!EvenNonNetworked && (ND.GetNetType() == NetworkComponentType.microwave || ND.GetNetType() == NetworkComponentType.fluorescent)) continue; + if (ND.GetNetType() == NetworkComponentType.tree && !includeTrees) continue; tList.Add(ND.hostname); } }