From 68d83fa07d85d8502c83ac56ebdcf5decb77d950 Mon Sep 17 00:00:00 2001 From: Tim Young Date: Sat, 24 Feb 2018 13:42:03 -0600 Subject: [PATCH] trees are not part of the network tests and other such things. --- EduNetworkBuilder/Network.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } }